Delete a bunch of debugging getting me nowhere.

This commit is contained in:
Ian Gulliver
2014-06-28 22:23:54 -07:00
parent 6d06d14900
commit 2f03f4d9ff
2 changed files with 12 additions and 22 deletions

12
test.js
View File

@@ -11,3 +11,15 @@ QUnit.test('Simple', function(assert) {
'How about some <b>bold and &lt;i&gt;bold italic&lt;/i&gt;</b>.\n' +
'I would also love some nowiki &lt;b&gt;foo&lt;/b&gt;');
});
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>');
});