tracks/perl6/exercises/trinary/trinary.t in trackler-2.0.6.33 vs tracks/perl6/exercises/trinary/trinary.t in trackler-2.0.6.34
- old
+ new
@@ -2,16 +2,11 @@
use Test;
use lib ( my $dir = IO::Path.new($?FILE).parent ).path;
-my $module_name = %*ENV<EXERCISM>.so ?? 'Example' !! 'Trinary';
-my @potential_module = <p6 pm6 pm>.map: $module_name ~ '.' ~ *;
-
-my $module = first { $dir.child($_).e }, |@potential_module
- or die "No file '$module_name.p6' found\n";
-
-require $module <&to-decimal>;
+my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Trinary';
+require ::($module) <&to-decimal>;
my @cases = (
{
input => 1,
expected => 1,