tracks/perl6/exercises/binary/binary.t in trackler-2.0.5.16 vs tracks/perl6/exercises/binary/binary.t in trackler-2.0.5.17

- old
+ new

@@ -1,13 +1,13 @@ #!/usr/bin/env perl6 use v6; use Test; use lib IO::Path.new($?FILE).parent.path; -BEGIN { - plan 10; - eval-lives-ok %*ENV<EXERCISM>.so ?? 'use Example' !! 'use Binary', 'Module loaded'; -} +plan 10; +my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Binary'; +use-ok $module; +require ::($module) <Binary>; ok Binary.can('to_decimal'), 'Class Binary has to_decimal method'; my %results = ( 1 => 1,