|
|
|
@ -16,6 +16,7 @@ primary { |
|
|
|
string = "primary string value"; |
|
|
|
string_with_quote = "some \"quoted\" str\\ing"; |
|
|
|
single = 'hello world'; |
|
|
|
empty = ''; |
|
|
|
single_with_quote = '\'hello\' "world"'; |
|
|
|
|
|
|
|
# Semicolons are optional |
|
|
|
@ -70,6 +71,7 @@ func assertDirectives(values map[string]interface{}, t *testing.T) { |
|
|
|
assertEqual(primary["string"], "primary string value", t) |
|
|
|
assertEqual(primary["string_with_quote"], "some \"quoted\" str\\ing", t) |
|
|
|
assertEqual(primary["single"], "hello world", t) |
|
|
|
assertEqual(primary["empty"], "", t) |
|
|
|
assertEqual(primary["single_with_quote"], "'hello' \"world\"", t) |
|
|
|
assertEqual(primary["integer500"], int64(500), t) |
|
|
|
assertEqual(primary["float"], float64(80.80), t) |
|
|
|
|