root/t/unspecced/eval_yaml.t

Revision 20490, 0.5 kB (checked in by Auzon, 8 months ago)

s/use v6-alpha;$/use v6;/;
Also catching a few other mentions of v6-alpha.

  • Property svn:mime-type set to text/plain; charset=UTF-8
  • Property svn:eol-style set to native
Line 
1use v6;
2
3use Test;
4
5plan 4;
6
7if $?PUGS_BACKEND eq "BACKEND_JAVASCRIPT" {
8  skip_rest "YAML support not available in PIL2JS";
9  exit;
10}
11
12ok(eval(q{#eval("- *a\n a: b\n- *a\n b: c\n",:lang<yaml>)}),'yaml parsing can kill pugs all the way dead');
13
14ok(undef, "Bug workaround for release.", :todo<bug>);
15# Bug workaround: the order of the next two tests determines
16# whether the second one ('test') fails under smoke.
17is( eval('test', :lang<yaml>), 'test', '"test" roundtrips' );
18ok( !defined(eval(undef, :lang<yaml>)), '"undef" roundtrips' );
Note: See TracBrowser for help on using the browser.