<div dir="auto">Hi Hilaire, </div><div dir="auto"> What is happening is correct.</div><div dir="auto"> I mean, the first parameter has to be the expected object. That it is why it says “Expected …” no matter what the parameter is.</div><div dir="auto"> If you change your example for:</div><div dir="auto">self assert: 'expected value’ equals: ‘actual value’</div><div dir="auto">The message will be:</div><div dir="auto">Expected ‘expected value’ but was ‘actual value’</div><div dir="auto"><br></div><div dir="auto">I hope this help. Let me know if you have any other question</div><div dir="auto"><br></div><div dir="auto">Cheers</div><div dir="auto">Hernan</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 28 Jul 2023 at 19:35 Hilaire Fernandes via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Juan,<br>
<br>
Your example does not use the message I was writing about. Try instead:<br>
<br>
TestCase new assert: 'actual value' equals: 'expected value'<br>
<br>
The Debugger message is then:<br>
<br>
TestFailure: Expected 'actual value' but was 'expected value'. - <br>
Process: Morphic UI - Priority: 40<br>
<br>
Hilaire<br>
<br>
Le 24/07/2023 à 15:13, Juan Vuletich a écrit :<br>
> If I evaluate:<br>
><br>
> TestCase new assert: 'actual value' equalsExpected: 'expected value'<br>
><br>
> I get a debugger with title:<br>
><br>
> TestFailure: Expected 'expected value' but was 'actual value'. - <br>
> Process: Morphic UI - Priority: 40<br>
><br>
> I think this is a correct error message. What message do you get with <br>
> this example? What message do you think it would be correct instead? <br>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:small"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal"><span style="font-weight:bold">Hernán Wilkinson</span><br>Agile Software Development, Teaching & Coaching</span></font></span></span></strong></span></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Phone: +54-011</span></font></span></span></strong></span><font face="tahoma, sans-serif" size="2">-4893-2057</font></div><div style="font-size:12.8px"><strong style="font-family:tahoma,sans-serif;font-size:xx-small"><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Twitter: @HernanWilkinson</span></font></span></span></strong></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">site: <a href="http://www.10pines.com/" style="color:rgb(17,65,112)" target="_blank">http://www.10Pines.com</a></span></font></span></span></strong></span></div><div style="font-size:12.8px"><font face="tahoma, sans-serif"><span style="border-collapse:collapse">Address: Alem 896</span></font>, Floor 6, Buenos Aires, Argentina</div></div></div></div></div></div></div></div>