Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created September 3, 2016 22:42
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 zoffixznet/830f2d9a81c3be5e83477ca0f8c8e7c6 to your computer and use it in GitHub Desktop.
Save zoffixznet/830f2d9a81c3be5e83477ca0f8c8e7c6 to your computer and use it in GitHub Desktop.
zoffix@VirtualBox:~/CPANPRC/rakudo$ prove -e './perl6' -vlr t/02-rakudo/
t/02-rakudo/01-is_approx.t ......
1..11
not ok 1 - approx within 1e-5
# Failed test 'approx within 1e-5'
# at t/02-rakudo/01-is_approx.t line 13
# maximum absolute tolerance: 1e-05
# actual absolute difference: 42
not ok 2 - should fail; approx *not* within 1e-5# TODO should fail; approx *not* within 1e-5
# Failed test 'should fail; approx *not* within 1e-5'
# at t/02-rakudo/01-is_approx.t line 21
# maximum absolute tolerance: 1e-05
# actual absolute difference: 542
ok 3 -
ok 4 - approx within 1e-5
ok 5 - should fail; approx *not* within 1e-5# TODO should fail; approx *not* within 1e-5
not ok 6 - should fail; approx *not* within 1e-5
ok 7 - should pass; approx within 1e-5
ok 8 - should fail; approx *not* within 1e-5# TODO should fail; approx *not* within 1e-5
not ok 9 - should fail; approx *not* within 1e-5
# Failed test 'should fail; approx *not* within 1e-5'
# at t/02-rakudo/01-is_approx.t line 40
# Failed test 'should fail; approx *not* within 1e-5'
# at t/02-rakudo/01-is_approx.t line 57
ok 10 - should fail; approx *not* within 1e-5# TODO should fail; approx *not* within 1e-5
not ok 11 - should fail; approx *not* within 1e-5
# Failed test 'should fail; approx *not* within 1e-5'
# at t/02-rakudo/01-is_approx.t line 65
# Looks like you failed 4 tests of 11
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/11 subtests
(3 TODO tests unexpectedly succeeded)
t/02-rakudo/02-new-is-approx.t ..
1..7
ok 1 -
ok 2 -
ok 3 - test desc one
ok 4 - test desc two
not ok 5 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 20
# maximum absolute tolerance: 1e-05
# actual absolute difference: 1
ok 6 - should fail; expected is not within precision
not ok 7 - test desc three# TODO should fail; expected is not within precision
# Failed test 'test desc three'
# at t/02-rakudo/02-new-is-approx.t line 21
# maximum absolute tolerance: 1e-05
# actual absolute difference: 1
ok 8 - should fail; expected is not within precision
1..8
ok 1 - two-arg version + optional description
ok 1 -
ok 2 -
ok 3 - test desc one
ok 4 - test desc two
not ok 5 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 31
# maximum absolute tolerance: 1e-10
# actual absolute difference: 1.00000000013978e-06
ok 6 - should fail; expected is not within precision
not ok 7 - test desc three# TODO should fail; expected is not within precision
# Failed test 'test desc three'
# at t/02-rakudo/02-new-is-approx.t line 32
# maximum absolute tolerance: 1e-10
# actual absolute difference: 1.00000000013978e-06
ok 8 - should fail; expected is not within precision
1..8
ok 2 - tree-arg version + optional description
ok 1 -
ok 2 -
ok 3 -
ok 4 -
ok 5 - test desc one
ok 6 - test desc two
ok 7 - test desc three
ok 8 - test desc four
not ok 9 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 46
# maximum relative tolerance: .9
# actual relative difference: 0.999
ok 10 - should fail; expected is not within precision
not ok 11 - test desc five# TODO should fail; expected is not within precision
# Failed test 'test desc five'
# at t/02-rakudo/02-new-is-approx.t line 47
# maximum relative tolerance: .9
# actual relative difference: 0.999
ok 12 - should fail; expected is not within precision
1..12
ok 3 - rel-tol version + optional description
ok 1 -
ok 2 -
ok 3 -
ok 4 -
ok 5 - test desc one
ok 6 - test desc two
ok 7 - test desc three
ok 8 - test desc four
not ok 9 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 61
# maximum absolute tolerance: 10
# actual absolute difference: 999000
ok 10 - should fail; expected is not within precision
not ok 11 - test desc five# TODO should fail; expected is not within precision
# Failed test 'test desc five'
# at t/02-rakudo/02-new-is-approx.t line 62
# maximum absolute tolerance: .4
# actual absolute difference: 0.5
ok 12 - should fail; expected is not within precision
1..12
ok 4 - abs-tol version + optional description
ok 1 -
ok 2 -
ok 3 -
ok 4 -
ok 5 - test desc one
ok 6 - test desc two
ok 7 - test desc three
ok 8 - test desc four
not ok 9 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 76
# maximum absolute tolerance: 5
# actual absolute difference: 9
ok 10 - should fail; expected is not within precision
not ok 11 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 77
# maximum relative tolerance: .5
# actual relative difference: 0.9
ok 12 - should fail; expected is not within precision
not ok 13 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 78
# maximum absolute tolerance: 5
# actual absolute difference: 9
# maximum relative tolerance: .5
# actual relative difference: 0.9
ok 14 - should fail; expected is not within precision
not ok 15 - test desc five# TODO should fail; expected is not within precision
# Failed test 'test desc five'
# at t/02-rakudo/02-new-is-approx.t line 80
# maximum absolute tolerance: 5
# actual absolute difference: 9
ok 16 - should fail; expected is not within precision
not ok 17 - test desc six# TODO should fail; expected is not within precision
# Failed test 'test desc six'
# at t/02-rakudo/02-new-is-approx.t line 83
# maximum relative tolerance: .5
# actual relative difference: 0.9
ok 18 - should fail; expected is not within precision
not ok 19 - test desc seven# TODO should fail; expected is not within precision
# Failed test 'test desc seven'
# at t/02-rakudo/02-new-is-approx.t line 86
# maximum absolute tolerance: 5
# actual absolute difference: 9
# maximum relative tolerance: .5
# actual relative difference: 0.9
ok 20 - should fail; expected is not within precision
1..20
ok 5 - abs-tol + rel-tol version + optional description
ok 1 -
not ok 2 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 92
# maximum absolute tolerance: 1
# actual absolute difference: 1.0000000001
ok 3 - should fail; expected is not within precision
ok 4 -
not ok 5 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 95
# maximum absolute tolerance: 1
# actual absolute difference: 1.0000000001
ok 6 - should fail; expected is not within precision
ok 7 -
not ok 8 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 98
# maximum absolute tolerance: 1
# actual absolute difference: 1.0000000001
ok 9 - should fail; expected is not within precision
ok 10 -
not ok 11 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 101
# maximum absolute tolerance: 1
# actual absolute difference: 1.0000000001
ok 12 - should fail; expected is not within precision
1..12
ok 6 - abs tol is correctly calculated
ok 1 -
not ok 2 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 106
# maximum relative tolerance: .9
# actual relative difference: 0.900000000001
ok 3 - should fail; expected is not within precision
ok 4 -
not ok 5 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 109
# maximum relative tolerance: .9
# actual relative difference: 0.900000000001
ok 6 - should fail; expected is not within precision
ok 7 -
not ok 8 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 112
# maximum relative tolerance: .9
# actual relative difference: 0.900000000001
ok 9 - should fail; expected is not within precision
ok 10 -
not ok 11 - # TODO should fail; expected is not within precision
# Failed test at t/02-rakudo/02-new-is-approx.t line 115
# maximum relative tolerance: .9
# actual relative difference: 0.900000000001
ok 12 - should fail; expected is not within precision
1..12
ok 7 - rel tol is correctly calculated
ok
t/02-rakudo/03-cmp-ok.t .........
1..6
ok 1 -
ok 2 -
ok 3 - "foo" eq "foo"
ok 4 - "a" lt "b"
ok 5 - "b" gt "a"
ok 6 - 1 < 2
ok 7 - 2 >= 1
not ok 8 - 2 < 1# TODO should fail due to requested comparison
# Failed test '2 < 1'
# at t/02-rakudo/03-cmp-ok.t line 25
# expected: '1'
# matcher: 'infix:«<»'
# got: '2'
ok 9 - should fail due to requested comparison
not ok 10 - "foo" eq "bar"# TODO should fail due to requested comparison
# Failed test '"foo" eq "bar"'
# at t/02-rakudo/03-cmp-ok.t line 26
# expected: 'bar'
# matcher: 'infix:<eq>'
# got: 'foo'
ok 11 - should fail due to requested comparison
not ok 12 - # TODO should fail due to requested comparison
# Failed test at t/02-rakudo/03-cmp-ok.t line 27
# Could not use '"non-exisistant-op"' as a comparator.
ok 13 - should fail due to requested comparison
1..13
ok 1 - string comparators
ok 1 -
ok 2 -
ok 3 - "foo" eq "foo"
ok 4 - "a" lt "b"
ok 5 - "b" gt "a"
ok 6 - 1 < 2
ok 7 - 2 >= 1
not ok 8 - 2 < 1# TODO should fail due to requested comparison
# Failed test '2 < 1'
# at t/02-rakudo/03-cmp-ok.t line 41
# expected: '1'
# matcher: 'infix:«<»'
# got: '2'
ok 9 - should fail due to requested comparison
not ok 10 - "foo" eq "bar"# TODO should fail due to requested comparison
# Failed test '"foo" eq "bar"'
# at t/02-rakudo/03-cmp-ok.t line 42
# expected: 'bar'
# matcher: 'infix:<eq>'
# got: 'foo'
ok 11 - should fail due to requested comparison
1..11
ok 2 - &[] comparators
ok 1 - comparing using a fancy operator (Callable version)
ok 2 - comparing using a fancy operator (Str version)
not ok 3 - failing comparison custom op (Callable)# TODO should fail due to requested comparison
# Failed test 'failing comparison custom op (Callable)'
# at t/02-rakudo/03-cmp-ok.t line 49
# expected: '1'
# matcher: 'infix:<◀>'
# got: '2'
ok 4 - should fail due to requested comparison
not ok 5 - failing comparison custom op (Str)# TODO should fail due to requested comparison
# Failed test 'failing comparison custom op (Str)'
# at t/02-rakudo/03-cmp-ok.t line 50
# expected: '1'
# matcher: 'infix:<◀>'
# got: '2'
ok 6 - should fail due to requested comparison
1..6
ok 3 - custom operators (in code)
ok 1 - passing, Callable
ok 2 - passing, Str
not ok 3 - failing, Callable# TODO should fail due to requested comparison
# Failed test 'failing, Callable'
# at t/02-rakudo/03-cmp-ok.t line 59
# expected: '1'
# matcher: 'infix:<◀>'
# got: '2'
ok 4 - should fail due to requested comparison
not ok 5 - failing, Str# TODO should fail due to requested comparison
# Failed test 'failing, Str'
# at t/02-rakudo/03-cmp-ok.t line 60
# expected: '1'
# matcher: 'infix:<◀>'
# got: '2'
ok 6 - should fail due to requested comparison
1..6
ok 4 - custom operators (in nested scope)
ok 1 - passing <=! op, Callable
ok 2 - passing <=! op, Str
ok 3 - passing <=» op, Str
ok 4 - passing « op, Callable
ok 5 - passing « op, Str
ok 6 - passing <« op, Str
ok 7 - passing >» op, Str
ok 8 - passing <«>» op, Str
not ok 9 - failing <=! op, Callable# TODO should fail due to requested comparison
# Failed test 'failing <=! op, Callable'
# at t/02-rakudo/03-cmp-ok.t line 82
# expected: '1'
# matcher: 'infix:«<=!»'
# got: '2'
ok 10 - should fail due to requested comparison
not ok 11 - failing <=! op, Str# TODO should fail due to requested comparison
# Failed test 'failing <=! op, Str'
# at t/02-rakudo/03-cmp-ok.t line 83
# expected: '1'
# matcher: 'infix:«<=!»'
# got: '2'
ok 12 - should fail due to requested comparison
not ok 13 - failing <=» op, Str# TODO should fail due to requested comparison
# Failed test 'failing <=» op, Str'
# at t/02-rakudo/03-cmp-ok.t line 85
# expected: '1'
# matcher: 'infix:<\<=»>'
# got: '2'
ok 14 - should fail due to requested comparison
not ok 15 - failing « op, Callable# TODO should fail due to requested comparison
# Failed test 'failing « op, Callable'
# at t/02-rakudo/03-cmp-ok.t line 86
# expected: '1'
# matcher: 'infix:<«>'
# got: '2'
ok 16 - should fail due to requested comparison
not ok 17 - failing « op, Str# TODO should fail due to requested comparison
# Failed test 'failing « op, Str'
# at t/02-rakudo/03-cmp-ok.t line 87
# expected: '1'
# matcher: 'infix:<«>'
# got: '2'
ok 18 - should fail due to requested comparison
not ok 19 - failing <« op, Str# TODO should fail due to requested comparison
# Failed test 'failing <« op, Str'
# at t/02-rakudo/03-cmp-ok.t line 89
# expected: '1'
# matcher: 'infix:<\<«>'
# got: '2'
ok 20 - should fail due to requested comparison
not ok 21 - failing >» op, Str# TODO should fail due to requested comparison
# Failed test 'failing >» op, Str'
# at t/02-rakudo/03-cmp-ok.t line 91
# expected: '1'
# matcher: 'infix:<\>»>'
# got: '2'
ok 22 - should fail due to requested comparison
not ok 23 - failing <«>» op, Str# TODO should fail due to requested comparison
# Failed test 'failing <«>» op, Str'
# at t/02-rakudo/03-cmp-ok.t line 93
# expected: '1'
# matcher: 'infix:<\<«\>»>'
# got: '2'
ok 24 - should fail due to requested comparison
1..24
ok 5 - custom operators (imported)
not ok 1 - # TODO should fail due to requested comparison
# Failed test at t/02-rakudo/03-cmp-ok.t line 97
# Could not use '"~~>;exit; <z"' as a comparator.
ok 2 - should fail due to requested comparison
1..2
ok 6 - no EVAL exploit (RT\#128283)
ok
t/02-rakudo/04-diag.t ...........
1..2
ok 1 - STDOUT
ok 2 - STDERR
1..2
ok 1 - diag at the start of file shows up in non-verbose prove run
ok 1 - STDOUT has TODO
ok 2 - diag message is not in STDOUT
ok 3 - diag message is in STDERR
1..3
ok 2 - using diag in the middle of TODO tests does not interfere
ok
t/02-rakudo/dump.t ..............
1..44
ok 1 - DUMP(:U) is .perl (Mu)
ok 2 - DUMP(:U) is .perl (Junction)
ok 3 - DUMP(:U) is .perl (Any)
ok 4 - DUMP(:U) is .perl (Bool)
ok 5 - DUMP(:U) is .perl (Cool)
ok 6 - DUMP(:U) is .perl (Str)
ok 7 - DUMP(:U) is .perl (Int)
ok 8 - DUMP(:U) is .perl (Num)
ok 9 - DUMP(:U) is .perl (Rat)
ok 10 - DUMP(:U) is .perl (FatRat)
ok 11 - DUMP(:U) is .perl (Complex)
ok 12 - DUMP(:U) is .perl (Duration)
ok 13 - DUMP(:U) is .perl (Instant)
not ok 14 - DUMP(Bool:D) is .Str (False)
# Failed test 'DUMP(Bool:D) is .Str (False)'
# at t/02-rakudo/dump.t line 22
# expected: 'False'
# got: 'Bool::False'
not ok 15 - DUMP(Bool:D) is .Str (True)
# Failed test 'DUMP(Bool:D) is .Str (True)'
# at t/02-rakudo/dump.t line 23
# expected: 'True'
ok 16 - DUMP(Int:D) is .perl (0)
ok 17 - DUMP(Int:D) is .perl (1)
ok 18 - DUMP(Int:D) is .perl (-128)
ok 19 - DUMP(Int:D) is .perl (123456789)
ok 20 - DUMP(Int:D) is .perl (1 +< 100)
ok 21 - DUMP(Num:D) is .perl (0e0)
ok 22 - DUMP(Num:D) is .perl (-0e0)
ok 23 - DUMP(Num:D) is .perl (Inf)
ok 24 - DUMP(Num:D) is .perl (-Inf)
ok 25 - DUMP(Num:D) is .perl (NaN)
ok 26 - DUMP(Rat:D) is .perl (0.0)
ok 27 - DUMP(Rat:D) is .perl (-0.0)
# got: 'Bool::True'
ok 28 - DUMP(Rat:D) is .perl (1.1)
ok 29 - DUMP(Rat:D) is .perl (-1.1)
ok 30 - DUMP(Rat:D) is .perl (22/7)
ok 31 - DUMP(Rat:D) is .perl (-22/7)
ok 32 - DUMP(Complex:D) is .perl (0i)# TODO 0i literal gets wrapped in a container, unlike other numeric literals
ok 33 - DUMP(Complex:D) is .perl (-0i)
ok 34 - DUMP(Complex:D) is .perl (0+0i)
ok 35 - DUMP(Complex:D) is .perl (0-0i)
ok 36 - DUMP(Complex:D) is .perl (-0+0i)
ok 37 - DUMP(Complex:D) is .perl (-0-0i)
ok 38 - DUMP(Complex:D) is .perl (1+1i)
ok 39 - DUMP(Complex:D) is .perl (1-1i)
ok 40 - DUMP(Complex:D) is .perl (-1+1i)
ok 41 - DUMP(Complex:D) is .perl (-1-1i)
not ok 42 - DUMP(int) dumps as a literal
# Failed test 'DUMP(int) dumps as a literal'
# at t/02-rakudo/dump.t line 62
# expected: '42'
# got: '▶42'
not ok 43 - DUMP(num) dumps as a literal
# Failed test 'DUMP(num) dumps as a literal'
# at t/02-rakudo/dump.t line 63
# expected: '12345e0'
# got: '▶12345e0'
not ok 44 - DUMP(str) dumps as a literal
# Failed test 'DUMP(str) dumps as a literal'
# at t/02-rakudo/dump.t line 64
# expected: '"a string"'
# got: '▶"a string"'
# Looks like you failed 5 tests of 44
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/44 subtests
(1 TODO test unexpectedly succeeded)
t/02-rakudo/repl.t ..............
ok 1 - exit(42) in executed REPL got run
ok 2 - >>.() does not crash in REPL
ok 3 - can use native typed variable on subsequent lines (1)
not ok 4 - uncuddled else is parsed correctly# TODO indent styles don't parse right
# Failed test 'uncuddled else is parsed correctly'
# at t/02-rakudo/repl.t line 61
# expected: ':)'
# got: '() ===SORRY!=== Error while compiling: Undeclared routine: else used at line 1 '
not ok 5 - open brace on next line is parsed correctly# TODO indent styles don't parse right
# Failed test 'open brace on next line is parsed correctly'
# at t/02-rakudo/repl.t line 76
# expected: ':)'
# got: '() ===SORRY!=== Error while compiling: Undeclared routine: else used at line 1 :)'
not ok 6 - cuddled else is parsed correctly# TODO indent styles don't parse right
# Failed test 'cuddled else is parsed correctly'
# at t/02-rakudo/repl.t line 85
# expected: ':)'
# got: '() ===SORRY!=== Error while compiling: Undeclared routine: else used at line 1 '
ok 7 - cuddled else is parsed correctly
===SORRY!=== Error while compiling:
Missing block
------> if True⏏;
expecting any of:
block or pointy block
ok 8 - statement mod if on the next line works# TODO statement mod if on the next line
===SORRY!=== Error while compiling:
Missing block
------> for 1⏏;
expecting any of:
block or pointy block
ok 9 - statement mod for on the next line works# TODO statement mod for on the next line
not ok 10 - single-line sub declaration works# TODO block parsing broken
# Failed test 'single-line sub declaration works'
# at t/02-rakudo/repl.t line 113
# expected: '42'
# got: 'sub f () { #`(Sub|83037440) ... } 42'
not ok 11 - single-line sub declaration works# TODO block parsing broken
# Failed test 'single-line sub declaration works'
# at t/02-rakudo/repl.t line 118
# expected: '42'
# got: 'sub f () { #`(Sub|73234656) ... }'
ok 12 - Assigning to a Scalar lasts to the next line
ok 13 - Assigning to an Array lasts to the next line
not ok 14 - Assigning to a sigilless lasts to the next line
# Failed test 'Assigning to a sigilless lasts to the next line'
# at t/02-rakudo/repl.t line 133
# expected: '1 100'
# got: '===SORRY!=== Error while compiling: Malformed my ------> my⏏ = 100; say 1 ===SORRY!=== Error while compiling: Undeclared routine: a used at line 1 '
ok 15 - Entering a blank line gives back the prompt
ok 16 - An empty string gives back one blank line
ok 17 - Syntax error gives a compile-time error
ok 18 - Syntax error gives the expected error
ok 19 - EVAL-time compile error gives a compile-time error
ok 20 - EVAL-time compile error error gives the expected error
ok 21 - EVAL-time compile error error gives the expected error
ok 22 - Print-time error error gives the expected error
ok 23 - Raises error when you run control flow command 'return'
ok 24 - Raises error when you run control flow command 'redo'
ok 25 - Raises error when you run control flow command 'next'
ok 26 - Raises error when you run control flow command 'last'
ok 27 - Raises error when you run control flow command 'warn'
ok 28 - Raises error when you run control flow command 'proceed'
ok 29 - Raises error when you run control flow command 'succeed'
1..29
# Looks like you failed 1 test of 29
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/29 subtests
(2 TODO tests unexpectedly succeeded)
Test Summary Report
-------------------
t/02-rakudo/01-is_approx.t (Wstat: 1024 Tests: 11 Failed: 4)
Failed tests: 1, 6, 9, 11
TODO passed: 5, 8, 10
Non-zero exit status: 4
t/02-rakudo/dump.t (Wstat: 1280 Tests: 44 Failed: 5)
Failed tests: 14-15, 42-44
TODO passed: 32
Non-zero exit status: 5
t/02-rakudo/repl.t (Wstat: 256 Tests: 29 Failed: 1)
Failed test: 14
TODO passed: 8-9
Non-zero exit status: 1
Files=6, Tests=99, 22 wallclock secs ( 0.07 usr 0.02 sys + 19.89 cusr 1.24 csys = 21.22 CPU)
Result: FAIL
zoffix@VirtualBox:~/CPANPRC/rakudo$ prove -e './perl6' -vlr t/02-rakudo/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment