1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-05 19:19:10 +08:00

[#148] Including disabled tests

This commit is contained in:
wolfgarnet 2016-01-11 09:22:15 +01:00
parent 09ad467104
commit f304d96c25

View File

@ -667,23 +667,23 @@ for(var i = 0 in obj) {
is(parser.commentMap.Size(), 1)
is(checkComments((*parser.commentMap)[program], []string{" comment"}, ast.FINAL), nil)
// // Block
// parser, program = test(`
///*comment*/{
// a
//}
// `, nil)
// is(parser.commentMap.Size(), 1)
// is(checkComments((*parser.commentMap)[program.Body[0].(*ast.BlockStatement)], []string{"comment"}, ast.LEADING), nil)
//
// // Block pt 2
// parser, program = test(`
//{
// a
//}/*comment*/
// `, nil)
// is(parser.commentMap.Size(), 1)
// is(checkComments((*parser.commentMap)[program.Body[0].(*ast.BlockStatement)], []string{"comment"}, ast.TRAILING), nil)
// Block
parser, program = test(`
/*comment*/{
a
}
`, nil)
is(parser.commentMap.Size(), 1)
is(checkComments((*parser.commentMap)[program.Body[0].(*ast.BlockStatement)], []string{"comment"}, ast.LEADING), nil)
// Block pt 2
parser, program = test(`
{
a
}/*comment*/
`, nil)
is(parser.commentMap.Size(), 1)
is(checkComments((*parser.commentMap)[program.Body[0].(*ast.BlockStatement)], []string{"comment"}, ast.TRAILING), nil)
// If then else
parser, program = test(`