Add removed test

This commit is contained in:
Thomas Pelletier
2015-09-09 17:01:05 +01:00
parent dd4c4ffc2b
commit 821a80e635
2 changed files with 10 additions and 0 deletions
+7
View File
@@ -571,3 +571,10 @@ func TestInvalidGroupArray(t *testing.T) {
t.Error("Should error")
}
}
func TestDoubleEqual(t *testing.T) {
_, err := Load("foo= = 2")
if err.Error() != "(1, 6): cannot have multiple equals for the same key" {
t.Error("Bad error message:", err.Error())
}
}