mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
[477] - Bring up coverage.
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user