Skip to content

Commit 29bc96f

Browse files
committed
add test for version of raku
Avoid issues where an older version might fail an example/signature test.
1 parent f283610 commit 29bc96f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

xt/01-raku-version.t

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env raku
2+
3+
use lib $*PROGRAM.parent(2).child('lib');
4+
use Test;
5+
6+
=begin overview
7+
8+
Verify that the version of rakudo used to run the tests is recent enough.
9+
10+
To avoid issues with a mismatch on source or compilation testing.
11+
12+
=end overview
13+
14+
my $min = v2021.10;
15+
16+
my $actual = $*RAKU.compiler.version;
17+
18+
ok $actual >= $min, "using at least version $min for testing";
19+

0 commit comments

Comments
 (0)