use v6-alpha; use Test; plan 4; if $?PUGS_BACKEND eq "BACKEND_JAVASCRIPT" { skip_rest "YAML support not available in PIL2JS"; exit; } ok(eval(q{#eval("- *a\n a: b\n- *a\n b: c\n",:lang)}),'yaml parsing can kill pugs all the way dead'); ok(undef, "Bug workaround for release.", :todo); # Bug workaround: the order of the next two tests determines # whether the second one ('test') fails under smoke. is( eval('test', :lang), 'test', '"test" roundtrips' ); ok( !defined(eval(undef, :lang)), '"undef" roundtrips' );