[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Grammatica-users] Testcase fails
From: |
Stefan Ukena |
Subject: |
[Grammatica-users] Testcase fails |
Date: |
Fri, 19 Mar 2004 15:54:09 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 |
Hi everyone,
I'm currently figuering out how to use Grammatica, and while doing that
I stumbeld across this little problem with the provided test-case for
the examples that came with Grammatica:
When I run the TestArithmeticParser-Test I get the following failure-notice:
junit.framework.AssertionFailedError: on line: 1, expected:
'Expression(2001)
', found: 'Expression(2001)
'
at junit.framework.Assert.fail(Assert.java:47)
at
net.percederberg.grammatica.test.ParserTestCase.validateLine(ParserTestCase.java:164)
at
net.percederberg.grammatica.test.ParserTestCase.validateLines(ParserTestCase.java:143)
at
net.percederberg.grammatica.test.ParserTestCase.validateTree(ParserTestCase.java:124)
at
net.percederberg.grammatica.test.ParserTestCase.parse(ParserTestCase.java:74)
at
net.percederberg.grammatica.test.TestArithmeticParser.testValidInput(TestArithmeticParser.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[...]
Because the difference between the two strings wasn't so obvious I used
the debugger to have a look at the values.
The debugger gives me the difference more clearly:
expected= "Expression(2001)\n"
result= "Expression(2001)\r"
I'm running Grammatica 1.4 on Windows XP with JDK 1.4.
Now what I would like to know is:
1) Is this a known issue?
2) Am I right in assuming that this is just a problem with the test-case
(or could it turn out to bother me later)?
Thanks everyone in advance!
Stefan
- [Grammatica-users] Testcase fails,
Stefan Ukena <=