From: <wan...@us...> - 2003-07-17 15:18:33
|
Update of /cvsroot/webmacro/webmacro/test/unit/org/webmacro/template In directory sc8-pr-cvs1:/tmp/cvs-serv23382 Modified Files: TestDirectiveParser.java Log Message: Recant! Parser bug was a false alarm, but added new tests to ensure correct behaviour - although these are probably duplicated elsewhere under whitespace handling. Index: TestDirectiveParser.java =================================================================== RCS file: /cvsroot/webmacro/webmacro/test/unit/org/webmacro/template/TestDirectiveParser.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TestDirectiveParser.java 17 Jul 2003 12:52:58 -0000 1.7 --- TestDirectiveParser.java 17 Jul 2003 15:18:29 -0000 1.8 *************** *** 71,78 **** } ! public void testQuotedDirective () throws Exception { assertStringTemplateEquals( "#if (true) ok #end", "ok"); ! assertStringTemplateEquals( "x#if (true) ok #end", "xok" ); } --- 71,81 ---- } ! public void testSmashedTogetherDirective () throws Exception { assertStringTemplateEquals( "#if (true) ok #end", "ok"); ! assertStringTemplateEquals( "x#if (true) ok #end", "x#if (true) ok #end" ); ! assertStringTemplateEquals( " #if (true) ok #end", "ok" ); ! assertStringTemplateEquals( "\"#if (true) ok #end", "\"#if (true) ok #end" ); ! assertStringTemplateEquals( "\" #if (true) ok #end", "\"ok" ); } |