Example #1
0
 public void TestQuotedStringWithSpaces()
 {
     Lexer l = new Lexer("\" abc def\"");
     Token t = l.next(Lexer.Mode.DEFAULT);
     Assert.IsTrue(t.type == Token.Type.QUOTED_STRING);
     Assert.IsTrue(t.repr.CompareTo("\" abc def\"") == 0);
 }
Example #2
0
 public void TestDotAtom()
 {
     Lexer p = new Lexer("abc.def");
     Token t = p.next(Lexer.Mode.DEFAULT);
     Assert.IsTrue(t.type == Token.Type.DOT_ATOM);
     Assert.IsTrue(t.repr.CompareTo("abc.def") == 0);
 }