[stringtemplate-interest] Test changes and maven...

Terence Parr parrt at cs.usfca.edu
Tue Mar 6 10:45:32 PST 2007


Hi Caleb!  Thanks...i'm done with book on Fri, then a 2 day vacation  
then all next week I have no school.  Will start on ST and ANTLR again!
Ter
On Mar 6, 2007, at 2:41 AM, Caleb Lyness wrote:

> Hi,
>
> First the maven part... I have got string template kinda building  
> automatically with maven 2.
> There is a little batch job to move source files around to match  
> maven 2's style and a pom.
>
> The rest:
> I have modified the junit tests so that they work under windows. I  
> made some minor changes:
> removed unused symbols by commenting them out and
> swapped parameter order for asserts. Now the asserts should all be  
> consistent and matching the formal
> arguments (expected,actual). Note test writers: expected is what we  
> actually want the output
> to look like.
>
> I modified groups definition so that maps can consist of default  
> only entries:
>
> map ::= [default: "value"]
>
> See JIRA bug ST-15
>
> I added 2 test for JIRA bug ST-15
>
> The first checks that the map as given above works. The second  
> checks that the string "default"
> can be returned. This still needs to be fixed
>
> I added a test for JIRA bug ST-2. This is still needs fixing.
>
> The following other tests also need attention.
>
> test8BitEuroChars:
> Please specify the actual characters escape code wanted. I had to  
> remove it before I could do
> anything with the junit test code. I don't know what the actual  
> character used to be...
>
> testEmbeddedRegionRefWithNewlinesAngleBrackets:
> White space is causing this test to fail.
>
> Assertion Equals details:
> ----
> Expected:
> XblortY
> ----
> Actual:
> Xblort
> Y
> ----
>
> testRepeatedRestOpAsArg:
> This has been marked as a bug before.
>
> Assertion Equals details:
> ----
> Expected:
> Tom, Tom
> ----
> Actual:
> Tom,
> ----
>
>
> <sro.zip>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list