[Cuis-dev] Re : Re: Test error message wrongly formatted

Hilaire Fernandes hfern at free.fr
Fri Jul 28 15:34:55 PDT 2023


Hi Juan,

Your example does not use the message I was writing about. Try instead:

TestCase new assert: 'actual value' equals: 'expected value'

The Debugger message is then:

TestFailure: Expected 'actual value' but was 'expected value'. - 
Process: Morphic UI - Priority: 40

Hilaire

Le 24/07/2023 à 15:13, Juan Vuletich a écrit :
> If I evaluate:
>
> TestCase new assert: 'actual value' equalsExpected: 'expected value'
>
> I get a debugger with title:
>
> TestFailure: Expected 'expected value' but was 'actual value'. - 
> Process: Morphic UI - Priority: 40
>
> I think this is a correct error message. What message do you get with 
> this example? What message do you think it would be correct instead? 


More information about the Cuis-dev mailing list