Re: Confusing test failure

Eric Bezault <ericb-D6Qt/9opevxWk0Htik3J/[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.general
Organization Gobo
Message-ID <[email protected]>
grantrettke wrote:
> Hi,
> 
> I tried to build the goanna test/utility project with SmartEiffel
> 1.2r6 on Windows XP Pro with VC++ 2003 and got the following errors:
> 
> C:\eiffel\goanna\test\utility>geant test_se
> 
> Testing xutility...
> Preparing Test Cases
> Compiling Test Cases
> Running Test Cases
> 
> Test Summary for xutility
> 
> # Passed:     6 tests
> # FAILED:     2 tests
> # Aborted:    0 test
> # Total:      8 tests (30 assertions)
> 
> Test Results:
> FAIL:  [UTILITY_TEST_POOL.test_unbounded_pool] free_count
>   expected: 0
>   but  got: 0
> FAIL:  [UTILITY_TEST_STRING_MANIPULATION.test_last_index_of] two_positions
>   expected: 9
>   but  got: 9
> 
> BUILD FAILED!
> 
> I don't understand why the test is failing. What is going on here?

You'll have to show us the code of the routine `test_unbounded_pool'
from class UTILITY_TEST_POOL and of the routine `test_last_index_of'
from class UTILITY_TEST_STRING_MANIPULATION. Otherwise it's hard to
say why getest reports an error while claiming that we get the
expected value.

-- 
Eric Bezault
mailto:ericb-D6Qt/9opevxWk0Htik3J/[email protected]
http://www.gobosoft.com



To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: [email protected] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gobo-eiffel/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.