[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
| --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
--Behavior
--Association
--Point
--Exception
--Set
--Rectangle
--CompiledMethod
print(("'hello ',(Object>>#yourself)"):evaluate())
| --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
|