Delete a bunch of debugging getting me nowhere.
This commit is contained in:
12
test.js
12
test.js
@@ -11,3 +11,15 @@ QUnit.test('Simple', function(assert) {
|
||||
'How about some <b>bold and <i>bold italic</i></b>.\n' +
|
||||
'I would also love some nowiki <b>foo</b>');
|
||||
});
|
||||
|
||||
|
||||
QUnit.test('ZeroOrMore', function(assert) {
|
||||
assert.expect(1);
|
||||
var rules = {
|
||||
'test': rr.Node('test', rr.ZeroOrMore(rr.MultiLineText()))
|
||||
};
|
||||
var context = new rr.Context(rules, 'foobar');
|
||||
var iterable = context.rules['test'].match(context);
|
||||
assert.equal(iterable.next().value.nodes[0].outerHTML,
|
||||
'<test>foobar</test>');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user