Unit tests pass

db4
Slava Pestov 2008-04-27 04:51:33 -05:00
parent e48755e5aa
commit 173d064567
6 changed files with 8 additions and 13 deletions

View File

@ -7,7 +7,10 @@ sequences db db.sqlite continuations ;
: with-session
[
>r [ save-session-after ] [ \ session set ] bi r> call
>r
[ session-manager get swap save-session-after ]
[ \ session set ] bi
r> call
] with-destructors ; inline
TUPLE: foo ;

View File

@ -4,14 +4,6 @@ io.streams.string kernel sequences ascii boxes namespaces xml
splitting ;
IN: http.server.templating.chloe.tests
[ "foo" ]
[ "<a href=\"foo\">blah</a>" string>xml "href" required-attr ]
unit-test
[ "<a name=\"foo\">blah</a>" string>xml "href" required-attr ]
[ "href attribute is required" = ]
must-fail-with
[ f ] [ f parse-query-attr ] unit-test
[ f ] [ "" parse-query-attr ] unit-test

View File

@ -2,7 +2,7 @@
<t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
<t:if code="http.server.templating.chloe.tests:test4-aux?">
<t:if t:code="http.server.templating.chloe.tests:test4-aux?">
True
</t:if>

View File

@ -2,7 +2,7 @@
<t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
<t:if code="http.server.templating.chloe.tests:test5-aux?">
<t:if t:code="http.server.templating.chloe.tests:test5-aux?">
True
</t:if>

View File

@ -2,7 +2,7 @@
<t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
<t:if var="http.server.templating.chloe.tests:test6-aux?">
<t:if t:var="http.server.templating.chloe.tests:test6-aux?">
True
</t:if>

View File

@ -2,7 +2,7 @@
<t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
<t:if var="http.server.templating.chloe.tests:test7-aux?">
<t:if t:var="http.server.templating.chloe.tests:test7-aux?">
True
</t:if>