What steps will reproduce the problem?
1. Import CheckDigit.java, CheckISO7064Mod11_10, CheckCoreTest and
CheckISO7064Mod11_10Test files in new eclipse project
2. Run CheckISO7064Mod11_10Test as Java application
What is the expected output? What do you see instead?
Expected output is that all test are passed.
I see:
.....i=0, j=9, 00000000001, 00000000010
F.F
Time: 0,016
There were 2 failures:
1)
testBadAdjacentTraspositions(com.modp.checkdigits.test.CheckISO7064Mod11_10Test)
junit.framework.AssertionFailedError
at
com.modp.checkdigits.test.CheckCoreTest.testBadAdjacentTraspositions(CheckCoreTe
st.java:168)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
at
com.modp.checkdigits.test.CheckISO7064Mod11_10Test.main(CheckISO7064Mod11_10Test
.java:53)
2)
testBadVerify(com.modp.checkdigits.test.CheckISO7064Mod11_10Test)junit.framework
.AssertionFailedError
at
com.modp.checkdigits.test.CheckCoreTest.testBadVerify(CheckCoreTest.java:186)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
at
com.modp.checkdigits.test.CheckISO7064Mod11_10Test.main(CheckISO7064Mod11_10Test
.java:53)
FAILURES!!!
Tests run: 6, Failures: 2, Errors: 0
What version of the product are you using? On what operating system?
I use latest downloaded version (checkdigits-0.9.1.tar.gz). Operating
system is WinXp SP3
Please provide any additional information below.
HTML test passes with:
testCheck pass
testSingleError pass
testAdjacentTraspositions pass
testExample pass
Operation that are not in test HTML doesn't pass. Why is that?
Kind Regards,
Miroslav Rešetar
Original issue reported on code.google.com by
[email protected]on 24 Jun 2008 at 3:48