tracks/perl6/exercises/binary/binary.t in trackler-2.2.1.95 vs tracks/perl6/exercises/binary/binary.t in trackler-2.2.1.96
- old
+ new
@@ -1,13 +1,11 @@
#!/usr/bin/env perl6
use v6;
use Test;
-use lib IO::Path.new($?FILE).parent.path;
+use lib $?FILE.IO.dirname;
+use Binary;
-plan 10;
-my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Binary';
-use-ok $module;
-require ::($module) <Binary>;
+plan 9;
ok Binary.can('to_decimal'), 'Class Binary has to_decimal method';
my %results = (
1 => 1,