Skip to content

Commit 050ba28

Browse files
committed
Try to fix strange failure on Windows only
1 parent 52c0178 commit 050ba28

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

lib/Data/StaticTable.rakumod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ class StaticTable {
269269
@result
270270
}
271271

272-
multi method take(@rownums where .all ~~ Position) {
272+
multi method take(@rownums where .all ~~ Data::StaticTable::Position) {
273273
self.new(@!header, self!gather-rowlist(@rownums))
274274
}
275-
multi method take(*@rownums where .all ~~ Position) {
275+
multi method take(*@rownums where .all ~~ Data::StaticTable::Position) {
276276
self.take(@rownums)
277277
}
278278

t/001-basic.rakutest

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ my $t5 = Data::StaticTable.new(
121121
diag $t5.display;
122122
my %t5-iType = $t5.generate-index("Type");
123123
my %t5-iColor = $t5.generate-index("Color");
124-
diag "Index based on Type: " ~ %t5-iType.perl;
125-
diag "Index based on Color: " ~ %t5-iColor.perl;
124+
diag "Index based on Type: " ~ %t5-iType.raku;
125+
diag "Index based on Color: " ~ %t5-iColor.raku;
126126
ok(%t5-iType{'Car'} ~~ (1, 2), "Type 'Car' is in rows 1 and 2");
127127
ok(%t5-iColor{'white'} ~~ (1, 3), "Color 'white' is in rows 1 and 3");
128128
#-- Generate a StaticTable where there are only Type = 'Cars'
@@ -175,8 +175,8 @@ ok($t10[1]<Dim1> ~~ $t10.cell("Dim1", 1), "Equivalent ways to read the same cell
175175

176176
diag "== Resulting StaticTable with only Dim2=5 ==";
177177
my %t10-iDim2 = $t10.generate-index("Dim2");
178-
diag %t10-iDim2{5}.perl;
179-
diag %t10-iDim2<5>.perl;
178+
diag %t10-iDim2{5}.raku;
179+
diag %t10-iDim2<5>.raku;
180180
my $t10-Dim2is5 = $t10.take(%t10-iDim2<5>);
181181
diag $t10-Dim2is5.display;
182182
ok($t10-Dim2is5.rows == 2, "Resulting table has 2 rows too");

t/002-rowset-constructor.rakutest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ my $ = Data::StaticTable.new(
7272
rejected-data => %rejected-array-data
7373
):data-has-header;
7474
diag "== Rejected data by row ==";
75-
diag %rejected-array-data.perl;
75+
diag %rejected-array-data.raku;
7676
ok(%rejected-array-data<3> ~~ (5).list, "For row 3 (considering a header), the value 5 was discarded");
7777

7878
#-- For a hash, rejected data is recoverable in the way of an array
@@ -83,7 +83,7 @@ my $ = Data::StaticTable.new(
8383
rejected-data => @rejected-hash-data
8484
):set-of-hashes;
8585
diag "== Rejected: rows that are not hashes ==";
86-
diag @rejected-hash-data.perl;
86+
diag @rejected-hash-data.raku;
8787
ok(@rejected-hash-data.elems == 1, "One row was rejected");
8888
ok(@rejected-hash-data[0] ~~ (10, 20), "Discarded data as expected");
8989

t/003-query.rakutest

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,19 @@ ok(
5858

5959
diag "== Check different grep modes ==";
6060
my $rx = any(rx/ALPHA/, rx/0/);
61-
diag $q1.grep($rx, "Dim1"):n.perl;
61+
diag $q1.grep($rx, "Dim1"):n.raku;
6262
ok (($q1.grep($rx, "Dim1"):n) ~~ (4,5,6), "Expected rows");
6363

64-
diag $q1.grep($rx, "Dim1"):r.perl;
64+
diag $q1.grep($rx, "Dim1"):r.raku;
6565
ok($q1.grep($rx, "Dim1"):r.elems == 3, "Expected 3 rows");
6666

67-
diag $q1.grep($rx, "Dim1"):h.perl;
67+
diag $q1.grep($rx, "Dim1"):h.raku;
6868
ok($q1.grep($rx, "Dim1"):h.elems == 3, "Expected 3 rows");
6969

70-
diag $q1.grep($rx, "Dim1"):nr.perl;
70+
diag $q1.grep($rx, "Dim1"):nr.raku;
7171
ok (($q1.grep($rx, "Dim1"):nr.keys) ~~ (4,5,6), "Expected rows indexes");
7272

73-
diag $q1.grep($rx, "Dim1"):nh.perl;
73+
diag $q1.grep($rx, "Dim1"):nh.raku;
7474
ok (($q1.grep($rx, "Dim1"):nh.keys) ~~ (4,5,6), "Expected rows indexes");
7575

7676
diag "== Create a new table from grep results of row numbers ==";

t/004-extra.rakutest

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ my $t1 = Data::StaticTable.new(
1111
);
1212
diag $t1.display;
1313
diag "== Serialization and EVAL test ==";
14-
my $t1-copy = EVAL $t1.perl;
15-
diag $t1-copy.perl;
14+
my $t1-copy = EVAL $t1.raku;
15+
diag $t1-copy.raku;
1616
diag "== Comparison test ==";
1717
my $t1-clone = $t1.clone();
1818
my $t2 = Data::StaticTable.new(
1919
<A B C>,
2020
(1,2,3,4,5,6,7,0,9) # The 0 before the 9 is the only difference
2121
);
22-
ok($t1 eqv $t1-copy, "Comparison works (equal to EVALuated copy from 'perl' method)");
22+
ok($t1 eqv $t1-copy, "Comparison works (equal to EVALuated copy from 'raku' method)");
2323
ok($t1 eqv $t1-clone, "Comparison works (equal to clone)");
2424
ok(($t1 eqv $t2) == False, "Comparison works (distinct)");
2525

0 commit comments

Comments
 (0)