Browse files

add failing test

  • Loading branch information...
1 parent fe92368 commit 589334c84cbe6fad0baf8b889e36d4d1eb5fd2dc @diunko diunko committed Sep 20, 2012
Showing with 27 additions and 0 deletions.
  1. +27 −0 tests/tests.js
View
27 tests/tests.js
@@ -236,6 +236,33 @@ var tests = [
]]
},
{
+ 'in': '1. listitem1\n2. listitem2\n * sublistitem21\n3. listitem3\n * sublistitem31\n * sublistitem32',
+ 'out': [[
+ 'olist',
+ [
+ ['olistItem', ['listitem1']],
+ [
+ 'olistItem',
+ ['listitem2', ['ulist', [['ulistItem', ['sublistitem21']]]]]
+ ],
+ [
+ 'olistItem',
+ [
+ 'listitem3',
+ [
+ 'ulist',
+ [
+ ['ulistItem', ['sublistitem31']],
+ ['ulistItem', ['sublistitem32']]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]]
+ },
+
+ {
'in': 'para1\n* listitem1\n* listitem2\n\npara2',
'out': [
['para', ['para1']],

0 comments on commit 589334c

Please sign in to comment.