Everything else
MAIN and its usage message, Pod, Test, and what fits nowhere above.
91 rules from 50 tests. 43 of those tests are confirmed on both engines: Raku++ and Rakudo 2026.11 both pass, or Raku++ gives Rakudo's answer on every probe of a family. The verdict is the test's, not each rule's. How to read a case.
found-on-the-wayRaku++ matches Rakudo on 21 of 34 probes- 1
A mixed set of constructs met during an audit (a hyper
»~~»with a Callable,.encodeand.decodewith unknown encodings,returnornextwith nothing to leave, a comma in regex source,MixHash.grab, a Range divided by zero, an adverb on a Version literal) answers as Rakudo does. inferred
6e-gatingRaku++ passesRakudo cannot run it- 1
The 6.e additions exist only for code that asked for 6.e; under 6.d the routine, type or syntax is absent.
- 4
The
.snitchmethod exists only from 6.e.(1,2).snitchis "No such method" under 6.d
More from this test: Dates & times (2), Exceptions & control flow (1), Hashes & sets (3), I/O & processes (2), Lists & laziness (8), Numerics (1), Classes, roles & the MOP (2), Operators (1), Regexes & grammars (2), Scoping & phasers (2), Signatures & dispatch (1), Strings & Unicode (6), divergences (1).
audited-language-gaps-4Raku++ passesRakudo passes- 3
last/nextinside the block oflives-ok/dies-okescape to an enclosing loop and record no test. - 4
An unmet test plan says "# You planned N tests, but ran M".
More from this test: Compile-time errors (1), Hashes & sets (1), Classes, roles & the MOP (1).
batch1-silent-wrong-answersRaku++ passesRakudo passes- 1
sleep-tillis not a routine; the routine issleep-until.sleep-tillis an undeclared routine - 4
Rakudo::Internals::JSON.to-jsonescapes hash keys as JSON strings, so a quote in a key still yields valid JSON.
More from this test: I/O & processes (3), Lists & laziness (2), Numerics (1), Scoping & phasers (1).
cmp-ok-smartmatch-matcherRaku++ passesRakudo passes- 1
cmp-ok $got, '~~', $matcherapplies the full smartmatch: a block matcher is called with the value, a regex is matched, a junction of matchers is threaded, and'!~~'is the negation.cmp-ok $out, '~~', { .contains: "FOO" & "bar" }passes when both words are in$out
declarator-doc-after-bodyRaku++ passesRakudo passes- 1
A
#=comment after the closing brace of a routine's or package's body, on the brace's line or alone on the lines below it before the next code, is trailing documentation of that declaration.~&f.WHYof#| a/sub f {/}/#= bis "a\nb" - 2
A routine's run of trailing
#=lines after its body continues past blank lines and plain comments, while a package's stops at the first line without a doc. - 4
.leadingand.trailingof a declarator block areNilwhen that part is missing. - 5
A bracketed declarator doc folds its lines into one, each line trimmed and blank lines dropped.
More from this test: Stringification (1).
dist-suite-quartetRaku++ passesRakudo passes- 16
Test's
cmp-okapplies the given operator to non-numeric operands as they are, so Version objects compare withcmp.
More from this test: Dates & times (1), Exceptions & control flow (1), I/O & processes (1), Classes, roles & the MOP (4), Operators (1), Regexes & grammars (2), Scoping & phasers (1), Signatures & dispatch (2), Stringification (1), Syntax & parsing (3), Types & coercion (2).
doc-renders-without-runningRaku++ passesRakudo passes- 1
--docrenders the program's Pod and runs nothing past INIT: no mainline, MAIN or END.
More from this test: Scoping & phasers (1).
dynamic-var-caller-chainRaku++ passesRakudo does not pass- 4
Raku.legacyis True on the type object, and$*RAKU.legacyon the instance dies. inferredRaku.legacy === True
More from this test: Modules (1), Scoping & phasers (3).
fails-like-returned-failureRaku++ passesRakudo passes- 1
fails-likeaccepts a Failure that the called routine returns and checks named matchers such as:payload(…)against its exception.fails-like { shorten("foobarbaz", 2) }, X::AdHoc, :payload("Target length 2 is too short")passes - 2
A
failwritten directly in the bare block given tofails-likecounts as a throw, and the test fails withexpected code to fail but it threw.
fails-like-subtestRaku++ passesRakudo passes- 1
Test's
fails-likeprints a subtest:code returned a Failure, then a nestedFailure threw when sunkholdingcode dies,right exception type (T)and one.KEY matches VALUEper matcher. - 2
fails-likegiven code that throws reportsexpected code to fail but it threw T instead. - 3
A Bool matcher given to
fails-likeorthrows-likeis X::Match::Bool.
grand-review-c2-methodsRaku++ passesRakudo passes- 16
Test's
likerefuses a Str as its matcher. inferredlike "abc", "b"is not ok
More from this test: Hashes & sets (1), I/O & processes (6), Lists & laziness (1), Numerics (4), Strings & Unicode (3).
handle-flush-and-main-usageRaku++ passesRakudo passes- 2
&MAIN's generated usage lists the options before the positionals. - 3
&MAIN's generated usage uses the routine's#|declarator doc as the candidate's description. - 4
&MAIN's generated usage prints a Str default value quoted. - 5
&MAIN's generated usage prints a one-character option as-x, not--x. - 6
A
#|above amulti MAINwith a one-line signature documents the routine and is not the help text of its parameters.#| Another way.onmulti MAIN('go', Int $n)is not the help for<n>
More from this test: I/O & processes (1).
http-useragent-clusterRaku++ passesRakudo passes- 1
Test's
iswith a Junction as the got argument autothreads and collapses per the junction's kind.is any(@names), 'a'passes when one name isa
More from this test: Classes, roles & the MOP (1), Regexes & grammars (3), Signatures & dispatch (1), Syntax & parsing (2).
internals-json-to-json-honours-adverbsRaku++ passesRakudo passes- 1
Rakudo::Internals::JSON.to-jsonwrites compact unless:pretty, and honours:spacing,:leveland:sorted-keys.
is-deeply-strict-and-anton-batchRaku++ passesRakudo passes- 2
Test's
is-deeplycompares witheqvand is type-strict, but caches a Seq operand first.is-deeply (1,2).Seq, (1,2)passes;is-deeply "11", 11fails
More from this test: Hashes & sets (1), I/O & processes (3), Lists & laziness (1), Classes, roles & the MOP (3), Operators (3), Regexes & grammars (2), Signatures & dispatch (1), Syntax & parsing (2).
kernel-memory-cpuRaku++ passesRakudo passes- 1
$*KERNEL.total-memory,.free-memoryand.cpu-usageanswer Ints: bytes of physical memory, bytes of free memory, and the process's user plus system CPU time in microseconds.
lizmat-nqp-opsRaku++ passesRakudo passes- 1
The nqp bignum
_Ifamily and its neighbours exist:div_i,div_I,mul_I,sub_I,mod_I, the sixis*_Icomparisons,cmp_I,neg_I,abs_I,pow_I,gcd_I,lcm_I, the bitwise_Iforms,isbig_I,tostr_I,fromstr_I,box_i,box_n,sqrt_n,isfalse,pop,print,say,time,readlink,repeat_whileandrepeat_until.
More from this test: Lists & laziness (1), Numerics (1), Operators (1), Types & coercion (1).
main-args-conventionsRaku++ passesRakudo passes- 1
Before the first positional,
--foo abcpairs into:foo<abc>only when theMAINcandidate declares:$foowith the Str type; untyped and Int/Num named parameters do not pair.--n 42fails dispatch for a numeric:$n - 2
A space-separated
MAINoption value is consumed unconditionally, and short and single-dash spellings pair the same way.--foo --verbosemakesfooequal--verbose;-f valpairs too - 3
MAINoptions end at the first positional: after one,--foo=xis the literal string--foo=x. - 4
A bare
--is consumed and endsMAINoptions, also directly after the first positional, but one token later it stays a literal--.pos -- xgives pos, x;pos y -- xgives pos, y, "--", x - 5
--helpafter a positional is a literal argument toMAIN: the failed dispatch prints usage on stderr and exits 2. - 6
-v,-n=3,-foo=bar,:vand:n=3are named arguments toMAIN: the whole rest of the token is the name and=splits off the value.-foo=barbinds:foo<bar> - 7
--/k,-/kand:/kon the command line negate theMAINoptionk. - 8
An empty
MAINoption value is the allomorphval(""), an IntStr of 0 and "", so--n=binds an Int named parameter with 0.--n=bindsInt :$nto 0
main-usage-17Raku++ passesRakudo passes- 1
In
MAINusage a parameter's trailing#=doc belongs to the parameter, so with no#|on the sub the usage line carries no-- …suffix. - 2
is requiredon a namedMAINparameter prints without the optionality brackets in the usage, as the!marker does. - 3
A
#=on the line where aMAINsignature closes, after the), documents the routine: it becomes the usage suffix and makes no option entry. - 4
An explicit
--helpprints theMAINusage to STDOUT and exits 0, while a failed dispatch, a bare-hincluded, prints it to STDERR and exits 2.
needle-compile-clusterRaku++ passesRakudo passes- 6
nqp::istypeof a type object against its own type is true, and a plain hash's.keyofis aStrtype while an object hash's is not. inferred?nqp::istype(Str, Str)isTrue;?nqp::istype(Str, Int)isFalse
More from this test: Exceptions & control flow (1), Classes, roles & the MOP (1), Signatures & dispatch (2), Stringification (2).
nqp-exception-ops-and-whereRaku++ passesRakudo passes- 2
nqp::whereis available to compare two objects by identity. inferred
More from this test: Exceptions & control flow (1).
nqp-key-and-null-opsRaku++ passesRakudo passesnqp-p6definiteRaku++ passesRakudo passes- 1
nqp::p6definiteasks whether its argument is a concrete object rather than a type object, likenqp::isconcrete, and answers a Raku Bool.gather while nqp::p6definite(my $line = self.get) { ... }loops untilgetanswers a type object
nqp-statRaku++ passesRakudo passes- 1
nqp::stat($path, nqp::const::STAT_…)returns the requested stat field, such as inode, device, uid, gid, nlinks, blocks or blocksize.
nqp-string-compare-opsRaku++ passesRakudo passes- 1
nqp::cmp_sanswers -1, 0 or 1 and thenqp::is*_sstring comparisons answer 0 or 1;nqp::cmp_iandnqp::cmp_nexist alongside them.
nqp-time-nRaku++ passesRakudo passes- 1
nqp::time_nanswers the seconds since the epoch as a Num.
pod-block-gist-is-rakudosRaku++ passesRakudo passes- 2
A Pod table with a header row carries
:header-row(0)in its config.
More from this test: Stringification (2).
pod-block-str-and-rakuRaku++ passesRakudo passes- 3
V<…>in Pod is its text, run into the text around it, not a formatting code object.
More from this test: Stringification (2).
pod-blocks-and-textRaku++ passesRakudo passes- 1
The
Pod::*classes can be constructed directly, as inPod::Block::Para.new(...). - 2
A Pod block is a
Pod::Blockand not a Map or Associative, soArray.new($block)keeps it whole and it binds aPod::Blockparameter. - 3
=begin tableparses into a Pod table that has rows. - 4
A constructed
Pod::FormattingCodehas ameta, as a parsed one does, so the two can beis-deeplyequal.
More from this test: Modules (1).
pod-finish-not-a-blockRaku++ passesRakudo passes- 1
The text after
=finishis available as$=finishand adds no block to$=pod.a program with one pod block and a
=finishsection has one block in$=pod
pod-para-block-is-namedRaku++ passesRakudo passespod-verbatim-marginRaku++ passesRakudo does not pass- 1
A Pod block's margin is the indent of its own
=begindelimiter, and text indented past that margin is aPod::Block::Code.an example indented under a
=begin podat column 0 is a code block - 2
A verbatim Pod run spans internal blank lines while it stays at or right of where it started; a line indented less than the run's first line ends it and opens a new one.
process-scope-and-sigilless-whileRaku++ passesRakudo passes- 3
Rakudo::Internals.REGISTER-DYNAMICregisters an initializer for a process-wide dynamic variable and leaves an existing binding alone.after
PROCESS::<$RX-PRESET> = 'mine', registering an initializer for$*RX-PRESETkeepsmine
More from this test: Scoping & phasers (1), Syntax & parsing (1), divergences (1).
rakudo-t-language-gaps-1Raku++ passesRakudo passes- 4
A Label knows its name, file and line.
More from this test: Compile-time errors (1), Containers & assignment (1), Lists & laziness (1), Classes, roles & the MOP (2), Operators (1), Regexes & grammars (2), Scoping & phasers (2), Signatures & dispatch (1), Stringification (2), Strings & Unicode (1), Syntax & parsing (1).
rakudo-t-language-gaps-5Raku++ passesRakudo passes- 7
cmp-okfinds an operator the caller declared, and an unknown operator is a failed test. - 8
skipwith its arguments backwards,skip 2, 'reason', dies.
More from this test: Compile-time errors (1), Concurrency (1), Classes, roles & the MOP (1), Signatures & dispatch (2), Stringification (1).
repl-echo-ruleRaku++ passesRakudo cannot run it- 2
The REPL echoes a statement's value unless the statement wrote at least one byte to standard output; output to standard error or an empty
print ""does not suppress the echo.say 42shows42only;print ""still echoesTrue
More from this test: Exceptions & control flow (1).
roast-3log-batch2Raku++ passesRakudo passes- 9
A test that fails inside a regex code block is reported at its own source line, not at "line 1". inferred
More from this test: Exceptions & control flow (1), Modules (1), Numerics (1), Classes, roles & the MOP (6), Regexes & grammars (5), Scoping & phasers (1), Syntax & parsing (1).
roast-sweep-runtimeRaku++ passesRakudo cannot run it- 27
A call to a routine marked
is DEPRECATED<x>is reported when the program ends, naming x as the replacement. inferred
More from this test: Compile-time errors (4), Concurrency (2), Containers & assignment (2), Exceptions & control flow (2), Hashes & sets (4), I/O & processes (3), Lists & laziness (5), Modules (2), Classes, roles & the MOP (8), Operators (4), Regexes & grammars (1), Scoping & phasers (14), Stringification (1), Strings & Unicode (1), Types & coercion (3).
scalars-nil-junction-complex-dateRaku++ passesRakudo passes- 11
isa-okuses the same default description whether the object is exactly of the type or inherits from it. inferred
More from this test: Concurrency (1), Containers & assignment (1), Dates & times (1), Numerics (3), Classes, roles & the MOP (1), Operators (1), Stringification (1), Syntax & parsing (1), Types & coercion (1).
sigilless-param-arity-at-run-timeRaku++ passesRakudo passes- 2
to-json(:pretty)called with no value dies with a run-time arity error instead of writingnull.
More from this test: Signatures & dispatch (1).
subtest-tap-formatRaku++ passesRakudo passestest-exit-statusRaku++ passesRakudo passes- 1
An explicit
exitanywhere in aTestfile (mainline, a sub, MAIN, LEAVE, END, CATCH) keeps its own exit status.an explicit
exit 0after a failed test exits 0 - 2
A
Testfile with failed tests exits with the number of failures, capped at 254, checked before the plan and overriding adie's status.plan 3; ok 0; ok 0exits 2; three failures and a die exit 3 - 3
A
Testfile with no failed tests whose run count misses the declared plan exits 255, also when adieended it.plan 2; ok 1; dieexits 255 - 4
A
Testfile that dies with no failed test and no missed plan keeps thedie's exit status 1. - 5
In
Test's exit status, TODO failures do not count and a failedsubtestcounts once. - 6
Testprints its "# You planned …" summary also when the file ends with adie. - 7
An
okafter adone-testingwith no declared plan is not counted as a plan mismatch in the exit status. inferred
test-failure-line-is-the-callersRaku++ passesRakudo passes- 1
Test's failure diagnostic
# Failed test '…' at FILE line Nnames the file and line of the assertion call, even when evaluating its arguments ran routines in other files.
top100-four-roots-2026-09-02Raku++ passesRakudo cannot run it- 3
Pod formatting codes parse to
Pod::FormattingCodenodes with a.typeletter and nested.contents, with plain text between them as Str, andL<text|url>puts the URL in.meta.L<Raku|https://raku.org>has contentsRakuand metahttps://raku.org
More from this test: Lists & laziness (1), Modules (1), Native types & NativeCall (1), Operators (1).
type-object-needle-and-signature-blobRaku++ passesRakudo passes- 2
$*VM.signatureand$*DISTRO.signatureare Blobs.
More from this test: Strings & Unicode (1).
usage-lists-every-aliasRaku++ passesRakudo passes- 1
$*USAGElists an option under every name it answers to.:f(:$file)is-f|--file=<Str>and:v(:verbose(:$loud))is-v|--verbose|--loud - 2
$*USAGElists a required option before the optional ones. - 3
With
%*SUB-MAIN-OPTS<named-anywhere>set,$*USAGEputs the positionals before the options; without it the options lead the line. - 4
An untyped renamed MAIN option (
:w(:$wide),:q($quiet)) keeps its#=description, in the usage message's option list and in.WHY.
use-trace-pragmaRaku++ passesRakudo passes- 1
use traceannounces each statement on$*ERRbefore it runs, with its line number, untilno traceor the end of the block.
vm-config-hashRaku++ passesRakudo passes- 1
$*VM.configis a Hash of build configuration, so$*VM.config<obj>is a hash lookup.
vm-name-overrideRaku++ passesRakudo passes- 2
$*VM.nameis one of$*RAKU.VMnames.$*VM.name eq any($*RAKU.VMnames)is true