[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-dev
Subject:    [groovy-dev] Head doesn't build due to test failures...
From:       Russel Winder <russel () russel ! org ! uk>
Date:       2006-11-30 18:05:46
Message-ID: 1164909946.26633.143.camel () balin ! russel ! org ! uk
[Download RAW message or body]


ÜberTestCase4 fails:

    [junit] Tests run: 92, Failures: 1, Errors: 0, Time elapsed: 15.099
sec
    [junit] [ERROR] TEST UberTestCase4 FAILED

------------- ---------------- ---------------
Testcase: testContains(groovy.lang.RangeTest):	FAILED
contains 8.0
junit.framework.AssertionFailedError: contains 8.0
	at groovy.lang.RangeTest.testContains(RangeTest.java:143)

I am a bit flummoxed as to what to change in the file
src/test/groovy/lang/RangeTest.java since:

        r = createRange(new BigDecimal("2.1"), new BigDecimal("10.0"));

        assertTrue("contains 9.1", r.contains(new BigDecimal("9.1")));
        assertFalse("contains 8.0", r.contains(new BigDecimal("8.0")));

Now I would have guessed that 8.0 should be in the range but the
assertion says it isn't -- but the implementation says it is...
-- 
Russel.
====================================================
Dr Russel Winder                +44 20 7585 2200
41 Buckmaster Road              +44 7770 465 077
London SW11 1EN, UK             russel@russel.org.uk

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic