834 845
op/sprintf.t 224 3 1.34% 98 100 136
op/tr.t 97 5 5.15% 63 71-74
- run/fresh_perl.t 95 3 3.16% 92-94
uni/fold.t 780 6 0.77% 61 169 196 661
710-711
my($prog,$expected) = split(/\nEXPECT\n/, $raw_prog);
+ if ($prog =~ /^\# SKIP: (.+)/m) {
+ if (eval $1) {
+ ok(1, "Skip: $1");
+ next;
+ }
+ }
+
$expected =~ s/\n+$//;
fresh_perl_is($prog, $expected, { switches => [$switch] }, $name);
EXPECT
ok
######## example from Camel 5, ch. 15, pp.406 (with my)
+# SKIP: ord "A" == 193 # EBCDIC
use strict;
use utf8;
my $人 = 2; # 0xe4 0xba 0xba: U+4eba, "human" in CJK ideograph
EXPECT
3
######## example from Camel 5, ch. 15, pp.406 (with our)
+# SKIP: ord "A" == 193 # EBCDIC
use strict;
use utf8;
our $人 = 2; # 0xe4 0xba 0xba: U+4eba, "human" in CJK ideograph
EXPECT
3
######## example from Camel 5, ch. 15, pp.406 (with package vars)
+# SKIP: ord "A" == 193 # EBCDIC
use utf8;
$人 = 2; # 0xe4 0xba 0xba: U+4eba, "human" in CJK ideograph
$人++; # a child is born
EXPECT
Can't modify constant item in tie at - line 2, near "'main';"
Execution of - aborted due to compilation errors.
-