add test for Get function

This commit is contained in:
Kent Gruber 2018-05-02 13:57:39 -04:00
parent 383aa509c2
commit e751ecf6a0

View file

@ -28,3 +28,14 @@ func TestAliasesSave(t *testing.T) {
t.Error(err)
}
}
func TestAliasesGet(t *testing.T) {
exampleAliases := buildExampleAlaises()
exp := ""
got := exampleAliases.Get("pi:ca:tw:as:he:re")
if got != exp {
t.Fatalf("expected '%v', got '%v'", exp, got)
}
}