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

test[scripting] 001 - Literals

"Simple literal evaluation"
#( '0' '12' '#hello'
   '#( 1 2 3 )'
   '#( #hello ''world'' )'
    '#(1 2 3 nil true new with:with: displayAt:with: yourself + ''aString'' )'
) do: [:code|
    (ScriptParser new parse: code) evaluate = code evaluate
    ifFalse: [ self error: 'Error evaluating ' ,code asLiteral ]
]