Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix S02-literals/numeric.t
Some of the tests for different forms of Rat literals did so in a way that calls will call .Numeric on Str (as well as any other non-Numeric argument). Since a Rat literal that's not parsed correctly will be interpreted as a Str, then as long as Str.Numeric can handle the given Rat form any issues with Rat literals for those forms were hidden. These tests were changed to ensure we don't numify any strings. Also updated some of the tests to use the new 'does-ok' to check roles, and replaced a smartmatch against Str with an 'isa-ok' check.
- Loading branch information
1 parent
edea297
commit cf775d3
Showing
1 changed file
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters