Skip to content

Instantly share code, notes, and snippets.

@janl
Forked from natevw/mustache3.js
Created May 23, 2010 17:53
Show Gist options
  • Save janl/411119 to your computer and use it in GitHub Desktop.
Save janl/411119 to your computer and use it in GitHub Desktop.
> rake
(in /Users/jan/Work/mustache.js)
..FFFFFFFFFFFF....FFF.F.FFFFFFFFFF.F.FFFFFFFFFFFFFFFFFFF
1)
'mustache array_of_strings should generate the correct html' FAILED
expected: "hello world \n",
got: "\n hello world \n" (using ==)
./test/mustache_spec.rb:71:
2)
'mustache array_of_strings should sendFun the correct html' FAILED
expected: "hello world",
got: "hello\n \n \nworld" (using ==)
./test/mustache_spec.rb:95:
3)
'mustache array_of_strings_options should generate the correct html' FAILED
expected: "hello world \n",
got: "\n hello world \n" (using ==)
./test/mustache_spec.rb:71:
4)
'mustache array_of_strings_options should sendFun the correct html' FAILED
expected: "hello world",
got: "hello\n \n \nworld" (using ==)
./test/mustache_spec.rb:95:
5)
'mustache bug_11_eating_whitespace should generate the correct html' FAILED
expected: "yo foo\n",
got: "yo foo\n\n" (using ==)
./test/mustache_spec.rb:71:
6)
'mustache bug_11_eating_whitespace should sendFun the correct html' FAILED
expected: "yo foo",
got: "yo\n foo" (using ==)
./test/mustache_spec.rb:95:
7)
'mustache comments should generate the correct html' FAILED
expected: "<h1>A Comedy of Errors</h1>\n",
got: "<h1>A Comedy of Errors</h1>\n\n" (using ==)
./test/mustache_spec.rb:71:
8)
'mustache comments should sendFun the correct html' FAILED
expected: "<h1>A Comedy of Errors</h1>",
got: "<h1>\nA Comedy of Errors\n</h1>" (using ==)
./test/mustache_spec.rb:95:
9)
'mustache complex should generate the correct html' FAILED
expected: "<h1>Colors</h1>\n<ul>\n <li><strong>red</strong></li>\n <li><a href=\"#Green\">green</a></li>\n <li><a href=\"#Blue\">blue</a></li>\n </ul>\n",
got: "<h1>Colors</h1>\n\n <ul>\n \n \n <li><strong>red</strong></li>\n \n \n \n \n \n <li><a href=\"#Green\">green</a></li>\n \n \n \n \n <li><a href=\"#Blue\">blue</a></li>\n \n \n </ul>\n\n\n" (using ==)
./test/mustache_spec.rb:71:
10)
'mustache complex should sendFun the correct html' FAILED
expected: "<h1>Colors</h1>\n<ul>\n <li><strong>red</strong></li>\n <li><a href=\"#Green\">green</a></li>\n <li><a href=\"#Blue\">blue</a></li>\n </ul>",
got: "<h1>\nColors\n</h1>\n\n\n <ul>\n \n\n \n\n <li><strong>\nred\n</strong></li>\n \n\n \n\n \n\n \n\n \n\n <li><a href=\"\n#Green\n\">\ngreen\n</a></li>\n \n\n \n\n \n\n \n\n <li><a href=\"\n#Blue\n\">\nblue\n</a></li>\n \n\n \n\n </ul>" (using ==)
./test/mustache_spec.rb:95:
11)
'mustache delimiters should generate the correct html' FAILED
expected: "*\nIt worked the first time.\n* And it worked the second time.\n* Then, surprisingly, it worked the third time.\n* Fourth time also fine!.\n",
got: "*\nIt worked the first time.\n* And it worked the second time.\n\n* Then, surprisingly, it worked the third time.\n\n* Fourth time also fine!.\n" (using ==)
./test/mustache_spec.rb:71:
12)
'mustache delimiters should sendFun the correct html' FAILED
expected: "*\nIt worked the first time.\n* And it worked the second time.\n* Then, surprisingly, it worked the third time.\n* Fourth time also fine!.",
got: "*\n\nIt worked the first time.\n\n* \nAnd it worked the second time.\n\n\n\n* \nThen, surprisingly, it worked the third time.\n\n\n\n* \nFourth time also fine!." (using ==)
./test/mustache_spec.rb:95:
13)
'mustache escaped should generate the correct html' FAILED
expected: "<h1>Bear &gt; Shark</h1>\nBut not &quot;.\n",
got: "<h1>Bear &gt; Shark</h1>\nBut not &quot;.\n\n" (using ==)
./test/mustache_spec.rb:71:
14)
'mustache escaped should sendFun the correct html' FAILED
expected: "<h1>Bear &gt; Shark</h1>\nBut not &quot;.",
got: "<h1>\nBear &gt; Shark\n</h1>\nBut not \n&quot;\n." (using ==)
./test/mustache_spec.rb:95:
15)
'mustache higher_order_sections should generate the correct html' FAILED
expected: "<b>Hi Tater.</b> To tinker?\n",
got: "<b>Hi Tater.</b> To tinker?\n\n" (using ==)
./test/mustache_spec.rb:71:
16)
'mustache inverted_section should generate the correct html' FAILED
expected: "No repos :(\n",
got: "\nNo repos :(\n\n" (using ==)
./test/mustache_spec.rb:71:
17)
'mustache null_string should generate the correct html' FAILED
expected: "Hello Elise\nglytch true\nbinary false\nvalue \nnumeric NaN\n",
got: "Hello Elise\nglytch true\nbinary \nvalue \nnumeric \n" (using ==)
./test/mustache_spec.rb:71:
18)
'mustache null_string should sendFun the correct html' FAILED
expected: "Hello Elise\nglytch true\nbinary false\nvalue \nnumeric NaN",
got: "Hello \nElise\n\nglytch \ntrue\n\nbinary \n\nvalue \n\nnumeric" (using ==)
./test/mustache_spec.rb:95:
19)
'mustache recursion_with_same_names should generate the correct html' FAILED
expected: "name\ndesc\nt1\n 0\nt2\n 1\n",
got: "name\ndesc\n\n\n t1\n \n\n t2\n 1\n\n\n" (using ==)
./test/mustache_spec.rb:71:
20)
'mustache recursion_with_same_names should sendFun the correct html' FAILED
expected: "name\ndesc\nt1\n 0\nt2\n 1",
got: "name\n\n\ndesc\n\n\n\n\n \nt1\n\n \n\n\n\n \nt2\n\n \n1" (using ==)
./test/mustache_spec.rb:95:
21)
'mustache reuse_of_enumerables should generate the correct html' FAILED
expected: "t1\n 0\nt2\n 1\nt1\n 0\nt2\n 1\n",
got: "\n t1\n \n\n t2\n 1\n\n\n t1\n \n\n t2\n 1\n\n\n" (using ==)
./test/mustache_spec.rb:71:
22)
'mustache reuse_of_enumerables should sendFun the correct html' FAILED
expected: "t1\n 0\nt2\n 1\nt1\n 0\nt2\n 1",
got: "t1\n\n \n\n\n\n \nt2\n\n \n1\n\n\n\n\n\n \nt1\n\n \n\n\n\n \nt2\n\n \n1" (using ==)
./test/mustache_spec.rb:95:
23)
'mustache section_as_context should generate the correct html' FAILED
expected: "<h1>this is an object</h1>\n <p>one of its attributes is a list</p>\n <ul>\n <li>listitem1</li>\n <li>listitem2</li>\n </ul>\n",
got: "\n <h1>this is an object</h1>\n <p>one of its attributes is a list</p>\n <ul>\n \n <li>listitem1</li>\n \n <li>listitem2</li>\n \n </ul>\n\n\n" (using ==)
./test/mustache_spec.rb:71:
24)
'mustache section_as_context should sendFun the correct html' FAILED
expected: "<h1>this is an object</h1>\n <p>one of its attributes is a list</p>\n <ul>\n <li>listitem1</li>\n <li>listitem2</li>\n </ul>",
got: "<h1>\nthis is an object\n</h1>\n <p>\none of its attributes is a list\n</p>\n <ul>\n \n\n <li>\nlistitem1\n</li>\n \n\n <li>\nlistitem2\n</li>\n \n\n </ul>" (using ==)
./test/mustache_spec.rb:95:
25)
'mustache simple should generate the correct html' FAILED
expected: "Hello Chris\nYou have just won $10000!\nWell, $6000, after taxes.\n",
got: "Hello Chris\nYou have just won $10000!\n\nWell, $6000, after taxes.\n\n" (using ==)
./test/mustache_spec.rb:71:
26)
'mustache simple should sendFun the correct html' FAILED
expected: "Hello Chris\nYou have just won $10000!\nWell, $6000, after taxes.",
got: "Hello \nChris\n\nYou have just won $\n10000\n!\n\n\nWell, $\n6000\n, after taxes." (using ==)
./test/mustache_spec.rb:95:
27)
'mustache two_in_a_row should sendFun the correct html' FAILED
expected: "Welcome, Joe!",
got: "Welcome\n, \nJoe\n!" (using ==)
./test/mustache_spec.rb:95:
28)
'mustache unescaped should sendFun the correct html' FAILED
expected: "<h1>Bear > Shark</h1>",
got: "<h1>\nBear > Shark\n</h1>" (using ==)
./test/mustache_spec.rb:95:
29)
'mustache unknown_pragma should generate the correct html' FAILED
expected: "ERROR: This implementation of mustache doesn't understand the 'I-HAVE-THE-GREATEST-MUSTACHE' pragma\n",
got: "ERROR: This mustache implementation doesn't understand the 'I-HAVE-THE-GREATEST-MUSTACHE' pragma\n" (using ==)
./test/mustache_spec.rb:71:
30)
'mustache unknown_pragma should sendFun the correct html' FAILED
expected: "ERROR: This implementation of mustache doesn't understand the 'I-HAVE-THE-GREATEST-MUSTACHE' pragma",
got: "ERROR: This mustache implementation doesn't understand the 'I-HAVE-THE-GREATEST-MUSTACHE' pragma" (using ==)
./test/mustache_spec.rb:95:
31)
'mustache array_of_partials_implicit_partial should generate the correct html' FAILED
expected: "Here is some stuff!\n1\n2\n3\n4\n",
got: "Here is some stuff!\n\n\n1\n\n\n\n\n\n\n\n\n\n\n\n\n" (using ==)
./test/mustache_spec.rb:120:
32)
'mustache array_of_partials_implicit_partial should sendFun the correct html' FAILED
expected: "Here is some stuff!\n1\n2\n3\n4",
got: "Here is some stuff!\n\n\n\n\n\n1" (using ==)
./test/mustache_spec.rb:146:
33)
'mustache array_of_partials_partial should generate the correct html' FAILED
expected: "Here is some stuff!\n1\n2\n3\n4\n",
got: "Here is some stuff!\n\n1\n\n\n2\n\n\n3\n\n\n4\n\n\n\n" (using ==)
./test/mustache_spec.rb:120:
34)
'mustache array_of_partials_partial should sendFun the correct html' FAILED
expected: "Here is some stuff!\n1\n2\n3\n4",
got: "Here is some stuff!\n\n\n\n1\n\n\n\n\n\n\n2\n\n\n\n\n\n\n3\n\n\n\n\n\n\n4" (using ==)
./test/mustache_spec.rb:146:
35)
'mustache array_partial should generate the correct html' FAILED
expected: "Here's a non-sense array of values\n\n\n1\n2\n3\n4\n\n",
got: "Here's a non-sense array of values\n\n\n\n" (using ==)
./test/mustache_spec.rb:120:
36)
'mustache array_partial should sendFun the correct html' FAILED
expected: "Here's a non-sense array of values\n\n\n1\n2\n3\n4",
got: "Here's a non-sense array of values" (using ==)
./test/mustache_spec.rb:146:
37)
'mustache empty_partial should generate the correct html' FAILED
expected: "hey 1\nyo\n",
got: "hey 1\nyo\n\n" (using ==)
./test/mustache_spec.rb:120:
38)
'mustache empty_partial should sendFun the correct html' FAILED
expected: "hey 1\nyo",
got: "hey \n1\n\n\nyo" (using ==)
./test/mustache_spec.rb:146:
39)
'mustache partial_recursion should generate the correct html' FAILED
expected: "1\n1.1\n1.1.1\n",
got: "ERROR: too much recursion\n" (using ==)
./test/mustache_spec.rb:120:
40)
'mustache partial_recursion should sendFun the correct html' FAILED
expected: "1\n1.1\n1.1.1",
got: "ERROR: too much recursion" (using ==)
./test/mustache_spec.rb:146:
41)
'mustache template_partial should generate the correct html' FAILED
expected: "<h1>Welcome</h1>\nAgain, Goodbye!\n",
got: "<h1>Welcome</h1>\nAgain, !\n" (using ==)
./test/mustache_spec.rb:120:
42)
'mustache template_partial should sendFun the correct html' FAILED
expected: "<h1>Welcome</h1>\nAgain, Goodbye!",
got: "<h1>\nWelcome\n</h1>\n\nAgain, \n!" (using ==)
./test/mustache_spec.rb:146:
43)
'mustache view_partial should generate the correct html' FAILED
expected: "<h1>Welcome</h1>\nHello Chris\nYou have just won $10000!\nWell, $6000, after taxes.\n\n<h3>Fair enough, right?</h3>\n",
got: "<h1>Welcome</h1>\nHello \nYou have just won $!\n\n\n<h3>Fair enough, right?</h3>\n" (using ==)
./test/mustache_spec.rb:120:
44)
'mustache view_partial should sendFun the correct html' FAILED
expected: "<h1>Welcome</h1>\nHello Chris\nYou have just won $10000!\nWell, $6000, after taxes.\n\n<h3>Fair enough, right?</h3>",
got: "<h1>\nWelcome\n</h1>\n\nHello \n\nYou have just won $\n!\n\n\n\n\n<h3>\nFair enough, right?\n</h3>" (using ==)
./test/mustache_spec.rb:146:
45)
'mustache whitespace_partial should generate the correct html' FAILED
expected: "<h1>Welcome</h1>\nHello Chris\nYou have just won $10000!\nWell, $6000, after taxes.\n\n<h3>Fair enough, right?</h3>\n",
got: "<h1>Welcome</h1>\nHello \nYou have just won $!\n\n\n<h3>Fair enough, right?</h3>\n" (using ==)
./test/mustache_spec.rb:120:
46)
'mustache whitespace_partial should sendFun the correct html' FAILED
expected: "<h1>Welcome</h1>\nHello Chris\nYou have just won $10000!\nWell, $6000, after taxes.\n\n<h3>Fair enough, right?</h3>",
got: "<h1>\nWelcome\n</h1>\n\nHello \n\nYou have just won $\n!\n\n\n\n\n<h3>\nFair enough, right?\n</h3>" (using ==)
./test/mustache_spec.rb:146:
Finished in 1.206699 seconds
56 examples, 46 failures
rake aborted!
Command /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib" "/Users/jan/.gem/ruby/1.8/gems/rspec-1.3.0/bin/spec" "test/mustache_spec.rb" failed
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment