[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[m8n] 61 toString

--nil
if (("'hello ',nil"):evaluate()~="hello nil") then error("Wrong conversion to string") end


Uploaded Image: red.gif
--Object
if (("'hello ',ClassBuilder new"):evaluate()~="hello {st:aClassBuilder}") then error("Wrong conversion to string") end

--Number
if (("'hello ',(3+4)"):evaluate()~="hello 7") then error("Wrong conversion to string") end


Uploaded Image: needsWork.png
--Behavior


--Association


--Point


--Exception


--Set


--Rectangle


--CompiledMethod
print(("'hello ',(Object>>#yourself)"):evaluate())


Uploaded Image: red.gif
--Array
if (("|array| array := #(1 2 3 4 5). 'hello ', array"):evaluate()~="hello #( 1 2 3 4 5 )") then error("Wrong conversion to string") end