Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created August 21, 2017 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/4d4d899043ce01a1f3d71508f4270a00 to your computer and use it in GitHub Desktop.
Save Whateverable/4d4d899043ce01a1f3d71508f4270a00 to your computer and use it in GitHub Desktop.
committable6
MVM_SPESH_BLOCKING=1 MVM_SPESH_NODELAY=1 HEAD https://raw.githubusercontent.com/perl6/roast/6.c-errata/S32-num/complex.t
¦«HEAD(1aee9aa)»:
1..512
ok 1 - postfix:<i> creates a Complex number
ok 2 - i creates a Complex number
ok 3 - i == 1i
ok 4 - != and complex numbers
ok 5 - ($n)i form creates a Complex number
ok 6 - $n\i form creates a Complex number
ok 7 - postfix:<i> works on an imaginary number
ok 8 - postfix:<i> works on a Complex number
1..2
ok 1 - '(2 + 3i) > (2 + 2i)' died
ok 2 - right exception type (Exception)
ok 9 - > comparison of complex numbers dies
1..2
ok 1 - '(1 + 2i) < (2 + 4i)' died
ok 2 - right exception type (Exception)
ok 10 - Cannot arithmetically compare Complex numbers
Unable to call postcircumfix $bt[ (Any) ] with a type object
Indexing requires a defined object
in sub is_approx at /tmp/whateverable/rakudo-moar/1aee9aa573daee18b8fc40e1a6bcbcbae6d5ce48/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 265
in block <unit> at /tmp/k1K8xRFYqT line 24
# Looks like you planned 512 tests, but ran 10
Saw 1 occurrence of deprecated code.
================================================================================
Sub is_approx (from Test) seen at:
/tmp/k1K8xRFYqT, lines 17,18
Please use is-approx instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear! «exit code = 255»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment