failing test for #110

Project: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/commit/13f93166
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/tree/13f93166
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/diff/13f93166

Branch: refs/heads/1843-feature-bigcouch
Commit: 13f931660638432c79b4fbcaced500e9e7ab03c0
Parents: f540b15
Author: Bob Ippolito <[email protected]>
Authored: Mon May 6 15:05:32 2013 -0700
Committer: Bob Ippolito <[email protected]>
Committed: Mon May 6 15:05:32 2013 -0700

----------------------------------------------------------------------
 test/mochiweb_html_tests.erl | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/blob/13f93166/test/mochiweb_html_tests.erl
----------------------------------------------------------------------
diff --git a/test/mochiweb_html_tests.erl b/test/mochiweb_html_tests.erl
index cf97fc4..c9fec6f 100644
--- a/test/mochiweb_html_tests.erl
+++ b/test/mochiweb_html_tests.erl
@@ -570,3 +570,11 @@ parse_unescaped_lt_test() ->
         {<<"div">>, [], [<<" << ">>, {<<"a">>, [{<<"href">>, <<"/">>}],
                                       [<<"Back">>]}]},
     mochiweb_html:parse(D2)).
+
+implicit_html_test() ->
+    %% https://github.com/mochi/mochiweb/issues/110
+    ?assertEqual(
+       {<<"html">>, [],
+        [{<<"head">>, [], []},
+         {<<"body">>, [], []}]},
+       mochiweb_html:parse("<!doctype html><head></head><body></body>")).

Reply via email to