Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created October 3, 2019 19:18
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/3eda948debf033b2c48b840f31c0f612 to your computer and use it in GitHub Desktop.
Save Whateverable/3eda948debf033b2c48b840f31c0f612 to your computer and use it in GitHub Desktop.
committable6
290cd7924^,1e4d3ac468 run <<$*EXECUTABLE --profile sandbox/roast/S03-operators/repeat.t>>
¦«290cd7924^»:
1..62
ok 1 - string repeat operator works on single character
ok 2 - string repeat operator works on multiple character
ok 3 - number repeat operator works on number and creates string
ok 4 - repeating an empty string creates an empty string
ok 5 - repeating zero times produces an empty string
ok 6 - repeating negative times produces an empty string
ok 7 - repeating with a fractional number coerces to Int
Use of uninitialized value of type Int in numeric context
in block <unit> at sandbox/roast/S03-operators/repeat.t line 24
ok 8 - x with Int type object
1..2
ok 1 - ''a' x -NaN' died
ok 2 - right exception type (X::Numeric::CannotConvert)
ok 9 - repeating with -NaN dies
1..2
ok 1 - ''a' x NaN' died
ok 2 - right exception type (X::Numeric::CannotConvert)
ok 10 - repeating with NaN dies
1..2
ok 1 - ''a' x -Inf' died
ok 2 - right exception type (X::Numeric::CannotConvert)
ok 11 - repeating with -Inf dies
ok 12 - repeating with * is a WhateverCode
1..2
ok 1 - ''a' xx -NaN' died
ok 2 - right exception type (X::Numeric::CannotConvert)
ok 13 - list repeating with -NaN fails
1..2
ok 1 - ''a' xx NaN' died
ok 2 - right exception type (X::Numeric::CannotConvert)
ok 14 - list repeating with NaN fails
1..2
ok 1 - ''a' xx -Inf' died
ok 2 - right exception type (X::Numeric::CannotConvert)
ok 15 - list repeating with -Inf fails
ok 16 - list repeat operator created correct array
ok 17 - list repeat operator created correct array
ok 18 - list repeat operator created array of the right size
ok 19 - can repeat Mu
ok 20 - can repeat lists
ok 21 - can repeat lists
ok 22 - can repeat lists
ok 23 - can repeat lists
ok 24 - repeating zero times produces an empty list
ok 25 - repeating negative times produces an empty list
ok 26 - can create 2d arrays
ok 27 - operator x= for string works
ok 28 - operator x= for string repeats correct
ok 29 - basic infix:<xx>
ok 30 - change to one item left the others unchanged
ok 31 - basic sanity with <x y> xx 3
ok 32 - change to one item left the others unchanged
ok 33 - repeat properly numifies rhs
ok 34 - xx understands Whatevers
ok 35 - xx thunks the LHS
ok 36 - xx works on a lazy list
ok 37 - xx Inf
ok 38 - xx * is lazy
ok 39 - xx 3 is not lazy
ok 40 - xx retains structure with list on LHS
ok 41 - xx retained list structure can be flattened with .flat
ok 42 - xx retains structure with Seq on LHS
ok 43 - xx retained Seq structure can be flattened with .flat
ok 44 - xx * retains structure with list on LHS
ok 45 - xx * retains structure with Seq on LHS
ok 46 - xx does not sink
1..2
ok 1 - code dies
ok 2 - right exception type (Exception)
ok 47 - xx with no args throws
ok 48 - xx with single arg is identity
ok 49 - (& xx *) works as & xx Inf
ok 50 - (& xx Inf) works as & xx Inf
ok 51 - (& xx Num) works as & xx Int
1..2
ok 1 - code dies
ok 2 - right exception type (X::Str::Numeric)
ok 52 - x does not silence failures
Use of uninitialized value of type Int in numeric context
in block at sandbox/roast/S03-operators/repeat.t line 154
ok 53 - type objects get interpreted as 0 iterations
1..2
ok 1 - 'rand xx '123aaa'' died
ok 2 - right exception type (X::Str::Numeric)
ok 54 - Failures in RHS of xx explode (callable LHS)
1..2
ok 1 - '42 xx '123aaa'' died
ok 2 - right exception type (X::Str::Numeric)
ok 55 - Failures in RHS of xx explode (Int LHS)
1..2
ok 1 - code threw a warning
ok 2 - warning message passes test
ok 56 - using an unitialized value in repeat count throws
ok 57 - empty slip with xx * works
ok 58 - Repeat operator keeps text normalized (normalization + canonical combining class reordering)
ok 59 - Repeat operator keeps text normalized (normalization + canonical combining class reordering)
ok 60 - Nested xx in for-loop
ok 61 - xx does not keep containers around
1..6
1..3
ok 1 - bool-only gives true
ok 2 - count-only is right
ok 3 - sinking did not "hang"
ok 1 - 2⁹⁹⁹⁹⁹
1..3
ok 1 - bool-only gives true
ok 2 - count-only is right
ok 3 - sinking did not "hang"
ok 2 - 9999999999
1..3
ok 1 - bool-only gives true
ok 2 - count-only is right
ok 3 - sinking did not "hang"
ok 3 - 2 ** 62
1..3
ok 1 - bool-only gives true
ok 2 - count-only is right
ok 3 - sinking did not "hang"
ok 4 - ∞
1..3
ok 1 - bool-only gives true
ok 2 - count-only is right
ok 3 - sinking did not "hang"
ok 5 - Inf
1..3
ok 1 - bool-only gives true
ok 2 - count-only is right
ok 3 - sinking did not "hang"
ok 6 - *
ok 62 - sunk, plain value `xx` sink cheaply
Writing profiler output to profile-1570130299.888328.html
Some exceptions were thrown in END blocks:
X::AdHoc: Failed to open file profile-1570130299.888328.html: Read-only file system
in any open at gen/moar/stage2/NQPCORE.setting line 850
in any open at gen/moar/stage2/NQPCORE.setting line 1016
in any <main> at /tmp/whateverable/rakudo-moar/d4ceb97e06cd01babdd34356140b5a26b317fa88/share/perl6/runtime/perl6.moarvm line 1
¦«1e4d3ac»:
1..62
ok 1 - string repeat operator works on single character
ok 2 - string repeat operator works on multiple character
ok 3 - number repeat operator works on number and creates string
ok 4 - repeating an empty string creates an empty string
ok 5 - repeating zero times produces an empty string
ok 6 - repeating negative times produces an empty string
ok 7 - repeating with a fractional number coerces to Int
Use of uninitialized value of type Int in numeric context
in block <unit> at sandbox/roast/S03-operators/repeat.t line 24
ok 8 - x with Int type object
1..2
at gen/moar/Perl6-Optimizer.nqp:1956 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Optimizer.moarvm:)
from gen/moar/Perl6-Optimizer.nqp:1901 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Optimizer.moarvm:optimize_call)
from gen/moar/Perl6-Optimizer.nqp:1699 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Optimizer.moarvm:visit_op)
from gen/moar/Perl6-Optimizer.nqp:2853 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Optimizer.moarvm:visit_children)
from gen/moar/Perl6-Optimizer.nqp:2596 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Optimizer.moarvm:visit_want)
from gen/moar/Perl6-Optimizer.nqp:2859 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Optimizer.moarvm:visit_children)
from gen/moar/Perl6-Optimizer.nqp:2871 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Optimizer.moarvm:visit_children)
from gen/moar/Perl6-Optimizer.nqp:2867 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Optimizer.moarvm:visit_children)
from gen/moar/Perl6-Optimizer.nqp:2871 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Optimizer.moarvm:visit_children)
from gen/moar/Perl6-Optimizer.nqp:1118 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Optimizer.moarvm:visit_block)
from gen/moar/Perl6-Optimizer.nqp:1067 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Optimizer.moarvm:optimize)
from src/Perl6/Compiler.nqp:65 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Compiler.moarvm:optimize)
from gen/moar/stage2/NQPHLL.nqp:2104 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/nqp/lib/NQPHLL.moarvm:execute_stage)
from gen/moar/stage2/NQPHLL.nqp:2134 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/nqp/lib/NQPHLL.moarvm:run)
from gen/moar/stage2/NQPHLL.nqp:2143 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/nqp/lib/NQPHLL.moarvm:)
from gen/moar/stage2/NQPHLL.nqp:2160 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/nqp/lib/NQPHLL.moarvm:compile)
from SETTING::src/core/ForeignCode.pm6:72 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/runtime/CORE.setting.moarvm:EVAL)
from core#sources/2D4A7CA10695CD2B374573413D261A660E282E2A (Test):613 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/core/precomp/074DD09C7F4473501237CCD1FCEA80BF84B397D2/2D/2D4A7CA10695CD2B374573413D261A660E282E2A:)
from core#sources/2D4A7CA10695CD2B374573413D261A660E282E2A (Test):615 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/core/precomp/074DD09C7F4473501237CCD1FCEA80BF84B397D2/2D/2D4A7CA10695CD2B374573413D261A660E282E2A:)
from core#sources/2D4A7CA10695CD2B374573413D261A660E282E2A (Test):420 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/core/precomp/074DD09C7F4473501237CCD1FCEA80BF84B397D2/2D/2D4A7CA10695CD2B374573413D261A660E282E2A:)
from core#sources/2D4A7CA10695CD2B374573413D261A660E282E2A (Test):427 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/core/precomp/074DD09C7F4473501237CCD1FCEA80BF84B397D2/2D/2D4A7CA10695CD2B374573413D261A660E282E2A:subtest)
from core#sources/2D4A7CA10695CD2B374573413D261A660E282E2A (Test):409 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/core/precomp/074DD09C7F4473501237CCD1FCEA80BF84B397D2/2D/2D4A7CA10695CD2B374573413D261A660E282E2A:subtest)
from core#sources/2D4A7CA10695CD2B374573413D261A660E282E2A (Test):605 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/core/precomp/074DD09C7F4473501237CCD1FCEA80BF84B397D2/2D/2D4A7CA10695CD2B374573413D261A660E282E2A:throws-like)
from sandbox/roast/S03-operators/repeat.t:27 (<ephemeral file>:)
from sandbox/roast/S03-operators/repeat.t:45 (<ephemeral file>:<unit>)
from sandbox/roast/S03-operators/repeat.t:1 (<ephemeral file>:<unit-outer>)
from gen/moar/stage2/NQPHLL.nqp:1828 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/nqp/lib/NQPHLL.moarvm:)
from gen/moar/stage2/NQPHLL.nqp:161 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/nqp/lib/NQPHLL.moarvm:run_profiled)
from gen/moar/stage2/NQPHLL.nqp:1827 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/nqp/lib/NQPHLL.moarvm:eval)
from gen/moar/stage2/NQPHLL.nqp:2039 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/nqp/lib/NQPHLL.moarvm:evalfiles)
from gen/moar/stage2/NQPHLL.nqp:1969 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/nqp/lib/NQPHLL.moarvm:command_eval)
from src/Perl6/Compiler.nqp:52 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/lib/Perl6/Compiler.moarvm:command_eval)
from gen/moar/stage2/NQPHLL.nqp:1924 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/nqp/lib/NQPHLL.moarvm:command_line)
from gen/moar/main.nqp:82 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/runtime/perl6.moarvm:MAIN)
from gen/moar/main.nqp:47 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/runtime/perl6.moarvm:<mainline>)
from <unknown>:1 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/runtime/perl6.moarvm:<main>)
from <unknown>:1 (/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/share/perl6/runtime/perl6.moarvm:<entry>)
MoarVM panic: Profiler lost sequence
The spawned command '/tmp/whateverable/rakudo-moar/1e4d3ac468f455282e3d4029d864614293511e1c/bin/perl6' exited unsuccessfully (exit code: 1)
in block <unit> at /tmp/_LkiQL3i3D line 1
«exit code = 1»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment