test/lucid-tdl/parser/lexer_test.rb in lucid-tdl-1.0.0 vs test/lucid-tdl/parser/lexer_test.rb in lucid-tdl-1.1.0
- old
+ new
@@ -4,9 +4,13 @@
describe Parser do
before do
@lexer = Parser.new
end
+ it "will ignore commented lines" do
+ @lexer.tokenize("# Commented line").must_equal []
+ end
+
it "can parse a single newline character" do
@lexer.tokenize("\n").must_equal [[:NEWLINE, "\n"]]
end
it "can parse multiple newline characters" do