Raku Cases

Rules of Raku learned one case at a time: each was found by fixing something, and each names the test that holds it.

The Spec explains features and the Rules file every operator and type. This is the third view, from the other end: what went wrong on the way. Every regression test in Raku++ says in its opening comment what the right behaviour is, and those comments, read together, are a rulebook of the corners of the language — the places an implementation gets wrong first.

The sentences were extracted from the tests on 29 November 2026 and have not been reviewed one by one. How to read a case says what that means and what the badges on each test do and do not confirm.

4,022rules
1,563tests they come from
1,397confirmed on both Raku++ and Rakudo 2026.11
Syntax & parsingHow source text is read: terms and operators, quoting, comments, statement ends, what binds to what.305 rulesCompile-time errorsWhat is refused before the program runs, and which exception says so.126 rulesOperatorsInfixes, prefixes, metaoperators, adverbs, and user-declared operators.233 rulesSignatures & dispatchBinding arguments to parameters, slurpies, traits, and which multi candidate wins.357 rulesTypes & coercionType objects, definedness, smileys, subsets, enums, and what converts to what.180 rulesContainers & assignmentScalars, binding against assignment, defaults, Nil, Proxy, itemization.257 rulesLists & lazinessLists, Arrays, Seqs, ranges, flattening, and when a block actually runs.265 rulesHashes & setsHash, Map, Pair, object hashes, and the Set, Bag and Mix family.111 rulesStrings & UnicodeStr methods, graphemes, normalization, encodings, Blob and Buf.129 rulesNumericsInt, Rat, Num, Complex: arithmetic, rounding, overflow, and parsing numbers.137 rulesStringificationWhat .gist, .raku, .Str and say print for each kind of value.104 rulesRegexes & grammarsMatching, captures, longest-token ranking, adverbs, and grammar methods.313 rulesClasses, roles & the MOPAttributes, construction, inheritance, role composition, and the metaobject protocol.361 rulesScoping & phasersLexical, dynamic, package and state variables, and the blocks that run at a set moment.202 rulesExceptions & control flowFailures, try and CATCH, control exceptions, return, next, last.135 rulesConcurrencyPromise, Supply, Channel, react and whenever, locks and threads.169 rulesI/O & processesPaths, handles, sockets, run, shell and Proc::Async.223 rulesModulesuse, need, require, exports and imports, and how a distribution is found.141 rulesNative types & NativeCallNative ints, nums and arrays, and calling C.104 rulesDates & timesDate, DateTime, Instant, Duration.45 rulesRakuASTThe syntax tree as objects: building, printing and running it.34 rulesEverything elseMAIN and its usage message, Pod, Test, and what fits nowhere above.91 rules