Rakudo Perl Development Rakudo Perl Development #16

Understanding tests

Perl 6 implemenations may be in different phases of implementation

"fudge" allows per-implementation skip/todo markers

Typical usage in test file:

#?rakudo skip 'NaN not implemented'
ok(sqrt(-1), NaN, 'sqrt(-1) is NaN');

When fudging for Rakudo, this gets converted to:

skip(1,'NaN not implemented');
#  { ok(sqrt(-1), NaN, 'sqrt(-1) is NaN');
#  }
Copyright © 2008
http://www.pmichaud.com/2008/pres/