[477] - Bring up coverage.

This commit is contained in:
Eric Promislow
2017-04-28 13:33:35 -07:00
parent 122b697e41
commit bcf8b7532b

View File

@@ -658,6 +658,16 @@ func TestCompoundStringESE(t *testing.T) {
expect(t, lx, expectedItems)
}
func TestBadStringEscape(t *testing.T) {
expectedItems := []item{
{itemKey, "foo", 1},
{itemError, "Invalid escape character 'y'. Only the following escape characters are allowed: \\xXX, \\t, \\n, \\r, \\\", \\\\.", 1},
{itemEOF, "", 2},
}
lx := lex(`foo = \y`)
expect(t, lx, expectedItems)
}
func TestNonBool(t *testing.T) {
expectedItems := []item{
{itemKey, "foo", 1},