Rakudo Perl Hacking Rakudo Perl #74

Fudge

The spectest suite is shared among implementations

Each may be in different phase 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 © 2009
http://www.pmichaud.com/2009/pres/