<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I was referring to the message <b>#assert:equal:</b> not
#assert:equalsExpected:</p>
<p>I don't understand why the method #assert:equalsExpected: exists</p>
Just reversing the argument in message send <b>#comparingStringBetween:and:</b>
will make the error message looks right. So in that case the
argument of the method #assert:equals: do not need to be reversed.<br>
<p>assert: expected equals: actual<br>
self<br>
assert: expected = actual<br>
description: [ <b>self comparingStringBetween: expected
and: actual </b>]<br>
<br>
</p>
<p>Most of the Test I see in my working image use #assert:equal:
(NeoCSV, Locale, Smalltalk-UI) that way so failed test error
message will looks wrong and misleading. <br>
</p>
<p>Personally I just use #assert: <br>
</p>
<p>Hilaire<br>
</p>
<p></p>
<p><br>
</p>
<div class="moz-cite-prefix">Le 24/07/2023 à 15:13, Juan Vuletich a
écrit :<br>
</div>
<blockquote type="cite" cite="mid:64BE78E7.1040602@cuis.st">If I
evaluate:
<br>
<br>
TestCase new assert: 'actual value' equalsExpected: 'expected
value'
<br>
</blockquote>
</body>
</html>