<html><head></head><body> <div dir="auto">I grok the root of this discussion is clarity of selector semantic. They ought to state the meaning clearly. Sad SUnit is perceived as set in stone.. isn’t evolution of language important to get smart? I’d would humbly propose new methods: in ProtoObject…<caret></caret></div><div dir="auto"><br></div><div dir="auto"> #assertSacrifice: sacrifice equalsJudgement: judgement</div><div dir="auto"><br></div><div dir="auto"><span style=" San Francisco", Helvetica, Arial, sans-serif; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;" dir="auto"> #denySacrifice: sacrifice equalsJudgement: judgement</span><br></div><div><br></div><div class="protonmail_signature_block" id="protonmail_signature_block"><div>••• rabbit ❤️🔥🐰</div></div> <div class="signature_br" contenteditable="false"><br></div><div class="signature_br" contenteditable="false"><br></div> <div id="protonmail_mobile_signature_block"><div></div></div> <div><br></div><div><br></div>On Sat, Jul 29, 2023 at 10:12, rabbit <<a class="" href="mailto:On Sat, Jul 29, 2023 at 10:12, rabbit <<a href=">rabbit@callistohouse.org</a>> wrote:<blockquote type="cite" class="protonmail_quote"> <div dir="auto">In other words, sacrifice goes before judgement.</div><div dir="auto"><br></div><div dir="auto"> <assert: sacrifice equals: judgement”</div><div><br></div><div id="protonmail_signature_block" class="protonmail_signature_block"><div>••• rabbit ❤️🔥🐰</div></div> <div class="signature_br" contenteditable="false"><br></div><div class="signature_br" contenteditable="false"><br></div> <div id="protonmail_mobile_signature_block"><div></div></div> <div><br></div><div><br></div>On Sat, Jul 29, 2023 at 10:05, rabbit via Cuis-dev <<a href="mailto:On Sat, Jul 29, 2023 at 10:05, rabbit via Cuis-dev <<a href=" class="">cuis-dev@lists.cuis.st</a>> wrote:<blockquote class="protonmail_quote" type="cite"> It makes sense to me, though I don’t use it. I use #assert: and parenthesize the argument to explicit code the expectation. However, inside the mind of Kent Beck (was it he who dropped SUnit years ago?), I find I read it as<div dir="auto"> </div><div dir="auto"> “assert: candidate equals: measuredValue”</div><div dir="auto"><br></div><div dir="auto">The jingle defines one’s understanding. If you’re confused, change your jingle. It’s helpful in any situation.</div><div dir="auto"><br></div><div dir="auto">Peace,<div class="protonmail_signature_block" id="protonmail_signature_block"><div>••• rabbit ❤️🔥🐰</div></div> <div class="signature_br" contenteditable="false"><br></div><div class="signature_br" contenteditable="false"><br></div> <div id="protonmail_mobile_signature_block"><div></div></div> <div><br></div><div><br></div>On Sat, Jul 29, 2023 at 09:25, Hernán Wilkinson via Cuis-dev <<a class="" href="mailto:On Sat, Jul 29, 2023 at 09:25, Hernán Wilkinson via Cuis-dev <<a href=">cuis-dev@lists.cuis.st</a>> wrote:<blockquote type="cite" class="protonmail_quote"> <div dir="auto">Hi Hilaire,</div><div dir="auto"> That it is what I said in my first response of the original thread. People do not know that the first parameter is the expected and I agree that it is not intuitive, but it is keep like that for historical reasons and because a lot of people use it correctly.</div><div dir="auto"> The solution is simple: redefine assert:equals: in the test class to do:</div><div dir="auto">assert: actual equals: expected</div><div dir="auto"> ^super assert: expected equals: actual</div><div dir="auto"><br></div><div dir="auto">Cheers!</div><div dir="auto">Hernan<br><div dir="auto" class="gmail_quote"><div class="gmail_attr" dir="ltr">On Sat, 29 Jul 2023 at 08:31 Hilaire Fernandes <<a href="mailto:hfern@free.fr">hfern@free.fr</a>> wrote:<br></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote">
<div>
<p>Hi Hernán,</p>
<p>I understand but the problem is that the users I have observed
have the reverse understanding. For example from the packages
below:</p>
<p><b>NeoCSV.</b> ported from Pharo. The more than 50 tests are
written with a different understanding. See the expected value is
the second parameter:<br>
</p>
<p>testEmptyFieldQuoted<br>
self <br>
assert: (NeoCSVReader on: '"1",,"3"' readStream) upToEnd<br>
equals: #(('1' nil '3'))</p>
<p><br>
</p>
<p><b>Locale.</b> package ported from Squeak:<br>
</p>
<p>testFromISOString<br>
<br>
| locale |<br>
locale := LocaleID isoString: 'en-us'.<br>
self <br>
assert: locale isoLanguage equals: 'en';<br>
assert: locale isoCountry equals: 'us' <br>
</p>
<p><br>
</p>
<p>I personally never used assert:equal: before so I don't know
about other package using it.</p></div><div>
<p>Hilaire<br>
</p>
<br>
<p><br>
</p>
<div>Le 29/07/2023 à 02:05, Hernán Wilkinson
a écrit :<br>
</div>
<blockquote type="cite">
<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>
</blockquote>
</div>
</blockquote></div></div><span class="gmail_signature_prefix">-- </span><br><div data-smartmail="gmail_signature" class="gmail_signature" dir="ltr"><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 size="2" face="tahoma, sans-serif">-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 target="_blank" style="color:rgb(17,65,112)" href="http://www.10pines.com/">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>
</blockquote></div></blockquote></blockquote></body></html>