Skip to content

Commit

Permalink
[jvm] Unfudge tests for RT #127756
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Jan 2, 2018
1 parent be311ff commit 27e542d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion S09-typed-arrays/native-int.t
Expand Up @@ -235,7 +235,6 @@ for flat @int,@uint -> $T {
@arr = ();
@arr[4] = 22;
#?rakudo.jvm todo 'RT #127756'
is @arr.join(":"), "0:0:0:0:22", "does emptying a $t array really empty";
my @holes := array[$T].new;
Expand Down
1 change: 0 additions & 1 deletion S09-typed-arrays/native-num.t
Expand Up @@ -241,7 +241,6 @@ for @num -> $T {
@arr = ();
@arr[4] = 22.1e0;
#?rakudo.jvm todo 'RT #127756'
ok @arr.join(":").starts-with("0:0:0:0:22.1"), # num32 accurracy issues
"does emptying a $t array really empty";
Expand Down
1 change: 0 additions & 1 deletion S09-typed-arrays/native-str.t
Expand Up @@ -230,7 +230,6 @@ is @arr.join(":"), "a:b:c:d:e", "does join a $t array";
@arr = ();
@arr[4] = "z";
#?rakudo.jvm todo 'RT #127756'
is @arr.join(":"), "::::z", "does emptying a $t array really empty";
my @holes := array[$T].new;
Expand Down
5 changes: 0 additions & 5 deletions S09-typed-arrays/native.t
Expand Up @@ -67,25 +67,21 @@ subtest 'no rogue leftovers when resizing natives' => {
plan 5;
{
my int @a = 1..10; @a = 1..5; @a[50] = 1337;
#?rakudo.jvm todo 'RT #127756'
is-deeply @a, array[int].new(|(1..5), |(0 xx 45), 1337),
'native int array, large resize, larger than original size';
}
{
my int @a = 1..100; @a = 1..5; @a[50] = 1337;
#?rakudo.jvm todo 'RT #127756'
is-deeply @a, array[int].new(|(1..5), |(0 xx 45), 1337),
'native int array, large resize, smaller than original size';
}
{
my num @a = 1e0..5e0; @a = 1e0; @a[3] = 1337e0;
#?rakudo.jvm todo 'RT #127756'
is-deeply @a, array[num].new(1e0, 0e0, 0e0, 1337e0),
'native num array, small resize, smaller than original size';
}
{
my num @a = 1e0..3e0; @a = 1e0; @a[5] = 1337e0;
#?rakudo.jvm todo 'RT #127756'
is-deeply @a, array[num].new(1e0, 0e0, 0e0, 0e0, 0e0, 1337e0),
'native num array, small resize, larger than original size';
}
Expand All @@ -94,7 +90,6 @@ subtest 'no rogue leftovers when resizing natives' => {
@arr.unshift: 2;
@arr = ();
@arr[4] = 3;
#?rakudo.jvm todo 'RT #127756'
is-deeply @arr, array[int].new(0, 0, 0, 0, 3),
'contents + unshift + clear clears old elements';
}
Expand Down
1 change: 0 additions & 1 deletion S32-container/buf.t
Expand Up @@ -190,7 +190,6 @@ subtest '.gist shows only first 100 els' => {
}

# RT #127756
#?rakudo.jvm todo 'RT #127756'
is-deeply Buf.allocate(10, (1,2,3)).reallocate(0).reallocate(5),
Buf.new(0, 0, 0, 0, 0), 'resized Bufs do not have leftover values';

Expand Down

0 comments on commit 27e542d

Please sign in to comment.