diff --git a/test/lexer.js b/test/lexer.js index 2f08a49..1932068 100644 --- a/test/lexer.js +++ b/test/lexer.js @@ -76,7 +76,6 @@ describe('Test lexer', function () { reader.unlex(); reader.line.should.be.exactly(1); reader.text.should.be.exactly('hello'); - }); describe('Test float', function () { reader.read('1.2.3'); diff --git a/test/parser.js b/test/parser.js index fa7a1df..f94333e 100644 --- a/test/parser.js +++ b/test/parser.js @@ -38,4 +38,15 @@ describe('Test parser', function () { ast.body[0].options[1].kind.should.be.exactly('number'); ast.body[0].options[1].value.should.be.exactly('1.23'); }); + + it('test rule', function () { + var ast = doc.parse([ + '/**', + ' * Description', + ' * @return void Some extra informations', + ' */' + ].join('\n')); + ast.body[0].kind.should.be.exactly('return'); + console.log(ast.body[0]); + }); });