public void NewLineInStringTest() { var lexer = Lexer.CreateState("\"\n\""); bool result = TextScanner.ScanString(lexer, ref this.token); Assert.False(result); }
public void EscapedDoubleQuoteInStringTest() { var lexer = Lexer.CreateState("\"\\\"\""); bool result = TextScanner.ScanString(lexer, ref this.token); Assert.True(result); Assert.Equal("\\\"", this.token.Value); }
public void TabsInStringTest() { var lexer = Lexer.CreateState("\" \""); bool result = TextScanner.ScanString(lexer, ref this.token); Assert.True(result); Assert.Equal("\\t\\t", this.token.Value); }