trackler 2.0.5.16 → 2.0.5.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/trackler/version.rb +1 -1
  3. data/tracks/lisp/exercises/allergies/allergies-test.lisp +1 -2
  4. data/tracks/lisp/exercises/anagram/anagram-test.lisp +1 -2
  5. data/tracks/lisp/exercises/atbash-cipher/atbash-cipher-test.lisp +1 -2
  6. data/tracks/lisp/exercises/beer-song/beer-song-test.lisp +1 -2
  7. data/tracks/lisp/exercises/binary/binary-test.lisp +1 -2
  8. data/tracks/lisp/exercises/bob/bob-test.lisp +1 -2
  9. data/tracks/lisp/exercises/crypto-square/crypto-square-test.lisp +1 -2
  10. data/tracks/lisp/exercises/difference-of-squares/difference-of-squares-test.lisp +1 -2
  11. data/tracks/lisp/exercises/etl/etl-test.lisp +1 -2
  12. data/tracks/lisp/exercises/gigasecond/gigasecond-test.lisp +1 -2
  13. data/tracks/lisp/exercises/grade-school/grade-school-test.lisp +1 -2
  14. data/tracks/lisp/exercises/grains/grains-test.lisp +1 -2
  15. data/tracks/lisp/exercises/hamming/hamming-test.lisp +0 -1
  16. data/tracks/lisp/exercises/leap/leap-test.lisp +1 -2
  17. data/tracks/lisp/exercises/meetup/meetup-test.lisp +1 -2
  18. data/tracks/lisp/exercises/nucleotide-count/nucleotide-count-test.lisp +1 -2
  19. data/tracks/lisp/exercises/phone-number/phone-number-test.lisp +1 -2
  20. data/tracks/lisp/exercises/prime-factors/prime-factors-test.lisp +1 -2
  21. data/tracks/lisp/exercises/raindrops/raindrops-test.lisp +1 -2
  22. data/tracks/lisp/exercises/rna-transcription/rna-transcription-test.lisp +1 -2
  23. data/tracks/lisp/exercises/robot-name/robot-name-test.lisp +1 -2
  24. data/tracks/lisp/exercises/roman-numerals/roman-numerals-test.lisp +1 -2
  25. data/tracks/lisp/exercises/scrabble-score/scrabble-score-test.lisp +1 -2
  26. data/tracks/lisp/exercises/sieve/sieve-test.lisp +1 -2
  27. data/tracks/lisp/exercises/space-age/space-age-test.lisp +1 -2
  28. data/tracks/lisp/exercises/strain/strain-test.lisp +1 -2
  29. data/tracks/lisp/exercises/triangle/triangle-test.lisp +1 -2
  30. data/tracks/lisp/exercises/trinary/trinary-test.lisp +1 -2
  31. data/tracks/lisp/exercises/word-count/word-count-test.lisp +1 -2
  32. data/tracks/perl6/exercises/accumulate/Example.pm +1 -1
  33. data/tracks/perl6/exercises/accumulate/accumulate.t +4 -4
  34. data/tracks/perl6/exercises/anagram/Example.pm +1 -1
  35. data/tracks/perl6/exercises/anagram/anagram.t +4 -4
  36. data/tracks/perl6/exercises/binary/Example.pm +1 -1
  37. data/tracks/perl6/exercises/binary/binary.t +4 -4
  38. data/tracks/perl6/exercises/bob/Example.pm +1 -1
  39. data/tracks/perl6/exercises/bob/bob.t +4 -4
  40. data/tracks/perl6/exercises/grains/Example.pm +1 -1
  41. data/tracks/perl6/exercises/grains/grains.t +4 -4
  42. data/tracks/perl6/exercises/leap/Example.pm +1 -1
  43. data/tracks/perl6/exercises/leap/leap.t +4 -4
  44. data/tracks/perl6/exercises/phone-number/Example.pm +1 -1
  45. data/tracks/perl6/exercises/phone-number/phone.t +6 -14
  46. data/tracks/perl6/exercises/raindrops/Example.pm +1 -1
  47. data/tracks/perl6/exercises/raindrops/raindrops.t +4 -4
  48. data/tracks/perl6/exercises/rna-transcription/Example.pm +1 -1
  49. data/tracks/perl6/exercises/rna-transcription/rna_transcription.t +4 -4
  50. data/tracks/perl6/exercises/robot-name/Example.pm +1 -1
  51. data/tracks/perl6/exercises/robot-name/robot.t +4 -4
  52. data/tracks/perl6/exercises/scrabble-score/Example.pm +1 -1
  53. data/tracks/perl6/exercises/scrabble-score/scrabble_score.t +4 -4
  54. data/tracks/perl6/exercises/word-count/Example.pm +1 -1
  55. data/tracks/perl6/exercises/word-count/word_count.t +4 -4
  56. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63066d33f5a8f92d2b464cba3061bf2a864e930d
4
- data.tar.gz: c3f03af9d510ba4462373030ae433921b9dd6d9c
3
+ metadata.gz: 849e8ea841fb367877c5cb1e81da718b5ec56a51
4
+ data.tar.gz: c78ef2f6983bf16650a42642507cbd83dc2b77c9
5
5
  SHA512:
6
- metadata.gz: aeb55869b9e9f36c52e0b67517d3e4d589e73eff04e645323097d60c5b7653421fdb97b75725a6e5f3e1578f51eb3224c224f17e983f269d4346997f9b4f3e96
7
- data.tar.gz: 6503831fa54c448af36785693cc9722fc461b33857dc35148d58dbdff24420b7e47ea33617e81293e268cfaa9922a1cc3d6f5dea193297a22ac9acdcf4964091
6
+ metadata.gz: 9b004ae9d1106f5404bb0987f52b6bc9c200e4e9802cfb7d55900f38e519b2ab288dfa598e5e0585bf83634423a1800b72e42bda3e3db27f220468397da9d380
7
+ data.tar.gz: a75697e21fdf6167bac7af0e2698086c402a1591bd934ef40d0d4354799c0e1329cb7ff46413b3dff21edc256fdb3b64339b484ccb335b8c42ba887db70a40c2
@@ -1,3 +1,3 @@
1
1
  module Trackler
2
- VERSION = "2.0.5.16"
2
+ VERSION = "2.0.5.17"
3
3
  end
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "allergies")
2
3
 
3
4
  (defpackage #:allergies-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "allergies")
7
-
8
7
  (in-package #:allergies-test)
9
8
 
10
9
  (define-test no-allergies-at-all
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "anagram")
2
3
 
3
4
  (defpackage #:anagram-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "anagram")
7
-
8
7
  (in-package #:anagram-test)
9
8
 
10
9
  (define-test no-matches
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "atbash-cipher")
2
3
 
3
4
  (defpackage #:atbash-cipher-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "atbash-cipher")
7
-
8
7
  (in-package #:atbash-cipher-test)
9
8
 
10
9
  (define-test encode-no
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "beer")
2
3
 
3
4
  (defpackage #:beer-song-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "beer")
7
-
8
7
  (in-package #:beer-song-test)
9
8
 
10
9
  (defparameter +verse-8+
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "binary")
2
3
 
3
4
  (defpackage #:binary-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "binary")
7
-
8
7
  (in-package #:binary-test)
9
8
 
10
9
  (define-test binary-1-is-decimal-1
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "bob")
2
3
 
3
4
  (defpackage #:bob-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "bob")
7
-
8
7
  (in-package #:bob-test)
9
8
 
10
9
  (define-test responds-to-something
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "crypto-square")
2
3
 
3
4
  (defpackage #:crypto-square-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "crypto-square")
7
-
8
7
  (in-package #:crypto-square-test)
9
8
 
10
9
  (define-test super-simple
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "squares")
2
3
 
3
4
  (defpackage #:squares-test
4
5
  (:use #:cl #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "squares")
7
-
8
7
  (in-package #:squares-test)
9
8
 
10
9
  (define-test square-of-sums-to-5
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "etl")
2
3
 
3
4
  (defpackage #:etl-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "etl")
7
-
8
7
  (in-package #:etl-test)
9
8
 
10
9
  (defun make-hash (kvs)
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "gigasecond")
2
3
 
3
4
  (defpackage #:gigasecond-test
4
5
  (:use #:cl #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "gigasecond")
7
-
8
7
  (in-package #:gigasecond-test)
9
8
 
10
9
  (define-test from-lisp-epoch
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "school")
2
3
 
3
4
  (defpackage #:grade-school-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "school")
7
-
8
7
  (in-package #:grade-school-test)
9
8
 
10
9
  (define-test grade-roster-is-initially-empty
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "grains")
2
3
 
3
4
  (defpackage #:grains-test
4
5
  (:use #:cl #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "grains")
7
-
8
7
  (in-package #:grains-test)
9
8
 
10
9
  (define-test square-1
@@ -1,5 +1,4 @@
1
1
  (ql:quickload "lisp-unit")
2
-
3
2
  #-xlisp-test (load "hamming")
4
3
 
5
4
  (defpackage #:hamming-test
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "leap-year")
2
3
 
3
4
  (defpackage #:leap-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "leap-year")
7
-
8
7
  (in-package #:leap-test)
9
8
 
10
9
  (define-test vanilla-leap-year
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "meetup")
2
3
 
3
4
  (defpackage #:meetup-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "meetup")
7
-
8
7
  (in-package #:meetup-test)
9
8
 
10
9
  (define-test monteeth-of-may-2013
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "dna")
2
3
 
3
4
  (defpackage #:nucleotide-count-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "dna")
7
-
8
7
  (in-package #:nucleotide-count-test)
9
8
 
10
9
  (defun make-hash (kvs)
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "phone")
2
3
 
3
4
  (defpackage #:phone-number-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "phone")
7
-
8
7
  (in-package #:phone-number-test)
9
8
 
10
9
  (define-test cleans-number
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "prime-factors")
2
3
 
3
4
  (defpackage #:prime-factors-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "prime-factors")
7
-
8
7
  (in-package #:prime-factors-test)
9
8
 
10
9
  (define-test one
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "raindrops")
2
3
 
3
4
  (defpackage #:raindrops-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "raindrops")
7
-
8
7
  (in-package #:raindrops-test)
9
8
 
10
9
  (define-test test-1
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "dna")
2
3
 
3
4
  (defpackage :rna-transcription-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "dna")
7
-
8
7
  (in-package #:rna-transcription-test)
9
8
 
10
9
  (define-test transcribes-cytidine-to-guanosine
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "robot")
2
3
 
3
4
  (defpackage #:robot-name-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "robot")
7
-
8
7
  (in-package #:robot-name-test)
9
8
 
10
9
  (defun is-upper-alpha-p (c) (char<= #\A c #\Z))
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "roman")
2
3
 
3
4
  (defpackage #:roman-test
4
5
  (:use #:cl #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "roman")
7
-
8
7
  (in-package #:roman-test)
9
8
 
10
9
  (define-test test-1
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "scrabble-score")
2
3
 
3
4
  (defpackage #:scrabble-score-test
4
5
  (:use #:cl #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "scrabble-score")
7
-
8
7
  (in-package #:scrabble-score-test)
9
8
 
10
9
  (define-test no-word-has-zero-score
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "sieve")
2
3
 
3
4
  (defpackage #:sieve-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "sieve")
7
-
8
7
  (in-package #:sieve-test)
9
8
 
10
9
  (defparameter *primes-below-1000*
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "space-age")
2
3
 
3
4
  (defpackage #:space-age-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "space-age")
7
-
8
7
  (in-package #:space-age-test)
9
8
 
10
9
  (defun rounds-to (expected actual)
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "strain")
2
3
 
3
4
  (defpackage #:strain-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "strain")
7
-
8
7
  (in-package #:strain-test)
9
8
 
10
9
  (define-test empty-keep
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "triangle")
2
3
 
3
4
  (defpackage #:triangle-test
4
5
  (:use #:cl #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "triangle")
7
-
8
7
  (in-package #:triangle-test)
9
8
 
10
9
  (define-test equilateral-1
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "trinary")
2
3
 
3
4
  (defpackage #:trinary-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "trinary")
7
-
8
7
  (in-package #:trinary-test)
9
8
 
10
9
  (define-test trinary-1-is-decimal-1
@@ -1,10 +1,9 @@
1
1
  (ql:quickload "lisp-unit")
2
+ #-xlisp-test (load "word-count")
2
3
 
3
4
  (defpackage #:word-count-test
4
5
  (:use #:common-lisp #:lisp-unit))
5
6
 
6
- #-xlisp-test (load "word-count")
7
-
8
7
  (in-package #:word-count-test)
9
8
 
10
9
  (defun assert-assoc-equal (expected actual)
@@ -1,4 +1,4 @@
1
- class Accumulate {
1
+ class Accumulate is export {
2
2
  method accumulate (@list, $function){
3
3
  my @accumulated;
4
4
  for @list -> $element {
@@ -3,10 +3,10 @@ use v6;
3
3
  use Test;
4
4
  use lib IO::Path.new($?FILE).parent.path;
5
5
 
6
- BEGIN {
7
- plan 8;
8
- eval-lives-ok %*ENV<EXERCISM>.so ?? 'use Example' !! 'use Accumulate', 'Module loaded';
9
- }
6
+ plan 8;
7
+ my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Accumulate';
8
+ use-ok $module;
9
+ require ::($module) <Accumulate>;
10
10
 
11
11
  ok Accumulate.can('accumulate'), 'Accumulate class has accumulate() method';
12
12
 
@@ -1,4 +1,4 @@
1
- class Anagram {
1
+ class Anagram is export {
2
2
  method match ($word, @words) {
3
3
  my @results;
4
4
  my $canonical = self!canonize($word);
@@ -3,10 +3,10 @@ use v6;
3
3
  use Test;
4
4
  use lib IO::Path.new($?FILE).parent.path;
5
5
 
6
- BEGIN {
7
- plan 11;
8
- eval-lives-ok %*ENV<EXERCISM>.so ?? 'use Example' !! 'use Anagram', 'Module loaded';
9
- }
6
+ plan 11;
7
+ my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Anagram';
8
+ use-ok $module;
9
+ require ::($module) <Anagram>;
10
10
 
11
11
  ok Anagram.can('match'), 'Class Anagram has match method';
12
12
 
@@ -1,4 +1,4 @@
1
- class Binary {
1
+ class Binary is export {
2
2
  method to_decimal ($binary) {
3
3
  return 0 if $binary ~~ /<-[^01]>/;
4
4
 
@@ -3,10 +3,10 @@ use v6;
3
3
  use Test;
4
4
  use lib IO::Path.new($?FILE).parent.path;
5
5
 
6
- BEGIN {
7
- plan 10;
8
- eval-lives-ok %*ENV<EXERCISM>.so ?? 'use Example' !! 'use Binary', 'Module loaded';
9
- }
6
+ plan 10;
7
+ my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Binary';
8
+ use-ok $module;
9
+ require ::($module) <Binary>;
10
10
 
11
11
  ok Binary.can('to_decimal'), 'Class Binary has to_decimal method';
12
12
 
@@ -1,4 +1,4 @@
1
- class Bob {
1
+ class Bob is export {
2
2
  method hey ($input) {
3
3
  given $input {
4
4
  when /^\s*$/ { 'Fine. Be that way!' }
@@ -3,10 +3,10 @@ use v6;
3
3
  use Test;
4
4
  use lib IO::Path.new($?FILE).parent.path;
5
5
 
6
- BEGIN {
7
- plan 21;
8
- eval-lives-ok %*ENV<EXERCISM>.so ?? 'use Example' !! 'use Bob', 'Module loaded';
9
- }
6
+ plan 21;
7
+ my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Bob';
8
+ use-ok $module;
9
+ require ::($module) <Bob>;
10
10
 
11
11
  ok Bob.can('hey'), 'Class Bob has hey() method';
12
12
 
@@ -1,4 +1,4 @@
1
- class Grains {
1
+ class Grains is export {
2
2
  method square($number) {
3
3
  2**($number-1);
4
4
  }
@@ -3,10 +3,10 @@ use v6;
3
3
  use Test;
4
4
  use lib IO::Path.new($?FILE).parent.path;
5
5
 
6
- BEGIN {
7
- plan 11;
8
- eval-lives-ok %*ENV<EXERCISM>.so ?? 'use Example' !! 'use Grains', 'Module loaded';
9
- }
6
+ plan 11;
7
+ my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Grains';
8
+ use-ok $module;
9
+ require ::($module) <Grains>;
10
10
 
11
11
  ok Grains.can('square'), 'Grains class has square method';
12
12
  ok Grains.can('total'), 'Grains class has total method';
@@ -1,4 +1,4 @@
1
- class Leap {
1
+ class Leap is export {
2
2
  method is_leap ($year) {
3
3
  self.is_divisible($year, 400)
4
4
  || self.is_divisible($year, 4)
@@ -3,10 +3,10 @@ use v6;
3
3
  use Test;
4
4
  use lib IO::Path.new($?FILE).parent.path;
5
5
 
6
- BEGIN {
7
- plan 8;
8
- eval-lives-ok %*ENV<EXERCISM>.so ?? 'use Example' !! 'use Leap', 'Module loaded';
9
- }
6
+ plan 8;
7
+ my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Leap';
8
+ use-ok $module;
9
+ require ::($module) <Leap>;
10
10
 
11
11
  ok Leap.can('is_leap'), 'Leap class has is_leap() method';
12
12
 
@@ -5,7 +5,7 @@ class X::Phone::Invalid is Exception {
5
5
  method message {"'$!payload' is not valid."}
6
6
  }
7
7
 
8
- class Phone {
8
+ class Phone is export {
9
9
  has $.number;
10
10
 
11
11
  method new (:$number!) {
@@ -4,10 +4,10 @@ use Test;
4
4
  use JSON::Tiny;
5
5
  use lib my $path = IO::Path.new($?FILE).parent.path;
6
6
 
7
- BEGIN {
8
- plan 12;
9
- use-ok %*ENV<EXERCISM> ?? 'Example' !! 'Phone', 'Module loaded';
10
- }
7
+ plan 12;
8
+ my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Phone';
9
+ use-ok $module;
10
+ require ::($module) <Phone>;
11
11
 
12
12
  my %tests = from-json open("$path/cases.json").slurp-rest;
13
13
 
@@ -26,16 +26,8 @@ for @(%tests<valid>) {
26
26
  is $phone.pretty, .<pretty>, "pretty $msg";
27
27
  }
28
28
 
29
- my $exception;
30
- if %*ENV<EXERCISM> {
31
- $exception = X::Phone::Invalid;
32
- }
33
- else {
34
- todo 'Optional Exception Tests'; # Remove this line for invalid input tests
35
- $exception = Exception; # Change this if you wish to specify a specific exception
36
- }
37
-
29
+ todo 'Optional Exception Tests' unless %*ENV<EXERCISM>; # Remove this line for invalid input tests
38
30
  subtest 'Throw exceptions for invalid input', {
39
31
  plan 5;
40
- throws-like {Phone.new(number => .<input>)}, $exception, .<test> for @(%tests<invalid>);
32
+ throws-like {Phone.new(number => .<input>)}, Exception, .<test> for @(%tests<invalid>);
41
33
  }
@@ -1,4 +1,4 @@
1
- class Raindrops {
1
+ class Raindrops is export {
2
2
  method convert (Int:D $num --> Str:D) {
3
3
  my $str = '';
4
4
  $str ~= "Pling" if $num % 3 == 0;
@@ -3,10 +3,10 @@ use v6;
3
3
  use Test;
4
4
  use lib IO::Path.new($?FILE).parent.path;
5
5
 
6
- BEGIN {
7
- plan 23;
8
- eval-lives-ok %*ENV<EXERCISM>.so ?? 'use Example' !! 'use Raindrops', 'Module loaded';
9
- }
6
+ plan 23;
7
+ my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Raindrops';
8
+ use-ok $module;
9
+ require ::($module) <Raindrops>;
10
10
 
11
11
  ok Raindrops.can('convert'), 'Class Raindrops has convert method';
12
12
 
@@ -1,4 +1,4 @@
1
- class RNA_Transcription {
1
+ class RNA_Transcription is export {
2
2
  method to_rna ($dna) {
3
3
  $dna.trans( 'A' => 'U',
4
4
  'G' => 'C',
@@ -3,10 +3,10 @@ use v6;
3
3
  use Test;
4
4
  use lib IO::Path.new($?FILE).parent.path;
5
5
 
6
- BEGIN {
7
- plan 7;
8
- eval-lives-ok %*ENV<EXERCISM>.so ?? 'use Example' !! 'use RNA_Transcription', 'Module loaded';
9
- }
6
+ plan 7;
7
+ my $module = %*ENV<EXERCISM> ?? 'Example' !! 'RNA_Transcription';
8
+ use-ok $module;
9
+ require ::($module) <RNA_Transcription>;
10
10
 
11
11
  ok RNA_Transcription.can('to_rna'), 'Class RNA_Transcription has to_rna() method';
12
12
 
@@ -1,4 +1,4 @@
1
- class Robot {
1
+ class Robot is export {
2
2
  has $.name is rw = self.reset_name;
3
3
 
4
4
  method rand_letter {
@@ -3,10 +3,10 @@ use v6;
3
3
  use Test;
4
4
  use lib IO::Path.new($?FILE).parent.path;
5
5
 
6
- BEGIN {
7
- plan 7;
8
- eval-lives-ok %*ENV<EXERCISM>.so ?? 'use Example' !! 'use Robot', 'Module loaded';
9
- }
6
+ plan 7;
7
+ my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Robot';
8
+ use-ok $module;
9
+ require ::($module) <Robot>;
10
10
 
11
11
  ok Robot.can('name'), 'Robot class has name attribute';
12
12
  ok Robot.can('reset_name'), 'Robot class has reset_name method';
@@ -1,4 +1,4 @@
1
- class Scrabble {
1
+ class Scrabble is export {
2
2
  has %.values = (
3
3
  aeioulnrst => 1,
4
4
  dg => 2,
@@ -3,10 +3,10 @@ use v6;
3
3
  use Test;
4
4
  use lib IO::Path.new($?FILE).parent.path;
5
5
 
6
- BEGIN {
7
- plan 10;
8
- eval-lives-ok %*ENV<EXERCISM>.so ?? 'use Example' !! 'use Scrabble', 'Module loaded';
9
- }
6
+ plan 10;
7
+ my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Scrabble';
8
+ use-ok $module;
9
+ require ::($module) <Scrabble>;
10
10
 
11
11
  ok Scrabble.can('score'), 'Scrabble class has score() method';
12
12
 
@@ -1,4 +1,4 @@
1
- class Word_Counter {
1
+ class Word_Counter is export {
2
2
  method count_words ($text) {
3
3
  my %word_counts;
4
4
  for $text.comb(/\w+/) {
@@ -3,10 +3,10 @@ use v6;
3
3
  use Test;
4
4
  use lib IO::Path.new($?FILE).parent.path;
5
5
 
6
- BEGIN {
7
- plan 8;
8
- eval-lives-ok %*ENV<EXERCISM>.so ?? 'use Example' !! 'use Word_Counter', 'Module loaded';
9
- }
6
+ plan 8;
7
+ my $module = %*ENV<EXERCISM> ?? 'Example' !! 'Word_Counter';
8
+ use-ok $module;
9
+ require ::($module) <Word_Counter>;
10
10
 
11
11
  ok Word_Counter.can('count_words'), 'Class Word_Counter has count_words method';
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trackler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5.16
4
+ version: 2.0.5.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Owen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-31 00:00:00.000000000 Z
11
+ date: 2017-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip