<div class="gmail_quote">On Thu, Nov 13, 2008 at 2:44 PM, Philippe Marschall <span dir="ltr">&lt;<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">2008/11/13, John O&#39;Keefe &lt;<a href="mailto:wembley.instantiations@gmail.com">wembley.instantiations@gmail.com</a>&gt;:<br>

<div class="Ih2E3d">&gt; I have been getting failures in my port of the JSJson tests (example, self<br>&gt; assert: (self parse: &#39;True&#39;) = &#39;True&#39;). &nbsp;These failures were a bit of a<br>&gt; mystery to me since on VA Smalltalk &quot;self parse: &#39;True&#39;&quot; answers a Symbol,<br>
&gt; not a String. &nbsp;But on delving into Squeak, all is now clear -- it answers a<br>&gt; Symbol there also!<br><br></div>That looks like a bug in the test or in the Squeak implementation. The<br>Seaside coding conventions are quite clear in this area, you can&#39;t<br>
assume that a Symbol is a String. So either the test or the Squeak<br>implementation is broken.<br><br>It probably couldn&#39;t hurt to document the type assumptions along the lines of:<br><br>assert: (self parse: &#39;True&#39;) class = #True class<br>
<br>or:<br><br>assert: (self parse: &#39;True&#39;) isSymbol<br><br>Cheers<br><font color="#888888">Philippe<br></font>
<div>
<div></div>
<div class="Wj3C7c">_______________________________________________<br>seaside-dev mailing list<br><a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
</div></div></blockquote>
<div>I think I&#39;ll go with an identity test for the tests that should answer a Symbol:</div>
<div>&nbsp;</div>
<div>&nbsp;assert: (self parse: &#39;True&#39;) == #True</div>
<div>&nbsp;</div>
<div>That will defeat the odd equality implementation on Squeak.</div>
<div>&nbsp;</div>
<div>John</div></div>