From 47e7df4c201541649fb6cca6683fbed084de027e Mon Sep 17 00:00:00 2001 From: "Anthony J. Borla" Date: Wed, 24 Jul 2024 08:12:33 +1000 Subject: [PATCH] refactor(*): restructure test layout, and modify test infrastructure (#127) * refactor(*): restructure test layout, and modify test infrastructure Declutter and enhance exercise directories to improve user testing experience: - Create "testlib" directory and move all test library files there - Create the additional functions file inside testlib directory - Update test scripts, both shell (bash) and Windows Batch - Revise .meta/config.json to include toplevel file (both source and example) - Modify "bin/verify-exercises" to utilize "testlib" directory * fix(.meta/config.json): reverse change made to "example:" property --- bin/verify-exercises | 4 ++-- exercises/practice/accumulate/.meta/config.json | 2 +- exercises/practice/accumulate/test-accumulate | 4 +++- exercises/practice/accumulate/test-accumulate.bat | 4 +++- .../practice/accumulate/testlib/accumulate-funcs.rexx | 8 ++++++++ exercises/practice/accumulate/{ => testlib}/runt | 0 exercises/practice/accumulate/{ => testlib}/runt.bat | 0 exercises/practice/accumulate/{ => testlib}/t1.rexx | 0 exercises/practice/accumulate/{ => testlib}/t2.rexx | 0 exercises/practice/accumulate/{ => testlib}/t3.rexx | 0 exercises/practice/acronym/.meta/config.json | 2 +- exercises/practice/acronym/test-acronym | 4 +++- exercises/practice/acronym/test-acronym.bat | 4 +++- exercises/practice/acronym/testlib/acronym-funcs.rexx | 8 ++++++++ exercises/practice/acronym/{ => testlib}/runt | 0 exercises/practice/acronym/{ => testlib}/runt.bat | 0 exercises/practice/acronym/{ => testlib}/t1.rexx | 0 exercises/practice/acronym/{ => testlib}/t2.rexx | 0 exercises/practice/acronym/{ => testlib}/t3.rexx | 0 exercises/practice/all-your-base/.meta/config.json | 2 +- exercises/practice/all-your-base/test-all-your-base | 4 +++- exercises/practice/all-your-base/test-all-your-base.bat | 4 +++- .../all-your-base/testlib/all-your-base-funcs.rexx | 8 ++++++++ exercises/practice/all-your-base/{ => testlib}/runt | 0 exercises/practice/all-your-base/{ => testlib}/runt.bat | 0 exercises/practice/all-your-base/{ => testlib}/t1.rexx | 0 exercises/practice/all-your-base/{ => testlib}/t2.rexx | 0 exercises/practice/all-your-base/{ => testlib}/t3.rexx | 0 exercises/practice/anagram/.meta/config.json | 2 +- exercises/practice/anagram/test-anagram | 4 +++- exercises/practice/anagram/test-anagram.bat | 4 +++- exercises/practice/anagram/testlib/anagram-funcs.rexx | 8 ++++++++ exercises/practice/anagram/{ => testlib}/runt | 0 exercises/practice/anagram/{ => testlib}/runt.bat | 0 exercises/practice/anagram/{ => testlib}/t1.rexx | 0 exercises/practice/anagram/{ => testlib}/t2.rexx | 0 exercises/practice/anagram/{ => testlib}/t3.rexx | 0 exercises/practice/armstrong-numbers/.meta/config.json | 2 +- .../practice/armstrong-numbers/test-armstrong-numbers | 4 +++- .../practice/armstrong-numbers/test-armstrong-numbers.bat | 4 +++- .../testlib/armstrong-numbers-funcs.rexx | 8 ++++++++ exercises/practice/armstrong-numbers/{ => testlib}/runt | 0 .../practice/armstrong-numbers/{ => testlib}/runt.bat | 0 .../practice/armstrong-numbers/{ => testlib}/t1.rexx | 0 .../practice/armstrong-numbers/{ => testlib}/t2.rexx | 0 .../practice/armstrong-numbers/{ => testlib}/t3.rexx | 0 exercises/practice/atbash-cipher/.meta/config.json | 2 +- exercises/practice/atbash-cipher/test-atbash-cipher | 4 +++- exercises/practice/atbash-cipher/test-atbash-cipher.bat | 4 +++- .../atbash-cipher/testlib/atbash-cipher-funcs.rexx | 8 ++++++++ exercises/practice/atbash-cipher/{ => testlib}/runt | 0 exercises/practice/atbash-cipher/{ => testlib}/runt.bat | 0 exercises/practice/atbash-cipher/{ => testlib}/t1.rexx | 0 exercises/practice/atbash-cipher/{ => testlib}/t2.rexx | 0 exercises/practice/atbash-cipher/{ => testlib}/t3.rexx | 0 exercises/practice/bank-account/.meta/config.json | 2 +- exercises/practice/bank-account/test-bank-account | 4 +++- exercises/practice/bank-account/test-bank-account.bat | 4 +++- .../practice/bank-account/testlib/bank-account-funcs.rexx | 8 ++++++++ exercises/practice/bank-account/{ => testlib}/runt | 0 exercises/practice/bank-account/{ => testlib}/runt.bat | 0 exercises/practice/bank-account/{ => testlib}/t1.rexx | 0 exercises/practice/bank-account/{ => testlib}/t2.rexx | 0 exercises/practice/bank-account/{ => testlib}/t3.rexx | 0 exercises/practice/beer-song/.meta/config.json | 2 +- exercises/practice/beer-song/test-beer-song | 4 +++- exercises/practice/beer-song/test-beer-song.bat | 4 +++- exercises/practice/beer-song/testlib/beer-song-funcs.rexx | 8 ++++++++ exercises/practice/beer-song/{ => testlib}/runt | 0 exercises/practice/beer-song/{ => testlib}/runt.bat | 0 exercises/practice/beer-song/{ => testlib}/t1.rexx | 0 exercises/practice/beer-song/{ => testlib}/t2.rexx | 0 exercises/practice/beer-song/{ => testlib}/t3.rexx | 0 exercises/practice/binary-search/.meta/config.json | 2 +- exercises/practice/binary-search/test-binary-search | 4 +++- exercises/practice/binary-search/test-binary-search.bat | 4 +++- .../binary-search/testlib/binary-search-funcs.rexx | 8 ++++++++ exercises/practice/binary-search/{ => testlib}/runt | 0 exercises/practice/binary-search/{ => testlib}/runt.bat | 0 exercises/practice/binary-search/{ => testlib}/t1.rexx | 0 exercises/practice/binary-search/{ => testlib}/t2.rexx | 0 exercises/practice/binary-search/{ => testlib}/t3.rexx | 0 exercises/practice/bob/.meta/config.json | 2 +- exercises/practice/bob/test-bob | 4 +++- exercises/practice/bob/test-bob.bat | 4 +++- exercises/practice/bob/testlib/bob-funcs.rexx | 8 ++++++++ exercises/practice/bob/{ => testlib}/runt | 0 exercises/practice/bob/{ => testlib}/runt.bat | 0 exercises/practice/bob/{ => testlib}/t1.rexx | 0 exercises/practice/bob/{ => testlib}/t2.rexx | 0 exercises/practice/bob/{ => testlib}/t3.rexx | 0 exercises/practice/clock/.meta/config.json | 2 +- exercises/practice/clock/test-clock | 4 +++- exercises/practice/clock/test-clock.bat | 4 +++- exercises/practice/clock/testlib/clock-funcs.rexx | 8 ++++++++ exercises/practice/clock/{ => testlib}/runt | 0 exercises/practice/clock/{ => testlib}/runt.bat | 0 exercises/practice/clock/{ => testlib}/t1.rexx | 0 exercises/practice/clock/{ => testlib}/t2.rexx | 0 exercises/practice/clock/{ => testlib}/t3.rexx | 0 exercises/practice/collatz-conjecture/.meta/config.json | 2 +- .../practice/collatz-conjecture/test-collatz-conjecture | 4 +++- .../collatz-conjecture/test-collatz-conjecture.bat | 4 +++- .../testlib/collatz-conjecture-funcs.rexx | 8 ++++++++ exercises/practice/collatz-conjecture/{ => testlib}/runt | 0 .../practice/collatz-conjecture/{ => testlib}/runt.bat | 0 .../practice/collatz-conjecture/{ => testlib}/t1.rexx | 0 .../practice/collatz-conjecture/{ => testlib}/t2.rexx | 0 .../practice/collatz-conjecture/{ => testlib}/t3.rexx | 0 exercises/practice/custom-set/.meta/config.json | 2 +- exercises/practice/custom-set/test-custom-set | 4 +++- exercises/practice/custom-set/test-custom-set.bat | 4 +++- .../practice/custom-set/testlib/custom-set-funcs.rexx | 8 ++++++++ exercises/practice/custom-set/{ => testlib}/runt | 0 exercises/practice/custom-set/{ => testlib}/runt.bat | 0 exercises/practice/custom-set/{ => testlib}/t1.rexx | 0 exercises/practice/custom-set/{ => testlib}/t2.rexx | 0 exercises/practice/custom-set/{ => testlib}/t3.rexx | 0 exercises/practice/darts/.meta/config.json | 2 +- exercises/practice/darts/test-darts | 4 +++- exercises/practice/darts/test-darts.bat | 4 +++- exercises/practice/darts/testlib/darts-funcs.rexx | 8 ++++++++ exercises/practice/darts/{ => testlib}/runt | 0 exercises/practice/darts/{ => testlib}/runt.bat | 0 exercises/practice/darts/{ => testlib}/t1.rexx | 0 exercises/practice/darts/{ => testlib}/t2.rexx | 0 exercises/practice/darts/{ => testlib}/t3.rexx | 0 .../practice/difference-of-squares/.meta/config.json | 2 +- .../difference-of-squares/test-difference-of-squares | 4 +++- .../difference-of-squares/test-difference-of-squares.bat | 4 +++- .../testlib/difference-of-squares-funcs.rexx | 8 ++++++++ .../practice/difference-of-squares/{ => testlib}/runt | 0 .../practice/difference-of-squares/{ => testlib}/runt.bat | 0 .../practice/difference-of-squares/{ => testlib}/t1.rexx | 0 .../practice/difference-of-squares/{ => testlib}/t2.rexx | 0 .../practice/difference-of-squares/{ => testlib}/t3.rexx | 0 exercises/practice/error-handling/.meta/config.json | 2 +- exercises/practice/error-handling/test-error-handling | 4 +++- exercises/practice/error-handling/test-error-handling.bat | 4 +++- .../error-handling/testlib/error-handling-funcs.rexx | 8 ++++++++ exercises/practice/error-handling/{ => testlib}/runt | 0 exercises/practice/error-handling/{ => testlib}/runt.bat | 0 exercises/practice/error-handling/{ => testlib}/t1.rexx | 0 exercises/practice/error-handling/{ => testlib}/t2.rexx | 0 exercises/practice/error-handling/{ => testlib}/t3.rexx | 0 exercises/practice/etl/.meta/config.json | 2 +- exercises/practice/etl/test-etl | 4 +++- exercises/practice/etl/test-etl.bat | 4 +++- exercises/practice/etl/testlib/etl-funcs.rexx | 8 ++++++++ exercises/practice/etl/{ => testlib}/runt | 0 exercises/practice/etl/{ => testlib}/runt.bat | 0 exercises/practice/etl/{ => testlib}/t1.rexx | 0 exercises/practice/etl/{ => testlib}/t2.rexx | 0 exercises/practice/etl/{ => testlib}/t3.rexx | 0 exercises/practice/gigasecond/.meta/config.json | 2 +- exercises/practice/gigasecond/test-gigasecond | 4 +++- exercises/practice/gigasecond/test-gigasecond.bat | 4 +++- .../practice/gigasecond/testlib/gigasecond-funcs.rexx | 8 ++++++++ exercises/practice/gigasecond/{ => testlib}/runt | 0 exercises/practice/gigasecond/{ => testlib}/runt.bat | 0 exercises/practice/gigasecond/{ => testlib}/t1.rexx | 0 exercises/practice/gigasecond/{ => testlib}/t2.rexx | 0 exercises/practice/gigasecond/{ => testlib}/t3.rexx | 0 exercises/practice/grade-school/.meta/config.json | 2 +- exercises/practice/grade-school/test-grade-school | 4 +++- exercises/practice/grade-school/test-grade-school.bat | 4 +++- .../practice/grade-school/testlib/grade-school-funcs.rexx | 8 ++++++++ exercises/practice/grade-school/{ => testlib}/runt | 0 exercises/practice/grade-school/{ => testlib}/runt.bat | 0 exercises/practice/grade-school/{ => testlib}/t1.rexx | 0 exercises/practice/grade-school/{ => testlib}/t2.rexx | 0 exercises/practice/grade-school/{ => testlib}/t3.rexx | 0 exercises/practice/grains/.meta/config.json | 2 +- exercises/practice/grains/test-grains | 4 +++- exercises/practice/grains/test-grains.bat | 4 +++- exercises/practice/grains/testlib/grains-funcs.rexx | 8 ++++++++ exercises/practice/grains/{ => testlib}/runt | 0 exercises/practice/grains/{ => testlib}/runt.bat | 0 exercises/practice/grains/{ => testlib}/t1.rexx | 0 exercises/practice/grains/{ => testlib}/t2.rexx | 0 exercises/practice/grains/{ => testlib}/t3.rexx | 0 exercises/practice/hamming/.meta/config.json | 2 +- exercises/practice/hamming/test-hamming | 4 +++- exercises/practice/hamming/test-hamming.bat | 4 +++- exercises/practice/hamming/testlib/hamming-funcs.rexx | 8 ++++++++ exercises/practice/hamming/{ => testlib}/runt | 0 exercises/practice/hamming/{ => testlib}/runt.bat | 0 exercises/practice/hamming/{ => testlib}/t1.rexx | 0 exercises/practice/hamming/{ => testlib}/t2.rexx | 0 exercises/practice/hamming/{ => testlib}/t3.rexx | 0 exercises/practice/hello-world/.meta/config.json | 2 +- exercises/practice/hello-world/test-hello-world | 4 +++- exercises/practice/hello-world/test-hello-world.bat | 4 +++- .../practice/hello-world/testlib/hello-world-funcs.rexx | 8 ++++++++ exercises/practice/hello-world/{ => testlib}/runt | 0 exercises/practice/hello-world/{ => testlib}/runt.bat | 0 exercises/practice/hello-world/{ => testlib}/t1.rexx | 0 exercises/practice/hello-world/{ => testlib}/t2.rexx | 0 exercises/practice/hello-world/{ => testlib}/t3.rexx | 0 exercises/practice/high-scores/.meta/config.json | 2 +- exercises/practice/high-scores/test-high-scores | 4 +++- exercises/practice/high-scores/test-high-scores.bat | 4 +++- .../practice/high-scores/testlib/high-scores-funcs.rexx | 8 ++++++++ exercises/practice/high-scores/{ => testlib}/runt | 0 exercises/practice/high-scores/{ => testlib}/runt.bat | 0 exercises/practice/high-scores/{ => testlib}/t1.rexx | 0 exercises/practice/high-scores/{ => testlib}/t2.rexx | 0 exercises/practice/high-scores/{ => testlib}/t3.rexx | 0 exercises/practice/house/.meta/config.json | 2 +- exercises/practice/house/test-house | 4 +++- exercises/practice/house/test-house.bat | 4 +++- exercises/practice/house/testlib/house-funcs.rexx | 8 ++++++++ exercises/practice/house/{ => testlib}/runt | 0 exercises/practice/house/{ => testlib}/runt.bat | 0 exercises/practice/house/{ => testlib}/t1.rexx | 0 exercises/practice/house/{ => testlib}/t2.rexx | 0 exercises/practice/house/{ => testlib}/t3.rexx | 0 exercises/practice/isbn-verifier/.meta/config.json | 2 +- exercises/practice/isbn-verifier/test-isbn-verifier | 4 +++- exercises/practice/isbn-verifier/test-isbn-verifier.bat | 4 +++- .../isbn-verifier/testlib/isbn-verifier-funcs.rexx | 8 ++++++++ exercises/practice/isbn-verifier/{ => testlib}/runt | 0 exercises/practice/isbn-verifier/{ => testlib}/runt.bat | 0 exercises/practice/isbn-verifier/{ => testlib}/t1.rexx | 0 exercises/practice/isbn-verifier/{ => testlib}/t2.rexx | 0 exercises/practice/isbn-verifier/{ => testlib}/t3.rexx | 0 exercises/practice/isogram/.meta/config.json | 2 +- exercises/practice/isogram/test-isogram | 4 +++- exercises/practice/isogram/test-isogram.bat | 4 +++- exercises/practice/isogram/testlib/isogram-funcs.rexx | 8 ++++++++ exercises/practice/isogram/{ => testlib}/runt | 0 exercises/practice/isogram/{ => testlib}/runt.bat | 0 exercises/practice/isogram/{ => testlib}/t1.rexx | 0 exercises/practice/isogram/{ => testlib}/t2.rexx | 0 exercises/practice/isogram/{ => testlib}/t3.rexx | 0 exercises/practice/leap/.meta/config.json | 2 +- exercises/practice/leap/test-leap | 4 +++- exercises/practice/leap/test-leap.bat | 4 +++- exercises/practice/leap/testlib/leap-funcs.rexx | 8 ++++++++ exercises/practice/leap/{ => testlib}/runt | 0 exercises/practice/leap/{ => testlib}/runt.bat | 0 exercises/practice/leap/{ => testlib}/t1.rexx | 0 exercises/practice/leap/{ => testlib}/t2.rexx | 0 exercises/practice/leap/{ => testlib}/t3.rexx | 0 exercises/practice/list-ops/.meta/config.json | 2 +- exercises/practice/list-ops/test-list-ops | 4 +++- exercises/practice/list-ops/test-list-ops.bat | 4 +++- exercises/practice/list-ops/testlib/list-ops-funcs.rexx | 8 ++++++++ exercises/practice/list-ops/{ => testlib}/runt | 0 exercises/practice/list-ops/{ => testlib}/runt.bat | 0 exercises/practice/list-ops/{ => testlib}/t1.rexx | 0 exercises/practice/list-ops/{ => testlib}/t2.rexx | 0 exercises/practice/list-ops/{ => testlib}/t3.rexx | 0 exercises/practice/luhn/.meta/config.json | 2 +- exercises/practice/luhn/test-luhn | 4 +++- exercises/practice/luhn/test-luhn.bat | 4 +++- exercises/practice/luhn/testlib/luhn-funcs.rexx | 8 ++++++++ exercises/practice/luhn/{ => testlib}/runt | 0 exercises/practice/luhn/{ => testlib}/runt.bat | 0 exercises/practice/luhn/{ => testlib}/t1.rexx | 0 exercises/practice/luhn/{ => testlib}/t2.rexx | 0 exercises/practice/luhn/{ => testlib}/t3.rexx | 0 exercises/practice/matching-brackets/.meta/config.json | 2 +- .../practice/matching-brackets/test-matching-brackets | 4 +++- .../practice/matching-brackets/test-matching-brackets.bat | 4 +++- .../testlib/matching-brackets-funcs.rexx | 8 ++++++++ exercises/practice/matching-brackets/{ => testlib}/runt | 0 .../practice/matching-brackets/{ => testlib}/runt.bat | 0 .../practice/matching-brackets/{ => testlib}/t1.rexx | 0 .../practice/matching-brackets/{ => testlib}/t2.rexx | 0 .../practice/matching-brackets/{ => testlib}/t3.rexx | 0 exercises/practice/matrix/.meta/config.json | 2 +- exercises/practice/matrix/test-matrix | 4 +++- exercises/practice/matrix/test-matrix.bat | 4 +++- exercises/practice/matrix/testlib/matrix-funcs.rexx | 8 ++++++++ exercises/practice/matrix/{ => testlib}/runt | 0 exercises/practice/matrix/{ => testlib}/runt.bat | 0 exercises/practice/matrix/{ => testlib}/t1.rexx | 0 exercises/practice/matrix/{ => testlib}/t2.rexx | 0 exercises/practice/matrix/{ => testlib}/t3.rexx | 0 exercises/practice/nth-prime/.meta/config.json | 2 +- exercises/practice/nth-prime/test-nth-prime | 4 +++- exercises/practice/nth-prime/test-nth-prime.bat | 4 +++- exercises/practice/nth-prime/testlib/nth-prime-funcs.rexx | 8 ++++++++ exercises/practice/nth-prime/{ => testlib}/runt | 0 exercises/practice/nth-prime/{ => testlib}/runt.bat | 0 exercises/practice/nth-prime/{ => testlib}/t1.rexx | 0 exercises/practice/nth-prime/{ => testlib}/t2.rexx | 0 exercises/practice/nth-prime/{ => testlib}/t3.rexx | 0 exercises/practice/nucleotide-count/.meta/config.json | 2 +- exercises/practice/nucleotide-count/test-nucleotide-count | 4 +++- .../practice/nucleotide-count/test-nucleotide-count.bat | 4 +++- .../nucleotide-count/testlib/nucleotide-count-funcs.rexx | 8 ++++++++ exercises/practice/nucleotide-count/{ => testlib}/runt | 0 .../practice/nucleotide-count/{ => testlib}/runt.bat | 0 exercises/practice/nucleotide-count/{ => testlib}/t1.rexx | 0 exercises/practice/nucleotide-count/{ => testlib}/t2.rexx | 0 exercises/practice/nucleotide-count/{ => testlib}/t3.rexx | 0 exercises/practice/ocr-numbers/.meta/config.json | 2 +- exercises/practice/ocr-numbers/test-ocr-numbers | 4 +++- exercises/practice/ocr-numbers/test-ocr-numbers.bat | 4 +++- .../practice/ocr-numbers/testlib/ocr-numbers-funcs.rexx | 8 ++++++++ exercises/practice/ocr-numbers/{ => testlib}/runt | 0 exercises/practice/ocr-numbers/{ => testlib}/runt.bat | 0 exercises/practice/ocr-numbers/{ => testlib}/t1.rexx | 0 exercises/practice/ocr-numbers/{ => testlib}/t2.rexx | 0 exercises/practice/ocr-numbers/{ => testlib}/t3.rexx | 0 exercises/practice/pangram/.meta/config.json | 2 +- exercises/practice/pangram/test-pangram | 4 +++- exercises/practice/pangram/test-pangram.bat | 4 +++- exercises/practice/pangram/testlib/pangram-funcs.rexx | 8 ++++++++ exercises/practice/pangram/{ => testlib}/runt | 0 exercises/practice/pangram/{ => testlib}/runt.bat | 0 exercises/practice/pangram/{ => testlib}/t1.rexx | 0 exercises/practice/pangram/{ => testlib}/t2.rexx | 0 exercises/practice/pangram/{ => testlib}/t3.rexx | 0 exercises/practice/perfect-numbers/.meta/config.json | 2 +- exercises/practice/perfect-numbers/test-perfect-numbers | 4 +++- .../practice/perfect-numbers/test-perfect-numbers.bat | 4 +++- .../perfect-numbers/testlib/perfect-numbers-funcs.rexx | 8 ++++++++ exercises/practice/perfect-numbers/{ => testlib}/runt | 0 exercises/practice/perfect-numbers/{ => testlib}/runt.bat | 0 exercises/practice/perfect-numbers/{ => testlib}/t1.rexx | 0 exercises/practice/perfect-numbers/{ => testlib}/t2.rexx | 0 exercises/practice/perfect-numbers/{ => testlib}/t3.rexx | 0 exercises/practice/phone-number/.meta/config.json | 2 +- exercises/practice/phone-number/test-phone-number | 4 +++- exercises/practice/phone-number/test-phone-number.bat | 4 +++- .../practice/phone-number/testlib/phone-number-funcs.rexx | 8 ++++++++ exercises/practice/phone-number/{ => testlib}/runt | 0 exercises/practice/phone-number/{ => testlib}/runt.bat | 0 exercises/practice/phone-number/{ => testlib}/t1.rexx | 0 exercises/practice/phone-number/{ => testlib}/t2.rexx | 0 exercises/practice/phone-number/{ => testlib}/t3.rexx | 0 exercises/practice/prime-factors/.meta/config.json | 2 +- exercises/practice/prime-factors/test-prime-factors | 4 +++- exercises/practice/prime-factors/test-prime-factors.bat | 4 +++- .../prime-factors/testlib/prime-factors-funcs.rexx | 8 ++++++++ exercises/practice/prime-factors/{ => testlib}/runt | 0 exercises/practice/prime-factors/{ => testlib}/runt.bat | 0 exercises/practice/prime-factors/{ => testlib}/t1.rexx | 0 exercises/practice/prime-factors/{ => testlib}/t2.rexx | 0 exercises/practice/prime-factors/{ => testlib}/t3.rexx | 0 exercises/practice/protein-translation/.meta/config.json | 2 +- .../practice/protein-translation/test-protein-translation | 4 +++- .../protein-translation/test-protein-translation.bat | 4 +++- .../testlib/protein-translation-funcs.rexx | 8 ++++++++ exercises/practice/protein-translation/{ => testlib}/runt | 0 .../practice/protein-translation/{ => testlib}/runt.bat | 0 .../practice/protein-translation/{ => testlib}/t1.rexx | 0 .../practice/protein-translation/{ => testlib}/t2.rexx | 0 .../practice/protein-translation/{ => testlib}/t3.rexx | 0 exercises/practice/proverb/.meta/config.json | 2 +- exercises/practice/proverb/test-proverb | 4 +++- exercises/practice/proverb/test-proverb.bat | 4 +++- exercises/practice/proverb/testlib/proverb-funcs.rexx | 8 ++++++++ exercises/practice/proverb/{ => testlib}/runt | 0 exercises/practice/proverb/{ => testlib}/runt.bat | 0 exercises/practice/proverb/{ => testlib}/t1.rexx | 0 exercises/practice/proverb/{ => testlib}/t2.rexx | 0 exercises/practice/proverb/{ => testlib}/t3.rexx | 0 exercises/practice/queen-attack/.meta/config.json | 2 +- exercises/practice/queen-attack/test-queen-attack | 4 +++- exercises/practice/queen-attack/test-queen-attack.bat | 4 +++- .../practice/queen-attack/testlib/queen-attack-funcs.rexx | 8 ++++++++ exercises/practice/queen-attack/{ => testlib}/runt | 0 exercises/practice/queen-attack/{ => testlib}/runt.bat | 0 exercises/practice/queen-attack/{ => testlib}/t1.rexx | 0 exercises/practice/queen-attack/{ => testlib}/t2.rexx | 0 exercises/practice/queen-attack/{ => testlib}/t3.rexx | 0 exercises/practice/raindrops/.meta/config.json | 2 +- exercises/practice/raindrops/test-raindrops | 4 +++- exercises/practice/raindrops/test-raindrops.bat | 4 +++- exercises/practice/raindrops/testlib/raindrops-funcs.rexx | 8 ++++++++ exercises/practice/raindrops/{ => testlib}/runt | 0 exercises/practice/raindrops/{ => testlib}/runt.bat | 0 exercises/practice/raindrops/{ => testlib}/t1.rexx | 0 exercises/practice/raindrops/{ => testlib}/t2.rexx | 0 exercises/practice/raindrops/{ => testlib}/t3.rexx | 0 exercises/practice/resistor-color-duo/.meta/config.json | 2 +- .../practice/resistor-color-duo/test-resistor-color-duo | 4 +++- .../resistor-color-duo/test-resistor-color-duo.bat | 4 +++- .../testlib/resistor-color-duo-funcs.rexx | 8 ++++++++ exercises/practice/resistor-color-duo/{ => testlib}/runt | 0 .../practice/resistor-color-duo/{ => testlib}/runt.bat | 0 .../practice/resistor-color-duo/{ => testlib}/t1.rexx | 0 .../practice/resistor-color-duo/{ => testlib}/t2.rexx | 0 .../practice/resistor-color-duo/{ => testlib}/t3.rexx | 0 exercises/practice/resistor-color-trio/.meta/config.json | 2 +- .../practice/resistor-color-trio/test-resistor-color-trio | 4 +++- .../resistor-color-trio/test-resistor-color-trio.bat | 4 +++- .../testlib/resistor-color-trio-funcs.rexx | 8 ++++++++ exercises/practice/resistor-color-trio/{ => testlib}/runt | 0 .../practice/resistor-color-trio/{ => testlib}/runt.bat | 0 .../practice/resistor-color-trio/{ => testlib}/t1.rexx | 0 .../practice/resistor-color-trio/{ => testlib}/t2.rexx | 0 .../practice/resistor-color-trio/{ => testlib}/t3.rexx | 0 exercises/practice/resistor-color/.meta/config.json | 2 +- exercises/practice/resistor-color/test-resistor-color | 4 +++- exercises/practice/resistor-color/test-resistor-color.bat | 4 +++- .../resistor-color/testlib/resistor-color-funcs.rexx | 8 ++++++++ exercises/practice/resistor-color/{ => testlib}/runt | 0 exercises/practice/resistor-color/{ => testlib}/runt.bat | 0 exercises/practice/resistor-color/{ => testlib}/t1.rexx | 0 exercises/practice/resistor-color/{ => testlib}/t2.rexx | 0 exercises/practice/resistor-color/{ => testlib}/t3.rexx | 0 exercises/practice/reverse-string/.meta/config.json | 2 +- exercises/practice/reverse-string/test-reverse-string | 4 +++- exercises/practice/reverse-string/test-reverse-string.bat | 4 +++- .../reverse-string/testlib/reverse-string-funcs.rexx | 8 ++++++++ exercises/practice/reverse-string/{ => testlib}/runt | 0 exercises/practice/reverse-string/{ => testlib}/runt.bat | 0 exercises/practice/reverse-string/{ => testlib}/t1.rexx | 0 exercises/practice/reverse-string/{ => testlib}/t2.rexx | 0 exercises/practice/reverse-string/{ => testlib}/t3.rexx | 0 exercises/practice/rna-transcription/.meta/config.json | 2 +- .../practice/rna-transcription/test-rna-transcription | 4 +++- .../practice/rna-transcription/test-rna-transcription.bat | 4 +++- .../testlib/rna-transcription-funcs.rexx | 8 ++++++++ exercises/practice/rna-transcription/{ => testlib}/runt | 0 .../practice/rna-transcription/{ => testlib}/runt.bat | 0 .../practice/rna-transcription/{ => testlib}/t1.rexx | 0 .../practice/rna-transcription/{ => testlib}/t2.rexx | 0 .../practice/rna-transcription/{ => testlib}/t3.rexx | 0 exercises/practice/roman-numerals/.meta/config.json | 2 +- exercises/practice/roman-numerals/test-roman-numerals | 4 +++- exercises/practice/roman-numerals/test-roman-numerals.bat | 4 +++- .../roman-numerals/testlib/roman-numerals-funcs.rexx | 8 ++++++++ exercises/practice/roman-numerals/{ => testlib}/runt | 0 exercises/practice/roman-numerals/{ => testlib}/runt.bat | 0 exercises/practice/roman-numerals/{ => testlib}/t1.rexx | 0 exercises/practice/roman-numerals/{ => testlib}/t2.rexx | 0 exercises/practice/roman-numerals/{ => testlib}/t3.rexx | 0 exercises/practice/rotational-cipher/.meta/config.json | 2 +- .../practice/rotational-cipher/test-rotational-cipher | 4 +++- .../practice/rotational-cipher/test-rotational-cipher.bat | 4 +++- .../testlib/rotational-cipher-funcs.rexx | 8 ++++++++ exercises/practice/rotational-cipher/{ => testlib}/runt | 0 .../practice/rotational-cipher/{ => testlib}/runt.bat | 0 .../practice/rotational-cipher/{ => testlib}/t1.rexx | 0 .../practice/rotational-cipher/{ => testlib}/t2.rexx | 0 .../practice/rotational-cipher/{ => testlib}/t3.rexx | 0 exercises/practice/saddle-points/.meta/config.json | 2 +- exercises/practice/saddle-points/test-saddle-points | 4 +++- exercises/practice/saddle-points/test-saddle-points.bat | 4 +++- exercises/practice/saddle-points/{ => testlib}/runt | 0 exercises/practice/saddle-points/{ => testlib}/runt.bat | 0 .../saddle-points/testlib/saddle-points-funcs.rexx | 8 ++++++++ exercises/practice/saddle-points/{ => testlib}/t1.rexx | 0 exercises/practice/saddle-points/{ => testlib}/t2.rexx | 0 exercises/practice/saddle-points/{ => testlib}/t3.rexx | 0 exercises/practice/scrabble-score/.meta/config.json | 2 +- exercises/practice/scrabble-score/test-scrabble-score | 4 +++- exercises/practice/scrabble-score/test-scrabble-score.bat | 4 +++- exercises/practice/scrabble-score/{ => testlib}/runt | 0 exercises/practice/scrabble-score/{ => testlib}/runt.bat | 0 .../scrabble-score/testlib/scrabble-score-funcs.rexx | 8 ++++++++ exercises/practice/scrabble-score/{ => testlib}/t1.rexx | 0 exercises/practice/scrabble-score/{ => testlib}/t2.rexx | 0 exercises/practice/scrabble-score/{ => testlib}/t3.rexx | 0 exercises/practice/secret-handshake/.meta/config.json | 2 +- exercises/practice/secret-handshake/test-secret-handshake | 4 +++- .../practice/secret-handshake/test-secret-handshake.bat | 4 +++- exercises/practice/secret-handshake/{ => testlib}/runt | 0 .../practice/secret-handshake/{ => testlib}/runt.bat | 0 .../secret-handshake/testlib/secret-handshake-funcs.rexx | 8 ++++++++ exercises/practice/secret-handshake/{ => testlib}/t1.rexx | 0 exercises/practice/secret-handshake/{ => testlib}/t2.rexx | 0 exercises/practice/secret-handshake/{ => testlib}/t3.rexx | 0 exercises/practice/series/.meta/config.json | 2 +- exercises/practice/series/test-series | 4 +++- exercises/practice/series/test-series.bat | 4 +++- exercises/practice/series/{ => testlib}/runt | 0 exercises/practice/series/{ => testlib}/runt.bat | 0 exercises/practice/series/testlib/series-funcs.rexx | 8 ++++++++ exercises/practice/series/{ => testlib}/t1.rexx | 0 exercises/practice/series/{ => testlib}/t2.rexx | 0 exercises/practice/series/{ => testlib}/t3.rexx | 0 exercises/practice/sieve/.meta/config.json | 2 +- exercises/practice/sieve/test-sieve | 4 +++- exercises/practice/sieve/test-sieve.bat | 4 +++- exercises/practice/sieve/{ => testlib}/runt | 0 exercises/practice/sieve/{ => testlib}/runt.bat | 0 exercises/practice/sieve/testlib/sieve-funcs.rexx | 8 ++++++++ exercises/practice/sieve/{ => testlib}/t1.rexx | 0 exercises/practice/sieve/{ => testlib}/t2.rexx | 0 exercises/practice/sieve/{ => testlib}/t3.rexx | 0 exercises/practice/simple-cipher/.meta/config.json | 2 +- exercises/practice/simple-cipher/test-simple-cipher | 4 +++- exercises/practice/simple-cipher/test-simple-cipher.bat | 4 +++- exercises/practice/simple-cipher/{ => testlib}/runt | 0 exercises/practice/simple-cipher/{ => testlib}/runt.bat | 0 .../simple-cipher/testlib/simple-cipher-funcs.rexx | 8 ++++++++ exercises/practice/simple-cipher/{ => testlib}/t1.rexx | 0 exercises/practice/simple-cipher/{ => testlib}/t2.rexx | 0 exercises/practice/simple-cipher/{ => testlib}/t3.rexx | 0 exercises/practice/space-age/.meta/config.json | 2 +- exercises/practice/space-age/test-space-age | 4 +++- exercises/practice/space-age/test-space-age.bat | 4 +++- exercises/practice/space-age/{ => testlib}/runt | 0 exercises/practice/space-age/{ => testlib}/runt.bat | 0 exercises/practice/space-age/testlib/space-age-funcs.rexx | 8 ++++++++ exercises/practice/space-age/{ => testlib}/t1.rexx | 0 exercises/practice/space-age/{ => testlib}/t2.rexx | 0 exercises/practice/space-age/{ => testlib}/t3.rexx | 0 exercises/practice/square-root/.meta/config.json | 2 +- exercises/practice/square-root/test-square-root | 4 +++- exercises/practice/square-root/test-square-root.bat | 4 +++- exercises/practice/square-root/{ => testlib}/runt | 0 exercises/practice/square-root/{ => testlib}/runt.bat | 0 .../practice/square-root/testlib/square-root-funcs.rexx | 8 ++++++++ exercises/practice/square-root/{ => testlib}/t1.rexx | 0 exercises/practice/square-root/{ => testlib}/t2.rexx | 0 exercises/practice/square-root/{ => testlib}/t3.rexx | 0 exercises/practice/strain/.meta/config.json | 2 +- exercises/practice/strain/test-strain | 4 +++- exercises/practice/strain/test-strain.bat | 4 +++- exercises/practice/strain/{ => testlib}/runt | 0 exercises/practice/strain/{ => testlib}/runt.bat | 0 exercises/practice/strain/testlib/strain-funcs.rexx | 8 ++++++++ exercises/practice/strain/{ => testlib}/t1.rexx | 0 exercises/practice/strain/{ => testlib}/t2.rexx | 0 exercises/practice/strain/{ => testlib}/t3.rexx | 0 exercises/practice/sublist/.meta/config.json | 2 +- exercises/practice/sublist/test-sublist | 4 +++- exercises/practice/sublist/test-sublist.bat | 4 +++- exercises/practice/sublist/{ => testlib}/runt | 0 exercises/practice/sublist/{ => testlib}/runt.bat | 0 exercises/practice/sublist/testlib/sublist-funcs.rexx | 8 ++++++++ exercises/practice/sublist/{ => testlib}/t1.rexx | 0 exercises/practice/sublist/{ => testlib}/t2.rexx | 0 exercises/practice/sublist/{ => testlib}/t3.rexx | 0 exercises/practice/sum-of-multiples/.meta/config.json | 2 +- exercises/practice/sum-of-multiples/test-sum-of-multiples | 4 +++- .../practice/sum-of-multiples/test-sum-of-multiples.bat | 4 +++- exercises/practice/sum-of-multiples/{ => testlib}/runt | 0 .../practice/sum-of-multiples/{ => testlib}/runt.bat | 0 .../sum-of-multiples/testlib/sum-of-multiples-funcs.rexx | 8 ++++++++ exercises/practice/sum-of-multiples/{ => testlib}/t1.rexx | 0 exercises/practice/sum-of-multiples/{ => testlib}/t2.rexx | 0 exercises/practice/sum-of-multiples/{ => testlib}/t3.rexx | 0 exercises/practice/transpose/.meta/config.json | 2 +- exercises/practice/transpose/test-transpose | 4 +++- exercises/practice/transpose/test-transpose.bat | 4 +++- exercises/practice/transpose/{ => testlib}/runt | 0 exercises/practice/transpose/{ => testlib}/runt.bat | 0 exercises/practice/transpose/{ => testlib}/t1.rexx | 0 exercises/practice/transpose/{ => testlib}/t2.rexx | 0 exercises/practice/transpose/{ => testlib}/t3.rexx | 0 exercises/practice/transpose/testlib/transpose-funcs.rexx | 8 ++++++++ exercises/practice/triangle/.meta/config.json | 2 +- exercises/practice/triangle/test-triangle | 4 +++- exercises/practice/triangle/test-triangle.bat | 4 +++- exercises/practice/triangle/{ => testlib}/runt | 0 exercises/practice/triangle/{ => testlib}/runt.bat | 0 exercises/practice/triangle/{ => testlib}/t1.rexx | 0 exercises/practice/triangle/{ => testlib}/t2.rexx | 0 exercises/practice/triangle/{ => testlib}/t3.rexx | 0 exercises/practice/triangle/testlib/triangle-funcs.rexx | 8 ++++++++ exercises/practice/twelve-days/.meta/config.json | 2 +- exercises/practice/twelve-days/test-twelve-days | 4 +++- exercises/practice/twelve-days/test-twelve-days.bat | 4 +++- exercises/practice/twelve-days/{ => testlib}/runt | 0 exercises/practice/twelve-days/{ => testlib}/runt.bat | 0 exercises/practice/twelve-days/{ => testlib}/t1.rexx | 0 exercises/practice/twelve-days/{ => testlib}/t2.rexx | 0 exercises/practice/twelve-days/{ => testlib}/t3.rexx | 0 .../practice/twelve-days/testlib/twelve-days-funcs.rexx | 8 ++++++++ exercises/practice/two-fer/.meta/config.json | 2 +- exercises/practice/two-fer/test-two-fer | 4 +++- exercises/practice/two-fer/test-two-fer.bat | 4 +++- exercises/practice/two-fer/{ => testlib}/runt | 0 exercises/practice/two-fer/{ => testlib}/runt.bat | 0 exercises/practice/two-fer/{ => testlib}/t1.rexx | 0 exercises/practice/two-fer/{ => testlib}/t2.rexx | 0 exercises/practice/two-fer/{ => testlib}/t3.rexx | 0 exercises/practice/two-fer/testlib/two-fer-funcs.rexx | 8 ++++++++ exercises/practice/word-count/.meta/config.json | 2 +- exercises/practice/word-count/test-word-count | 4 +++- exercises/practice/word-count/test-word-count.bat | 4 +++- exercises/practice/word-count/{ => testlib}/runt | 0 exercises/practice/word-count/{ => testlib}/runt.bat | 0 exercises/practice/word-count/{ => testlib}/t1.rexx | 0 exercises/practice/word-count/{ => testlib}/t2.rexx | 0 exercises/practice/word-count/{ => testlib}/t3.rexx | 0 .../practice/word-count/testlib/word-count-funcs.rexx | 8 ++++++++ 586 files changed, 977 insertions(+), 197 deletions(-) create mode 100644 exercises/practice/accumulate/testlib/accumulate-funcs.rexx rename exercises/practice/accumulate/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/accumulate/{ => testlib}/runt.bat (100%) rename exercises/practice/accumulate/{ => testlib}/t1.rexx (100%) rename exercises/practice/accumulate/{ => testlib}/t2.rexx (100%) rename exercises/practice/accumulate/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/acronym/testlib/acronym-funcs.rexx rename exercises/practice/acronym/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/acronym/{ => testlib}/runt.bat (100%) rename exercises/practice/acronym/{ => testlib}/t1.rexx (100%) rename exercises/practice/acronym/{ => testlib}/t2.rexx (100%) rename exercises/practice/acronym/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/all-your-base/testlib/all-your-base-funcs.rexx rename exercises/practice/all-your-base/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/all-your-base/{ => testlib}/runt.bat (100%) rename exercises/practice/all-your-base/{ => testlib}/t1.rexx (100%) rename exercises/practice/all-your-base/{ => testlib}/t2.rexx (100%) rename exercises/practice/all-your-base/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/anagram/testlib/anagram-funcs.rexx rename exercises/practice/anagram/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/anagram/{ => testlib}/runt.bat (100%) rename exercises/practice/anagram/{ => testlib}/t1.rexx (100%) rename exercises/practice/anagram/{ => testlib}/t2.rexx (100%) rename exercises/practice/anagram/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/armstrong-numbers/testlib/armstrong-numbers-funcs.rexx rename exercises/practice/armstrong-numbers/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/armstrong-numbers/{ => testlib}/runt.bat (100%) rename exercises/practice/armstrong-numbers/{ => testlib}/t1.rexx (100%) rename exercises/practice/armstrong-numbers/{ => testlib}/t2.rexx (100%) rename exercises/practice/armstrong-numbers/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/atbash-cipher/testlib/atbash-cipher-funcs.rexx rename exercises/practice/atbash-cipher/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/atbash-cipher/{ => testlib}/runt.bat (100%) rename exercises/practice/atbash-cipher/{ => testlib}/t1.rexx (100%) rename exercises/practice/atbash-cipher/{ => testlib}/t2.rexx (100%) rename exercises/practice/atbash-cipher/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/bank-account/testlib/bank-account-funcs.rexx rename exercises/practice/bank-account/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/bank-account/{ => testlib}/runt.bat (100%) rename exercises/practice/bank-account/{ => testlib}/t1.rexx (100%) rename exercises/practice/bank-account/{ => testlib}/t2.rexx (100%) rename exercises/practice/bank-account/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/beer-song/testlib/beer-song-funcs.rexx rename exercises/practice/beer-song/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/beer-song/{ => testlib}/runt.bat (100%) rename exercises/practice/beer-song/{ => testlib}/t1.rexx (100%) rename exercises/practice/beer-song/{ => testlib}/t2.rexx (100%) rename exercises/practice/beer-song/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/binary-search/testlib/binary-search-funcs.rexx rename exercises/practice/binary-search/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/binary-search/{ => testlib}/runt.bat (100%) rename exercises/practice/binary-search/{ => testlib}/t1.rexx (100%) rename exercises/practice/binary-search/{ => testlib}/t2.rexx (100%) rename exercises/practice/binary-search/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/bob/testlib/bob-funcs.rexx rename exercises/practice/bob/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/bob/{ => testlib}/runt.bat (100%) rename exercises/practice/bob/{ => testlib}/t1.rexx (100%) rename exercises/practice/bob/{ => testlib}/t2.rexx (100%) rename exercises/practice/bob/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/clock/testlib/clock-funcs.rexx rename exercises/practice/clock/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/clock/{ => testlib}/runt.bat (100%) rename exercises/practice/clock/{ => testlib}/t1.rexx (100%) rename exercises/practice/clock/{ => testlib}/t2.rexx (100%) rename exercises/practice/clock/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/collatz-conjecture/testlib/collatz-conjecture-funcs.rexx rename exercises/practice/collatz-conjecture/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/collatz-conjecture/{ => testlib}/runt.bat (100%) rename exercises/practice/collatz-conjecture/{ => testlib}/t1.rexx (100%) rename exercises/practice/collatz-conjecture/{ => testlib}/t2.rexx (100%) rename exercises/practice/collatz-conjecture/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/custom-set/testlib/custom-set-funcs.rexx rename exercises/practice/custom-set/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/custom-set/{ => testlib}/runt.bat (100%) rename exercises/practice/custom-set/{ => testlib}/t1.rexx (100%) rename exercises/practice/custom-set/{ => testlib}/t2.rexx (100%) rename exercises/practice/custom-set/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/darts/testlib/darts-funcs.rexx rename exercises/practice/darts/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/darts/{ => testlib}/runt.bat (100%) rename exercises/practice/darts/{ => testlib}/t1.rexx (100%) rename exercises/practice/darts/{ => testlib}/t2.rexx (100%) rename exercises/practice/darts/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/difference-of-squares/testlib/difference-of-squares-funcs.rexx rename exercises/practice/difference-of-squares/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/difference-of-squares/{ => testlib}/runt.bat (100%) rename exercises/practice/difference-of-squares/{ => testlib}/t1.rexx (100%) rename exercises/practice/difference-of-squares/{ => testlib}/t2.rexx (100%) rename exercises/practice/difference-of-squares/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/error-handling/testlib/error-handling-funcs.rexx rename exercises/practice/error-handling/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/error-handling/{ => testlib}/runt.bat (100%) rename exercises/practice/error-handling/{ => testlib}/t1.rexx (100%) rename exercises/practice/error-handling/{ => testlib}/t2.rexx (100%) rename exercises/practice/error-handling/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/etl/testlib/etl-funcs.rexx rename exercises/practice/etl/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/etl/{ => testlib}/runt.bat (100%) rename exercises/practice/etl/{ => testlib}/t1.rexx (100%) rename exercises/practice/etl/{ => testlib}/t2.rexx (100%) rename exercises/practice/etl/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/gigasecond/testlib/gigasecond-funcs.rexx rename exercises/practice/gigasecond/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/gigasecond/{ => testlib}/runt.bat (100%) rename exercises/practice/gigasecond/{ => testlib}/t1.rexx (100%) rename exercises/practice/gigasecond/{ => testlib}/t2.rexx (100%) rename exercises/practice/gigasecond/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/grade-school/testlib/grade-school-funcs.rexx rename exercises/practice/grade-school/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/grade-school/{ => testlib}/runt.bat (100%) rename exercises/practice/grade-school/{ => testlib}/t1.rexx (100%) rename exercises/practice/grade-school/{ => testlib}/t2.rexx (100%) rename exercises/practice/grade-school/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/grains/testlib/grains-funcs.rexx rename exercises/practice/grains/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/grains/{ => testlib}/runt.bat (100%) rename exercises/practice/grains/{ => testlib}/t1.rexx (100%) rename exercises/practice/grains/{ => testlib}/t2.rexx (100%) rename exercises/practice/grains/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/hamming/testlib/hamming-funcs.rexx rename exercises/practice/hamming/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/hamming/{ => testlib}/runt.bat (100%) rename exercises/practice/hamming/{ => testlib}/t1.rexx (100%) rename exercises/practice/hamming/{ => testlib}/t2.rexx (100%) rename exercises/practice/hamming/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/hello-world/testlib/hello-world-funcs.rexx rename exercises/practice/hello-world/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/hello-world/{ => testlib}/runt.bat (100%) rename exercises/practice/hello-world/{ => testlib}/t1.rexx (100%) rename exercises/practice/hello-world/{ => testlib}/t2.rexx (100%) rename exercises/practice/hello-world/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/high-scores/testlib/high-scores-funcs.rexx rename exercises/practice/high-scores/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/high-scores/{ => testlib}/runt.bat (100%) rename exercises/practice/high-scores/{ => testlib}/t1.rexx (100%) rename exercises/practice/high-scores/{ => testlib}/t2.rexx (100%) rename exercises/practice/high-scores/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/house/testlib/house-funcs.rexx rename exercises/practice/house/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/house/{ => testlib}/runt.bat (100%) rename exercises/practice/house/{ => testlib}/t1.rexx (100%) rename exercises/practice/house/{ => testlib}/t2.rexx (100%) rename exercises/practice/house/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/isbn-verifier/testlib/isbn-verifier-funcs.rexx rename exercises/practice/isbn-verifier/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/isbn-verifier/{ => testlib}/runt.bat (100%) rename exercises/practice/isbn-verifier/{ => testlib}/t1.rexx (100%) rename exercises/practice/isbn-verifier/{ => testlib}/t2.rexx (100%) rename exercises/practice/isbn-verifier/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/isogram/testlib/isogram-funcs.rexx rename exercises/practice/isogram/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/isogram/{ => testlib}/runt.bat (100%) rename exercises/practice/isogram/{ => testlib}/t1.rexx (100%) rename exercises/practice/isogram/{ => testlib}/t2.rexx (100%) rename exercises/practice/isogram/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/leap/testlib/leap-funcs.rexx rename exercises/practice/leap/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/leap/{ => testlib}/runt.bat (100%) rename exercises/practice/leap/{ => testlib}/t1.rexx (100%) rename exercises/practice/leap/{ => testlib}/t2.rexx (100%) rename exercises/practice/leap/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/list-ops/testlib/list-ops-funcs.rexx rename exercises/practice/list-ops/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/list-ops/{ => testlib}/runt.bat (100%) rename exercises/practice/list-ops/{ => testlib}/t1.rexx (100%) rename exercises/practice/list-ops/{ => testlib}/t2.rexx (100%) rename exercises/practice/list-ops/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/luhn/testlib/luhn-funcs.rexx rename exercises/practice/luhn/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/luhn/{ => testlib}/runt.bat (100%) rename exercises/practice/luhn/{ => testlib}/t1.rexx (100%) rename exercises/practice/luhn/{ => testlib}/t2.rexx (100%) rename exercises/practice/luhn/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/matching-brackets/testlib/matching-brackets-funcs.rexx rename exercises/practice/matching-brackets/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/matching-brackets/{ => testlib}/runt.bat (100%) rename exercises/practice/matching-brackets/{ => testlib}/t1.rexx (100%) rename exercises/practice/matching-brackets/{ => testlib}/t2.rexx (100%) rename exercises/practice/matching-brackets/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/matrix/testlib/matrix-funcs.rexx rename exercises/practice/matrix/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/matrix/{ => testlib}/runt.bat (100%) rename exercises/practice/matrix/{ => testlib}/t1.rexx (100%) rename exercises/practice/matrix/{ => testlib}/t2.rexx (100%) rename exercises/practice/matrix/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/nth-prime/testlib/nth-prime-funcs.rexx rename exercises/practice/nth-prime/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/nth-prime/{ => testlib}/runt.bat (100%) rename exercises/practice/nth-prime/{ => testlib}/t1.rexx (100%) rename exercises/practice/nth-prime/{ => testlib}/t2.rexx (100%) rename exercises/practice/nth-prime/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/nucleotide-count/testlib/nucleotide-count-funcs.rexx rename exercises/practice/nucleotide-count/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/nucleotide-count/{ => testlib}/runt.bat (100%) rename exercises/practice/nucleotide-count/{ => testlib}/t1.rexx (100%) rename exercises/practice/nucleotide-count/{ => testlib}/t2.rexx (100%) rename exercises/practice/nucleotide-count/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/ocr-numbers/testlib/ocr-numbers-funcs.rexx rename exercises/practice/ocr-numbers/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/ocr-numbers/{ => testlib}/runt.bat (100%) rename exercises/practice/ocr-numbers/{ => testlib}/t1.rexx (100%) rename exercises/practice/ocr-numbers/{ => testlib}/t2.rexx (100%) rename exercises/practice/ocr-numbers/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/pangram/testlib/pangram-funcs.rexx rename exercises/practice/pangram/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/pangram/{ => testlib}/runt.bat (100%) rename exercises/practice/pangram/{ => testlib}/t1.rexx (100%) rename exercises/practice/pangram/{ => testlib}/t2.rexx (100%) rename exercises/practice/pangram/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/perfect-numbers/testlib/perfect-numbers-funcs.rexx rename exercises/practice/perfect-numbers/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/perfect-numbers/{ => testlib}/runt.bat (100%) rename exercises/practice/perfect-numbers/{ => testlib}/t1.rexx (100%) rename exercises/practice/perfect-numbers/{ => testlib}/t2.rexx (100%) rename exercises/practice/perfect-numbers/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/phone-number/testlib/phone-number-funcs.rexx rename exercises/practice/phone-number/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/phone-number/{ => testlib}/runt.bat (100%) rename exercises/practice/phone-number/{ => testlib}/t1.rexx (100%) rename exercises/practice/phone-number/{ => testlib}/t2.rexx (100%) rename exercises/practice/phone-number/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/prime-factors/testlib/prime-factors-funcs.rexx rename exercises/practice/prime-factors/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/prime-factors/{ => testlib}/runt.bat (100%) rename exercises/practice/prime-factors/{ => testlib}/t1.rexx (100%) rename exercises/practice/prime-factors/{ => testlib}/t2.rexx (100%) rename exercises/practice/prime-factors/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/protein-translation/testlib/protein-translation-funcs.rexx rename exercises/practice/protein-translation/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/protein-translation/{ => testlib}/runt.bat (100%) rename exercises/practice/protein-translation/{ => testlib}/t1.rexx (100%) rename exercises/practice/protein-translation/{ => testlib}/t2.rexx (100%) rename exercises/practice/protein-translation/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/proverb/testlib/proverb-funcs.rexx rename exercises/practice/proverb/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/proverb/{ => testlib}/runt.bat (100%) rename exercises/practice/proverb/{ => testlib}/t1.rexx (100%) rename exercises/practice/proverb/{ => testlib}/t2.rexx (100%) rename exercises/practice/proverb/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/queen-attack/testlib/queen-attack-funcs.rexx rename exercises/practice/queen-attack/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/queen-attack/{ => testlib}/runt.bat (100%) rename exercises/practice/queen-attack/{ => testlib}/t1.rexx (100%) rename exercises/practice/queen-attack/{ => testlib}/t2.rexx (100%) rename exercises/practice/queen-attack/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/raindrops/testlib/raindrops-funcs.rexx rename exercises/practice/raindrops/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/raindrops/{ => testlib}/runt.bat (100%) rename exercises/practice/raindrops/{ => testlib}/t1.rexx (100%) rename exercises/practice/raindrops/{ => testlib}/t2.rexx (100%) rename exercises/practice/raindrops/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/resistor-color-duo/testlib/resistor-color-duo-funcs.rexx rename exercises/practice/resistor-color-duo/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/resistor-color-duo/{ => testlib}/runt.bat (100%) rename exercises/practice/resistor-color-duo/{ => testlib}/t1.rexx (100%) rename exercises/practice/resistor-color-duo/{ => testlib}/t2.rexx (100%) rename exercises/practice/resistor-color-duo/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/resistor-color-trio/testlib/resistor-color-trio-funcs.rexx rename exercises/practice/resistor-color-trio/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/resistor-color-trio/{ => testlib}/runt.bat (100%) rename exercises/practice/resistor-color-trio/{ => testlib}/t1.rexx (100%) rename exercises/practice/resistor-color-trio/{ => testlib}/t2.rexx (100%) rename exercises/practice/resistor-color-trio/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/resistor-color/testlib/resistor-color-funcs.rexx rename exercises/practice/resistor-color/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/resistor-color/{ => testlib}/runt.bat (100%) rename exercises/practice/resistor-color/{ => testlib}/t1.rexx (100%) rename exercises/practice/resistor-color/{ => testlib}/t2.rexx (100%) rename exercises/practice/resistor-color/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/reverse-string/testlib/reverse-string-funcs.rexx rename exercises/practice/reverse-string/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/reverse-string/{ => testlib}/runt.bat (100%) rename exercises/practice/reverse-string/{ => testlib}/t1.rexx (100%) rename exercises/practice/reverse-string/{ => testlib}/t2.rexx (100%) rename exercises/practice/reverse-string/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/rna-transcription/testlib/rna-transcription-funcs.rexx rename exercises/practice/rna-transcription/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/rna-transcription/{ => testlib}/runt.bat (100%) rename exercises/practice/rna-transcription/{ => testlib}/t1.rexx (100%) rename exercises/practice/rna-transcription/{ => testlib}/t2.rexx (100%) rename exercises/practice/rna-transcription/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/roman-numerals/testlib/roman-numerals-funcs.rexx rename exercises/practice/roman-numerals/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/roman-numerals/{ => testlib}/runt.bat (100%) rename exercises/practice/roman-numerals/{ => testlib}/t1.rexx (100%) rename exercises/practice/roman-numerals/{ => testlib}/t2.rexx (100%) rename exercises/practice/roman-numerals/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/rotational-cipher/testlib/rotational-cipher-funcs.rexx rename exercises/practice/rotational-cipher/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/rotational-cipher/{ => testlib}/runt.bat (100%) rename exercises/practice/rotational-cipher/{ => testlib}/t1.rexx (100%) rename exercises/practice/rotational-cipher/{ => testlib}/t2.rexx (100%) rename exercises/practice/rotational-cipher/{ => testlib}/t3.rexx (100%) rename exercises/practice/saddle-points/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/saddle-points/{ => testlib}/runt.bat (100%) create mode 100644 exercises/practice/saddle-points/testlib/saddle-points-funcs.rexx rename exercises/practice/saddle-points/{ => testlib}/t1.rexx (100%) rename exercises/practice/saddle-points/{ => testlib}/t2.rexx (100%) rename exercises/practice/saddle-points/{ => testlib}/t3.rexx (100%) rename exercises/practice/scrabble-score/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/scrabble-score/{ => testlib}/runt.bat (100%) create mode 100644 exercises/practice/scrabble-score/testlib/scrabble-score-funcs.rexx rename exercises/practice/scrabble-score/{ => testlib}/t1.rexx (100%) rename exercises/practice/scrabble-score/{ => testlib}/t2.rexx (100%) rename exercises/practice/scrabble-score/{ => testlib}/t3.rexx (100%) rename exercises/practice/secret-handshake/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/secret-handshake/{ => testlib}/runt.bat (100%) create mode 100644 exercises/practice/secret-handshake/testlib/secret-handshake-funcs.rexx rename exercises/practice/secret-handshake/{ => testlib}/t1.rexx (100%) rename exercises/practice/secret-handshake/{ => testlib}/t2.rexx (100%) rename exercises/practice/secret-handshake/{ => testlib}/t3.rexx (100%) rename exercises/practice/series/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/series/{ => testlib}/runt.bat (100%) create mode 100644 exercises/practice/series/testlib/series-funcs.rexx rename exercises/practice/series/{ => testlib}/t1.rexx (100%) rename exercises/practice/series/{ => testlib}/t2.rexx (100%) rename exercises/practice/series/{ => testlib}/t3.rexx (100%) rename exercises/practice/sieve/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/sieve/{ => testlib}/runt.bat (100%) create mode 100644 exercises/practice/sieve/testlib/sieve-funcs.rexx rename exercises/practice/sieve/{ => testlib}/t1.rexx (100%) rename exercises/practice/sieve/{ => testlib}/t2.rexx (100%) rename exercises/practice/sieve/{ => testlib}/t3.rexx (100%) rename exercises/practice/simple-cipher/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/simple-cipher/{ => testlib}/runt.bat (100%) create mode 100644 exercises/practice/simple-cipher/testlib/simple-cipher-funcs.rexx rename exercises/practice/simple-cipher/{ => testlib}/t1.rexx (100%) rename exercises/practice/simple-cipher/{ => testlib}/t2.rexx (100%) rename exercises/practice/simple-cipher/{ => testlib}/t3.rexx (100%) rename exercises/practice/space-age/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/space-age/{ => testlib}/runt.bat (100%) create mode 100644 exercises/practice/space-age/testlib/space-age-funcs.rexx rename exercises/practice/space-age/{ => testlib}/t1.rexx (100%) rename exercises/practice/space-age/{ => testlib}/t2.rexx (100%) rename exercises/practice/space-age/{ => testlib}/t3.rexx (100%) rename exercises/practice/square-root/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/square-root/{ => testlib}/runt.bat (100%) create mode 100644 exercises/practice/square-root/testlib/square-root-funcs.rexx rename exercises/practice/square-root/{ => testlib}/t1.rexx (100%) rename exercises/practice/square-root/{ => testlib}/t2.rexx (100%) rename exercises/practice/square-root/{ => testlib}/t3.rexx (100%) rename exercises/practice/strain/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/strain/{ => testlib}/runt.bat (100%) create mode 100644 exercises/practice/strain/testlib/strain-funcs.rexx rename exercises/practice/strain/{ => testlib}/t1.rexx (100%) rename exercises/practice/strain/{ => testlib}/t2.rexx (100%) rename exercises/practice/strain/{ => testlib}/t3.rexx (100%) rename exercises/practice/sublist/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/sublist/{ => testlib}/runt.bat (100%) create mode 100644 exercises/practice/sublist/testlib/sublist-funcs.rexx rename exercises/practice/sublist/{ => testlib}/t1.rexx (100%) rename exercises/practice/sublist/{ => testlib}/t2.rexx (100%) rename exercises/practice/sublist/{ => testlib}/t3.rexx (100%) rename exercises/practice/sum-of-multiples/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/sum-of-multiples/{ => testlib}/runt.bat (100%) create mode 100644 exercises/practice/sum-of-multiples/testlib/sum-of-multiples-funcs.rexx rename exercises/practice/sum-of-multiples/{ => testlib}/t1.rexx (100%) rename exercises/practice/sum-of-multiples/{ => testlib}/t2.rexx (100%) rename exercises/practice/sum-of-multiples/{ => testlib}/t3.rexx (100%) rename exercises/practice/transpose/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/transpose/{ => testlib}/runt.bat (100%) rename exercises/practice/transpose/{ => testlib}/t1.rexx (100%) rename exercises/practice/transpose/{ => testlib}/t2.rexx (100%) rename exercises/practice/transpose/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/transpose/testlib/transpose-funcs.rexx rename exercises/practice/triangle/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/triangle/{ => testlib}/runt.bat (100%) rename exercises/practice/triangle/{ => testlib}/t1.rexx (100%) rename exercises/practice/triangle/{ => testlib}/t2.rexx (100%) rename exercises/practice/triangle/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/triangle/testlib/triangle-funcs.rexx rename exercises/practice/twelve-days/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/twelve-days/{ => testlib}/runt.bat (100%) rename exercises/practice/twelve-days/{ => testlib}/t1.rexx (100%) rename exercises/practice/twelve-days/{ => testlib}/t2.rexx (100%) rename exercises/practice/twelve-days/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/twelve-days/testlib/twelve-days-funcs.rexx rename exercises/practice/two-fer/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/two-fer/{ => testlib}/runt.bat (100%) rename exercises/practice/two-fer/{ => testlib}/t1.rexx (100%) rename exercises/practice/two-fer/{ => testlib}/t2.rexx (100%) rename exercises/practice/two-fer/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/two-fer/testlib/two-fer-funcs.rexx rename exercises/practice/word-count/{ => testlib}/runt (100%) mode change 100755 => 100644 rename exercises/practice/word-count/{ => testlib}/runt.bat (100%) rename exercises/practice/word-count/{ => testlib}/t1.rexx (100%) rename exercises/practice/word-count/{ => testlib}/t2.rexx (100%) rename exercises/practice/word-count/{ => testlib}/t3.rexx (100%) create mode 100644 exercises/practice/word-count/testlib/word-count-funcs.rexx diff --git a/bin/verify-exercises b/bin/verify-exercises index 94ef473..a558dc0 100755 --- a/bin/verify-exercises +++ b/bin/verify-exercises @@ -28,9 +28,9 @@ verify_practice_exercise() { # Check whether exercise is a work-in-progress; if so, skip test, return success local is_wip=$(jq '.exercises.practice[] | select(.slug=="'${exercise}'") | select(.status=="wip")' config.json) [ -n "${is_wip}" ] && return 0 - # Copy exercise directory contents to temporary directory + # Create temporary directory, and copy exercise directory contents to it local testdir="$(mktemp -d)" - cp "${srcdir}"/* "${testdir}"/ + cp -r "${srcdir}"/* "${testdir}"/ cp "${srcdir}"/.meta/example*.rexx "${testdir}"/ # Prepare and perform exercise tests echo "Testing ${exercise} ..." diff --git a/exercises/practice/accumulate/.meta/config.json b/exercises/practice/accumulate/.meta/config.json index 4c961fe..75286fc 100644 --- a/exercises/practice/accumulate/.meta/config.json +++ b/exercises/practice/accumulate/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["accumulate.rexx"], + "solution": ["accumulate.rexx", "accumulate-toplevel.rexx"], "test": ["test-accumulate"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/accumulate/test-accumulate b/exercises/practice/accumulate/test-accumulate index f74a8a2..434b694 100755 --- a/exercises/practice/accumulate/test-accumulate +++ b/exercises/practice/accumulate/test-accumulate @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina accumulate-check accumulate accumulate-toplevel ; else ./runt "$@" accumulate-check accumulate accumulate-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../accumulate-check ../accumulate ../accumulate-toplevel ; else ./runt "$@" ../accumulate-check ../accumulate ../accumulate-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/accumulate/test-accumulate.bat b/exercises/practice/accumulate/test-accumulate.bat index 6fe301f..945d0f8 100644 --- a/exercises/practice/accumulate/test-accumulate.bat +++ b/exercises/practice/accumulate/test-accumulate.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% accumulate-check accumulate accumulate-toplevel +cd "testlib" +@call runt.bat %options% ..\accumulate-check ..\accumulate ..\accumulate-toplevel +cd .. diff --git a/exercises/practice/accumulate/testlib/accumulate-funcs.rexx b/exercises/practice/accumulate/testlib/accumulate-funcs.rexx new file mode 100644 index 0000000..45fdda9 --- /dev/null +++ b/exercises/practice/accumulate/testlib/accumulate-funcs.rexx @@ -0,0 +1,8 @@ +/* accumulate - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/accumulate/runt b/exercises/practice/accumulate/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/accumulate/runt rename to exercises/practice/accumulate/testlib/runt diff --git a/exercises/practice/accumulate/runt.bat b/exercises/practice/accumulate/testlib/runt.bat similarity index 100% rename from exercises/practice/accumulate/runt.bat rename to exercises/practice/accumulate/testlib/runt.bat diff --git a/exercises/practice/accumulate/t1.rexx b/exercises/practice/accumulate/testlib/t1.rexx similarity index 100% rename from exercises/practice/accumulate/t1.rexx rename to exercises/practice/accumulate/testlib/t1.rexx diff --git a/exercises/practice/accumulate/t2.rexx b/exercises/practice/accumulate/testlib/t2.rexx similarity index 100% rename from exercises/practice/accumulate/t2.rexx rename to exercises/practice/accumulate/testlib/t2.rexx diff --git a/exercises/practice/accumulate/t3.rexx b/exercises/practice/accumulate/testlib/t3.rexx similarity index 100% rename from exercises/practice/accumulate/t3.rexx rename to exercises/practice/accumulate/testlib/t3.rexx diff --git a/exercises/practice/acronym/.meta/config.json b/exercises/practice/acronym/.meta/config.json index 8cbe0b9..16e7295 100644 --- a/exercises/practice/acronym/.meta/config.json +++ b/exercises/practice/acronym/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["acronym.rexx"], + "solution": ["acronym.rexx", "acronym-toplevel.rexx"], "test": ["test-acronym"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/acronym/test-acronym b/exercises/practice/acronym/test-acronym index 640599c..1bbf9ae 100755 --- a/exercises/practice/acronym/test-acronym +++ b/exercises/practice/acronym/test-acronym @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina acronym-check acronym acronym-toplevel ; else ./runt "$@" acronym-check acronym acronym-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../acronym-check ../acronym ../acronym-toplevel ; else ./runt "$@" ../acronym-check ../acronym ../acronym-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/acronym/test-acronym.bat b/exercises/practice/acronym/test-acronym.bat index e30e140..2fd180f 100644 --- a/exercises/practice/acronym/test-acronym.bat +++ b/exercises/practice/acronym/test-acronym.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% acronym-check acronym acronym-toplevel +cd "testlib" +@call runt.bat %options% ..\acronym-check ..\acronym ..\acronym-toplevel +cd .. diff --git a/exercises/practice/acronym/testlib/acronym-funcs.rexx b/exercises/practice/acronym/testlib/acronym-funcs.rexx new file mode 100644 index 0000000..1dbf5ae --- /dev/null +++ b/exercises/practice/acronym/testlib/acronym-funcs.rexx @@ -0,0 +1,8 @@ +/* acronym - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/acronym/runt b/exercises/practice/acronym/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/acronym/runt rename to exercises/practice/acronym/testlib/runt diff --git a/exercises/practice/acronym/runt.bat b/exercises/practice/acronym/testlib/runt.bat similarity index 100% rename from exercises/practice/acronym/runt.bat rename to exercises/practice/acronym/testlib/runt.bat diff --git a/exercises/practice/acronym/t1.rexx b/exercises/practice/acronym/testlib/t1.rexx similarity index 100% rename from exercises/practice/acronym/t1.rexx rename to exercises/practice/acronym/testlib/t1.rexx diff --git a/exercises/practice/acronym/t2.rexx b/exercises/practice/acronym/testlib/t2.rexx similarity index 100% rename from exercises/practice/acronym/t2.rexx rename to exercises/practice/acronym/testlib/t2.rexx diff --git a/exercises/practice/acronym/t3.rexx b/exercises/practice/acronym/testlib/t3.rexx similarity index 100% rename from exercises/practice/acronym/t3.rexx rename to exercises/practice/acronym/testlib/t3.rexx diff --git a/exercises/practice/all-your-base/.meta/config.json b/exercises/practice/all-your-base/.meta/config.json index 7f0e0c0..706cb46 100644 --- a/exercises/practice/all-your-base/.meta/config.json +++ b/exercises/practice/all-your-base/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["all-your-base.rexx"], + "solution": ["all-your-base.rexx", "all-your-base-toplevel.rexx"], "test": ["test-all-your-base"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/all-your-base/test-all-your-base b/exercises/practice/all-your-base/test-all-your-base index 3d349a6..af61db5 100755 --- a/exercises/practice/all-your-base/test-all-your-base +++ b/exercises/practice/all-your-base/test-all-your-base @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina all-your-base-check all-your-base all-your-base-toplevel ; else ./runt "$@" all-your-base-check all-your-base all-your-base-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../all-your-base-check ../all-your-base ../all-your-base-toplevel ; else ./runt "$@" ../all-your-base-check ../all-your-base ../all-your-base-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/all-your-base/test-all-your-base.bat b/exercises/practice/all-your-base/test-all-your-base.bat index 58d636e..e30f575 100644 --- a/exercises/practice/all-your-base/test-all-your-base.bat +++ b/exercises/practice/all-your-base/test-all-your-base.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% all-your-base-check all-your-base all-your-base-toplevel +cd "testlib" +@call runt.bat %options% ..\all-your-base-check ..\all-your-base ..\all-your-base-toplevel +cd .. diff --git a/exercises/practice/all-your-base/testlib/all-your-base-funcs.rexx b/exercises/practice/all-your-base/testlib/all-your-base-funcs.rexx new file mode 100644 index 0000000..b9c3958 --- /dev/null +++ b/exercises/practice/all-your-base/testlib/all-your-base-funcs.rexx @@ -0,0 +1,8 @@ +/* all-your-base - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/all-your-base/runt b/exercises/practice/all-your-base/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/all-your-base/runt rename to exercises/practice/all-your-base/testlib/runt diff --git a/exercises/practice/all-your-base/runt.bat b/exercises/practice/all-your-base/testlib/runt.bat similarity index 100% rename from exercises/practice/all-your-base/runt.bat rename to exercises/practice/all-your-base/testlib/runt.bat diff --git a/exercises/practice/all-your-base/t1.rexx b/exercises/practice/all-your-base/testlib/t1.rexx similarity index 100% rename from exercises/practice/all-your-base/t1.rexx rename to exercises/practice/all-your-base/testlib/t1.rexx diff --git a/exercises/practice/all-your-base/t2.rexx b/exercises/practice/all-your-base/testlib/t2.rexx similarity index 100% rename from exercises/practice/all-your-base/t2.rexx rename to exercises/practice/all-your-base/testlib/t2.rexx diff --git a/exercises/practice/all-your-base/t3.rexx b/exercises/practice/all-your-base/testlib/t3.rexx similarity index 100% rename from exercises/practice/all-your-base/t3.rexx rename to exercises/practice/all-your-base/testlib/t3.rexx diff --git a/exercises/practice/anagram/.meta/config.json b/exercises/practice/anagram/.meta/config.json index cf04383..e980161 100644 --- a/exercises/practice/anagram/.meta/config.json +++ b/exercises/practice/anagram/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["anagram.rexx"], + "solution": ["anagram.rexx", "anagram-toplevel.rexx"], "test": ["test-anagram"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/anagram/test-anagram b/exercises/practice/anagram/test-anagram index 32d67cd..bf2557b 100755 --- a/exercises/practice/anagram/test-anagram +++ b/exercises/practice/anagram/test-anagram @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina anagram-check anagram anagram-toplevel ; else ./runt "$@" anagram-check anagram anagram-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../anagram-check ../anagram ../anagram-toplevel ; else ./runt "$@" ../anagram-check ../anagram ../anagram-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/anagram/test-anagram.bat b/exercises/practice/anagram/test-anagram.bat index 320bb4b..16be8b3 100644 --- a/exercises/practice/anagram/test-anagram.bat +++ b/exercises/practice/anagram/test-anagram.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% anagram-check anagram anagram-toplevel +cd "testlib" +@call runt.bat %options% ..\anagram-check ..\anagram ..\anagram-toplevel +cd .. diff --git a/exercises/practice/anagram/testlib/anagram-funcs.rexx b/exercises/practice/anagram/testlib/anagram-funcs.rexx new file mode 100644 index 0000000..5324ec4 --- /dev/null +++ b/exercises/practice/anagram/testlib/anagram-funcs.rexx @@ -0,0 +1,8 @@ +/* anagram - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/anagram/runt b/exercises/practice/anagram/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/anagram/runt rename to exercises/practice/anagram/testlib/runt diff --git a/exercises/practice/anagram/runt.bat b/exercises/practice/anagram/testlib/runt.bat similarity index 100% rename from exercises/practice/anagram/runt.bat rename to exercises/practice/anagram/testlib/runt.bat diff --git a/exercises/practice/anagram/t1.rexx b/exercises/practice/anagram/testlib/t1.rexx similarity index 100% rename from exercises/practice/anagram/t1.rexx rename to exercises/practice/anagram/testlib/t1.rexx diff --git a/exercises/practice/anagram/t2.rexx b/exercises/practice/anagram/testlib/t2.rexx similarity index 100% rename from exercises/practice/anagram/t2.rexx rename to exercises/practice/anagram/testlib/t2.rexx diff --git a/exercises/practice/anagram/t3.rexx b/exercises/practice/anagram/testlib/t3.rexx similarity index 100% rename from exercises/practice/anagram/t3.rexx rename to exercises/practice/anagram/testlib/t3.rexx diff --git a/exercises/practice/armstrong-numbers/.meta/config.json b/exercises/practice/armstrong-numbers/.meta/config.json index fc0300b..222b72c 100644 --- a/exercises/practice/armstrong-numbers/.meta/config.json +++ b/exercises/practice/armstrong-numbers/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["armstrong-numbers.rexx"], + "solution": ["armstrong-numbers.rexx", "armstrong-numbers-toplevel.rexx"], "test": ["test-armstrong-numbers"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/armstrong-numbers/test-armstrong-numbers b/exercises/practice/armstrong-numbers/test-armstrong-numbers index cb6f54c..1adf54c 100755 --- a/exercises/practice/armstrong-numbers/test-armstrong-numbers +++ b/exercises/practice/armstrong-numbers/test-armstrong-numbers @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina armstrong-numbers-check armstrong-numbers armstrong-numbers-toplevel ; else ./runt "$@" armstrong-numbers-check armstrong-numbers armstrong-numbers-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../armstrong-numbers-check ../armstrong-numbers ../armstrong-numbers-toplevel ; else ./runt "$@" ../armstrong-numbers-check ../armstrong-numbers ../armstrong-numbers-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/armstrong-numbers/test-armstrong-numbers.bat b/exercises/practice/armstrong-numbers/test-armstrong-numbers.bat index b7b23d7..02de70b 100644 --- a/exercises/practice/armstrong-numbers/test-armstrong-numbers.bat +++ b/exercises/practice/armstrong-numbers/test-armstrong-numbers.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% armstrong-numbers-check armstrong-numbers armstrong-numbers-toplevel +cd "testlib" +@call runt.bat %options% ..\armstrong-numbers-check ..\armstrong-numbers ..\armstrong-numbers-toplevel +cd .. diff --git a/exercises/practice/armstrong-numbers/testlib/armstrong-numbers-funcs.rexx b/exercises/practice/armstrong-numbers/testlib/armstrong-numbers-funcs.rexx new file mode 100644 index 0000000..954df76 --- /dev/null +++ b/exercises/practice/armstrong-numbers/testlib/armstrong-numbers-funcs.rexx @@ -0,0 +1,8 @@ +/* armstrong-numbers - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/armstrong-numbers/runt b/exercises/practice/armstrong-numbers/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/armstrong-numbers/runt rename to exercises/practice/armstrong-numbers/testlib/runt diff --git a/exercises/practice/armstrong-numbers/runt.bat b/exercises/practice/armstrong-numbers/testlib/runt.bat similarity index 100% rename from exercises/practice/armstrong-numbers/runt.bat rename to exercises/practice/armstrong-numbers/testlib/runt.bat diff --git a/exercises/practice/armstrong-numbers/t1.rexx b/exercises/practice/armstrong-numbers/testlib/t1.rexx similarity index 100% rename from exercises/practice/armstrong-numbers/t1.rexx rename to exercises/practice/armstrong-numbers/testlib/t1.rexx diff --git a/exercises/practice/armstrong-numbers/t2.rexx b/exercises/practice/armstrong-numbers/testlib/t2.rexx similarity index 100% rename from exercises/practice/armstrong-numbers/t2.rexx rename to exercises/practice/armstrong-numbers/testlib/t2.rexx diff --git a/exercises/practice/armstrong-numbers/t3.rexx b/exercises/practice/armstrong-numbers/testlib/t3.rexx similarity index 100% rename from exercises/practice/armstrong-numbers/t3.rexx rename to exercises/practice/armstrong-numbers/testlib/t3.rexx diff --git a/exercises/practice/atbash-cipher/.meta/config.json b/exercises/practice/atbash-cipher/.meta/config.json index 6169cff..45cedac 100644 --- a/exercises/practice/atbash-cipher/.meta/config.json +++ b/exercises/practice/atbash-cipher/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["atbash-cipher.rexx"], + "solution": ["atbash-cipher.rexx", "atbash-cipher-toplevel.rexx"], "test": ["test-atbash-cipher"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/atbash-cipher/test-atbash-cipher b/exercises/practice/atbash-cipher/test-atbash-cipher index ea0306f..6ad0c7f 100755 --- a/exercises/practice/atbash-cipher/test-atbash-cipher +++ b/exercises/practice/atbash-cipher/test-atbash-cipher @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina atbash-cipher-check atbash-cipher atbash-cipher-toplevel ; else ./runt "$@" atbash-cipher-check atbash-cipher atbash-cipher-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../atbash-cipher-check ../atbash-cipher ../atbash-cipher-toplevel ; else ./runt "$@" ../atbash-cipher-check ../atbash-cipher ../atbash-cipher-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/atbash-cipher/test-atbash-cipher.bat b/exercises/practice/atbash-cipher/test-atbash-cipher.bat index 238e44b..f995de7 100644 --- a/exercises/practice/atbash-cipher/test-atbash-cipher.bat +++ b/exercises/practice/atbash-cipher/test-atbash-cipher.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% atbash-cipher-check atbash-cipher atbash-cipher-toplevel +cd "testlib" +@call runt.bat %options% ..\atbash-cipher-check ..\atbash-cipher ..\atbash-cipher-toplevel +cd .. diff --git a/exercises/practice/atbash-cipher/testlib/atbash-cipher-funcs.rexx b/exercises/practice/atbash-cipher/testlib/atbash-cipher-funcs.rexx new file mode 100644 index 0000000..fd003c9 --- /dev/null +++ b/exercises/practice/atbash-cipher/testlib/atbash-cipher-funcs.rexx @@ -0,0 +1,8 @@ +/* atbash-cipher - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/atbash-cipher/runt b/exercises/practice/atbash-cipher/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/atbash-cipher/runt rename to exercises/practice/atbash-cipher/testlib/runt diff --git a/exercises/practice/atbash-cipher/runt.bat b/exercises/practice/atbash-cipher/testlib/runt.bat similarity index 100% rename from exercises/practice/atbash-cipher/runt.bat rename to exercises/practice/atbash-cipher/testlib/runt.bat diff --git a/exercises/practice/atbash-cipher/t1.rexx b/exercises/practice/atbash-cipher/testlib/t1.rexx similarity index 100% rename from exercises/practice/atbash-cipher/t1.rexx rename to exercises/practice/atbash-cipher/testlib/t1.rexx diff --git a/exercises/practice/atbash-cipher/t2.rexx b/exercises/practice/atbash-cipher/testlib/t2.rexx similarity index 100% rename from exercises/practice/atbash-cipher/t2.rexx rename to exercises/practice/atbash-cipher/testlib/t2.rexx diff --git a/exercises/practice/atbash-cipher/t3.rexx b/exercises/practice/atbash-cipher/testlib/t3.rexx similarity index 100% rename from exercises/practice/atbash-cipher/t3.rexx rename to exercises/practice/atbash-cipher/testlib/t3.rexx diff --git a/exercises/practice/bank-account/.meta/config.json b/exercises/practice/bank-account/.meta/config.json index c450aaa..18b0c2c 100644 --- a/exercises/practice/bank-account/.meta/config.json +++ b/exercises/practice/bank-account/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["bank-account.rexx"], + "solution": ["bank-account.rexx", "bank-account-toplevel.rexx"], "test": ["test-bank-account"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/bank-account/test-bank-account b/exercises/practice/bank-account/test-bank-account index 899538d..1d7999f 100755 --- a/exercises/practice/bank-account/test-bank-account +++ b/exercises/practice/bank-account/test-bank-account @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina bank-account-check bank-account bank-account-toplevel ; else ./runt "$@" bank-account-check bank-account bank-account-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../bank-account-check ../bank-account ../bank-account-toplevel ; else ./runt "$@" ../bank-account-check ../bank-account ../bank-account-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/bank-account/test-bank-account.bat b/exercises/practice/bank-account/test-bank-account.bat index 8c96820..c520a82 100644 --- a/exercises/practice/bank-account/test-bank-account.bat +++ b/exercises/practice/bank-account/test-bank-account.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% bank-account-check bank-account bank-account-toplevel +cd "testlib" +@call runt.bat %options% ..\bank-account-check ..\bank-account ..\bank-account-toplevel +cd .. diff --git a/exercises/practice/bank-account/testlib/bank-account-funcs.rexx b/exercises/practice/bank-account/testlib/bank-account-funcs.rexx new file mode 100644 index 0000000..50c95a1 --- /dev/null +++ b/exercises/practice/bank-account/testlib/bank-account-funcs.rexx @@ -0,0 +1,8 @@ +/* bank-account - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/bank-account/runt b/exercises/practice/bank-account/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/bank-account/runt rename to exercises/practice/bank-account/testlib/runt diff --git a/exercises/practice/bank-account/runt.bat b/exercises/practice/bank-account/testlib/runt.bat similarity index 100% rename from exercises/practice/bank-account/runt.bat rename to exercises/practice/bank-account/testlib/runt.bat diff --git a/exercises/practice/bank-account/t1.rexx b/exercises/practice/bank-account/testlib/t1.rexx similarity index 100% rename from exercises/practice/bank-account/t1.rexx rename to exercises/practice/bank-account/testlib/t1.rexx diff --git a/exercises/practice/bank-account/t2.rexx b/exercises/practice/bank-account/testlib/t2.rexx similarity index 100% rename from exercises/practice/bank-account/t2.rexx rename to exercises/practice/bank-account/testlib/t2.rexx diff --git a/exercises/practice/bank-account/t3.rexx b/exercises/practice/bank-account/testlib/t3.rexx similarity index 100% rename from exercises/practice/bank-account/t3.rexx rename to exercises/practice/bank-account/testlib/t3.rexx diff --git a/exercises/practice/beer-song/.meta/config.json b/exercises/practice/beer-song/.meta/config.json index 95f180f..3e0433f 100644 --- a/exercises/practice/beer-song/.meta/config.json +++ b/exercises/practice/beer-song/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["beer-song.rexx"], + "solution": ["beer-song.rexx", "beer-song-toplevel.rexx"], "test": ["test-beer-song"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/beer-song/test-beer-song b/exercises/practice/beer-song/test-beer-song index 616176f..a7fcd6e 100755 --- a/exercises/practice/beer-song/test-beer-song +++ b/exercises/practice/beer-song/test-beer-song @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina beer-song-check beer-song beer-song-toplevel ; else ./runt "$@" beer-song-check beer-song beer-song-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../beer-song-check ../beer-song ../beer-song-toplevel ; else ./runt "$@" ../beer-song-check ../beer-song ../beer-song-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/beer-song/test-beer-song.bat b/exercises/practice/beer-song/test-beer-song.bat index 81028d9..30a2237 100644 --- a/exercises/practice/beer-song/test-beer-song.bat +++ b/exercises/practice/beer-song/test-beer-song.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% beer-song-check beer-song beer-song-toplevel +cd "testlib" +@call runt.bat %options% ..\beer-song-check ..\beer-song ..\beer-song-toplevel +cd .. diff --git a/exercises/practice/beer-song/testlib/beer-song-funcs.rexx b/exercises/practice/beer-song/testlib/beer-song-funcs.rexx new file mode 100644 index 0000000..8abae68 --- /dev/null +++ b/exercises/practice/beer-song/testlib/beer-song-funcs.rexx @@ -0,0 +1,8 @@ +/* beer-song - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/beer-song/runt b/exercises/practice/beer-song/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/beer-song/runt rename to exercises/practice/beer-song/testlib/runt diff --git a/exercises/practice/beer-song/runt.bat b/exercises/practice/beer-song/testlib/runt.bat similarity index 100% rename from exercises/practice/beer-song/runt.bat rename to exercises/practice/beer-song/testlib/runt.bat diff --git a/exercises/practice/beer-song/t1.rexx b/exercises/practice/beer-song/testlib/t1.rexx similarity index 100% rename from exercises/practice/beer-song/t1.rexx rename to exercises/practice/beer-song/testlib/t1.rexx diff --git a/exercises/practice/beer-song/t2.rexx b/exercises/practice/beer-song/testlib/t2.rexx similarity index 100% rename from exercises/practice/beer-song/t2.rexx rename to exercises/practice/beer-song/testlib/t2.rexx diff --git a/exercises/practice/beer-song/t3.rexx b/exercises/practice/beer-song/testlib/t3.rexx similarity index 100% rename from exercises/practice/beer-song/t3.rexx rename to exercises/practice/beer-song/testlib/t3.rexx diff --git a/exercises/practice/binary-search/.meta/config.json b/exercises/practice/binary-search/.meta/config.json index f5b818c..e21047d 100644 --- a/exercises/practice/binary-search/.meta/config.json +++ b/exercises/practice/binary-search/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["binary-search.rexx"], + "solution": ["binary-search.rexx", "binary-search-toplevel.rexx"], "test": ["test-binary-search"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/binary-search/test-binary-search b/exercises/practice/binary-search/test-binary-search index 0ac72a1..76546cc 100755 --- a/exercises/practice/binary-search/test-binary-search +++ b/exercises/practice/binary-search/test-binary-search @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina binary-search-check binary-search binary-search-toplevel ; else ./runt "$@" binary-search-check binary-search binary-search-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../binary-search-check ../binary-search ../binary-search-toplevel ; else ./runt "$@" ../binary-search-check ../binary-search ../binary-search-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/binary-search/test-binary-search.bat b/exercises/practice/binary-search/test-binary-search.bat index a07fa34..29e62bb 100644 --- a/exercises/practice/binary-search/test-binary-search.bat +++ b/exercises/practice/binary-search/test-binary-search.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% binary-search-check binary-search binary-search-toplevel +cd "testlib" +@call runt.bat %options% ..\binary-search-check ..\binary-search ..\binary-search-toplevel +cd .. diff --git a/exercises/practice/binary-search/testlib/binary-search-funcs.rexx b/exercises/practice/binary-search/testlib/binary-search-funcs.rexx new file mode 100644 index 0000000..6753721 --- /dev/null +++ b/exercises/practice/binary-search/testlib/binary-search-funcs.rexx @@ -0,0 +1,8 @@ +/* binary-search - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/binary-search/runt b/exercises/practice/binary-search/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/binary-search/runt rename to exercises/practice/binary-search/testlib/runt diff --git a/exercises/practice/binary-search/runt.bat b/exercises/practice/binary-search/testlib/runt.bat similarity index 100% rename from exercises/practice/binary-search/runt.bat rename to exercises/practice/binary-search/testlib/runt.bat diff --git a/exercises/practice/binary-search/t1.rexx b/exercises/practice/binary-search/testlib/t1.rexx similarity index 100% rename from exercises/practice/binary-search/t1.rexx rename to exercises/practice/binary-search/testlib/t1.rexx diff --git a/exercises/practice/binary-search/t2.rexx b/exercises/practice/binary-search/testlib/t2.rexx similarity index 100% rename from exercises/practice/binary-search/t2.rexx rename to exercises/practice/binary-search/testlib/t2.rexx diff --git a/exercises/practice/binary-search/t3.rexx b/exercises/practice/binary-search/testlib/t3.rexx similarity index 100% rename from exercises/practice/binary-search/t3.rexx rename to exercises/practice/binary-search/testlib/t3.rexx diff --git a/exercises/practice/bob/.meta/config.json b/exercises/practice/bob/.meta/config.json index 5b6314d..7c1eab2 100644 --- a/exercises/practice/bob/.meta/config.json +++ b/exercises/practice/bob/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["bob.rexx"], + "solution": ["bob.rexx", "bob-toplevel.rexx"], "test": ["test-bob"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/bob/test-bob b/exercises/practice/bob/test-bob index f38d4f6..cccfb0d 100755 --- a/exercises/practice/bob/test-bob +++ b/exercises/practice/bob/test-bob @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina bob-check bob bob-toplevel ; else ./runt "$@" bob-check bob bob-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../bob-check ../bob ../bob-toplevel ; else ./runt "$@" ../bob-check ../bob ../bob-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/bob/test-bob.bat b/exercises/practice/bob/test-bob.bat index 378bd9f..dd2e024 100644 --- a/exercises/practice/bob/test-bob.bat +++ b/exercises/practice/bob/test-bob.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% bob-check bob bob-toplevel +cd "testlib" +@call runt.bat %options% ..\bob-check ..\bob ..\bob-toplevel +cd .. diff --git a/exercises/practice/bob/testlib/bob-funcs.rexx b/exercises/practice/bob/testlib/bob-funcs.rexx new file mode 100644 index 0000000..e5657a2 --- /dev/null +++ b/exercises/practice/bob/testlib/bob-funcs.rexx @@ -0,0 +1,8 @@ +/* bob - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/bob/runt b/exercises/practice/bob/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/bob/runt rename to exercises/practice/bob/testlib/runt diff --git a/exercises/practice/bob/runt.bat b/exercises/practice/bob/testlib/runt.bat similarity index 100% rename from exercises/practice/bob/runt.bat rename to exercises/practice/bob/testlib/runt.bat diff --git a/exercises/practice/bob/t1.rexx b/exercises/practice/bob/testlib/t1.rexx similarity index 100% rename from exercises/practice/bob/t1.rexx rename to exercises/practice/bob/testlib/t1.rexx diff --git a/exercises/practice/bob/t2.rexx b/exercises/practice/bob/testlib/t2.rexx similarity index 100% rename from exercises/practice/bob/t2.rexx rename to exercises/practice/bob/testlib/t2.rexx diff --git a/exercises/practice/bob/t3.rexx b/exercises/practice/bob/testlib/t3.rexx similarity index 100% rename from exercises/practice/bob/t3.rexx rename to exercises/practice/bob/testlib/t3.rexx diff --git a/exercises/practice/clock/.meta/config.json b/exercises/practice/clock/.meta/config.json index 9fd7138..3dc0466 100644 --- a/exercises/practice/clock/.meta/config.json +++ b/exercises/practice/clock/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["clock.rexx"], + "solution": ["clock.rexx", "clock-toplevel.rexx"], "test": ["test-clock"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/clock/test-clock b/exercises/practice/clock/test-clock index 8d5e4c4..fca8df4 100755 --- a/exercises/practice/clock/test-clock +++ b/exercises/practice/clock/test-clock @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina clock-check clock clock-toplevel ; else ./runt "$@" clock-check clock clock-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../clock-check ../clock ../clock-toplevel ; else ./runt "$@" ../clock-check ../clock ../clock-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/clock/test-clock.bat b/exercises/practice/clock/test-clock.bat index b1d5d9c..89b1fe0 100644 --- a/exercises/practice/clock/test-clock.bat +++ b/exercises/practice/clock/test-clock.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% clock-check clock clock-toplevel +cd "testlib" +@call runt.bat %options% ..\clock-check ..\clock ..\clock-toplevel +cd .. diff --git a/exercises/practice/clock/testlib/clock-funcs.rexx b/exercises/practice/clock/testlib/clock-funcs.rexx new file mode 100644 index 0000000..5acbc0c --- /dev/null +++ b/exercises/practice/clock/testlib/clock-funcs.rexx @@ -0,0 +1,8 @@ +/* clock - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/clock/runt b/exercises/practice/clock/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/clock/runt rename to exercises/practice/clock/testlib/runt diff --git a/exercises/practice/clock/runt.bat b/exercises/practice/clock/testlib/runt.bat similarity index 100% rename from exercises/practice/clock/runt.bat rename to exercises/practice/clock/testlib/runt.bat diff --git a/exercises/practice/clock/t1.rexx b/exercises/practice/clock/testlib/t1.rexx similarity index 100% rename from exercises/practice/clock/t1.rexx rename to exercises/practice/clock/testlib/t1.rexx diff --git a/exercises/practice/clock/t2.rexx b/exercises/practice/clock/testlib/t2.rexx similarity index 100% rename from exercises/practice/clock/t2.rexx rename to exercises/practice/clock/testlib/t2.rexx diff --git a/exercises/practice/clock/t3.rexx b/exercises/practice/clock/testlib/t3.rexx similarity index 100% rename from exercises/practice/clock/t3.rexx rename to exercises/practice/clock/testlib/t3.rexx diff --git a/exercises/practice/collatz-conjecture/.meta/config.json b/exercises/practice/collatz-conjecture/.meta/config.json index acc9636..a35031d 100644 --- a/exercises/practice/collatz-conjecture/.meta/config.json +++ b/exercises/practice/collatz-conjecture/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["collatz-conjecture.rexx"], + "solution": ["collatz-conjecture.rexx", "collatz-conjecture-toplevel.rexx"], "test": ["test-collatz-conjecture"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/collatz-conjecture/test-collatz-conjecture b/exercises/practice/collatz-conjecture/test-collatz-conjecture index 3888b67..155420f 100755 --- a/exercises/practice/collatz-conjecture/test-collatz-conjecture +++ b/exercises/practice/collatz-conjecture/test-collatz-conjecture @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina collatz-conjecture-check collatz-conjecture collatz-conjecture-toplevel ; else ./runt "$@" collatz-conjecture-check collatz-conjecture collatz-conjecture-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../collatz-conjecture-check ../collatz-conjecture ../collatz-conjecture-toplevel ; else ./runt "$@" ../collatz-conjecture-check ../collatz-conjecture ../collatz-conjecture-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/collatz-conjecture/test-collatz-conjecture.bat b/exercises/practice/collatz-conjecture/test-collatz-conjecture.bat index f4fa070..d85f98b 100644 --- a/exercises/practice/collatz-conjecture/test-collatz-conjecture.bat +++ b/exercises/practice/collatz-conjecture/test-collatz-conjecture.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% collatz-conjecture-check collatz-conjecture collatz-conjecture-toplevel +cd "testlib" +@call runt.bat %options% ..\collatz-conjecture-check ..\collatz-conjecture ..\collatz-conjecture-toplevel +cd .. diff --git a/exercises/practice/collatz-conjecture/testlib/collatz-conjecture-funcs.rexx b/exercises/practice/collatz-conjecture/testlib/collatz-conjecture-funcs.rexx new file mode 100644 index 0000000..4eb5ec4 --- /dev/null +++ b/exercises/practice/collatz-conjecture/testlib/collatz-conjecture-funcs.rexx @@ -0,0 +1,8 @@ +/* collatz-conjecture - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/collatz-conjecture/runt b/exercises/practice/collatz-conjecture/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/collatz-conjecture/runt rename to exercises/practice/collatz-conjecture/testlib/runt diff --git a/exercises/practice/collatz-conjecture/runt.bat b/exercises/practice/collatz-conjecture/testlib/runt.bat similarity index 100% rename from exercises/practice/collatz-conjecture/runt.bat rename to exercises/practice/collatz-conjecture/testlib/runt.bat diff --git a/exercises/practice/collatz-conjecture/t1.rexx b/exercises/practice/collatz-conjecture/testlib/t1.rexx similarity index 100% rename from exercises/practice/collatz-conjecture/t1.rexx rename to exercises/practice/collatz-conjecture/testlib/t1.rexx diff --git a/exercises/practice/collatz-conjecture/t2.rexx b/exercises/practice/collatz-conjecture/testlib/t2.rexx similarity index 100% rename from exercises/practice/collatz-conjecture/t2.rexx rename to exercises/practice/collatz-conjecture/testlib/t2.rexx diff --git a/exercises/practice/collatz-conjecture/t3.rexx b/exercises/practice/collatz-conjecture/testlib/t3.rexx similarity index 100% rename from exercises/practice/collatz-conjecture/t3.rexx rename to exercises/practice/collatz-conjecture/testlib/t3.rexx diff --git a/exercises/practice/custom-set/.meta/config.json b/exercises/practice/custom-set/.meta/config.json index 7f30fa9..256a00b 100644 --- a/exercises/practice/custom-set/.meta/config.json +++ b/exercises/practice/custom-set/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["custom-set.rexx"], + "solution": ["custom-set.rexx", "custom-set-toplevel.rexx"], "test": ["test-custom-set"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/custom-set/test-custom-set b/exercises/practice/custom-set/test-custom-set index be1decd..407a78f 100755 --- a/exercises/practice/custom-set/test-custom-set +++ b/exercises/practice/custom-set/test-custom-set @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina custom-set-check custom-set custom-set-toplevel ; else ./runt "$@" custom-set-check custom-set custom-set-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../custom-set-check ../custom-set ../custom-set-toplevel ; else ./runt "$@" ../custom-set-check ../custom-set ../custom-set-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/custom-set/test-custom-set.bat b/exercises/practice/custom-set/test-custom-set.bat index f21c97d..a61f573 100644 --- a/exercises/practice/custom-set/test-custom-set.bat +++ b/exercises/practice/custom-set/test-custom-set.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% custom-set-check custom-set custom-set-toplevel +cd "testlib" +@call runt.bat %options% ..\custom-set-check ..\custom-set ..\custom-set-toplevel +cd .. diff --git a/exercises/practice/custom-set/testlib/custom-set-funcs.rexx b/exercises/practice/custom-set/testlib/custom-set-funcs.rexx new file mode 100644 index 0000000..10b1979 --- /dev/null +++ b/exercises/practice/custom-set/testlib/custom-set-funcs.rexx @@ -0,0 +1,8 @@ +/* custom-set - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/custom-set/runt b/exercises/practice/custom-set/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/custom-set/runt rename to exercises/practice/custom-set/testlib/runt diff --git a/exercises/practice/custom-set/runt.bat b/exercises/practice/custom-set/testlib/runt.bat similarity index 100% rename from exercises/practice/custom-set/runt.bat rename to exercises/practice/custom-set/testlib/runt.bat diff --git a/exercises/practice/custom-set/t1.rexx b/exercises/practice/custom-set/testlib/t1.rexx similarity index 100% rename from exercises/practice/custom-set/t1.rexx rename to exercises/practice/custom-set/testlib/t1.rexx diff --git a/exercises/practice/custom-set/t2.rexx b/exercises/practice/custom-set/testlib/t2.rexx similarity index 100% rename from exercises/practice/custom-set/t2.rexx rename to exercises/practice/custom-set/testlib/t2.rexx diff --git a/exercises/practice/custom-set/t3.rexx b/exercises/practice/custom-set/testlib/t3.rexx similarity index 100% rename from exercises/practice/custom-set/t3.rexx rename to exercises/practice/custom-set/testlib/t3.rexx diff --git a/exercises/practice/darts/.meta/config.json b/exercises/practice/darts/.meta/config.json index 99f5f20..23da742 100644 --- a/exercises/practice/darts/.meta/config.json +++ b/exercises/practice/darts/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["darts.rexx"], + "solution": ["darts.rexx", "darts-toplevel.rexx"], "test": ["test-darts"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/darts/test-darts b/exercises/practice/darts/test-darts index e53d8bb..ed3aff5 100755 --- a/exercises/practice/darts/test-darts +++ b/exercises/practice/darts/test-darts @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina darts-check darts darts-toplevel ; else ./runt "$@" darts-check darts darts-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../darts-check ../darts ../darts-toplevel ; else ./runt "$@" ../darts-check ../darts ../darts-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/darts/test-darts.bat b/exercises/practice/darts/test-darts.bat index 56f1326..7751390 100644 --- a/exercises/practice/darts/test-darts.bat +++ b/exercises/practice/darts/test-darts.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% darts-check darts darts-toplevel +cd "testlib" +@call runt.bat %options% ..\darts-check ..\darts ..\darts-toplevel +cd .. diff --git a/exercises/practice/darts/testlib/darts-funcs.rexx b/exercises/practice/darts/testlib/darts-funcs.rexx new file mode 100644 index 0000000..a19d7cf --- /dev/null +++ b/exercises/practice/darts/testlib/darts-funcs.rexx @@ -0,0 +1,8 @@ +/* darts - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/darts/runt b/exercises/practice/darts/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/darts/runt rename to exercises/practice/darts/testlib/runt diff --git a/exercises/practice/darts/runt.bat b/exercises/practice/darts/testlib/runt.bat similarity index 100% rename from exercises/practice/darts/runt.bat rename to exercises/practice/darts/testlib/runt.bat diff --git a/exercises/practice/darts/t1.rexx b/exercises/practice/darts/testlib/t1.rexx similarity index 100% rename from exercises/practice/darts/t1.rexx rename to exercises/practice/darts/testlib/t1.rexx diff --git a/exercises/practice/darts/t2.rexx b/exercises/practice/darts/testlib/t2.rexx similarity index 100% rename from exercises/practice/darts/t2.rexx rename to exercises/practice/darts/testlib/t2.rexx diff --git a/exercises/practice/darts/t3.rexx b/exercises/practice/darts/testlib/t3.rexx similarity index 100% rename from exercises/practice/darts/t3.rexx rename to exercises/practice/darts/testlib/t3.rexx diff --git a/exercises/practice/difference-of-squares/.meta/config.json b/exercises/practice/difference-of-squares/.meta/config.json index 2c3632c..16940b4 100644 --- a/exercises/practice/difference-of-squares/.meta/config.json +++ b/exercises/practice/difference-of-squares/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["difference-of-squares.rexx"], + "solution": ["difference-of-squares.rexx", "difference-of-squares-toplevel.rexx"], "test": ["test-difference-of-squares"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/difference-of-squares/test-difference-of-squares b/exercises/practice/difference-of-squares/test-difference-of-squares index 3e1bc58..310abef 100755 --- a/exercises/practice/difference-of-squares/test-difference-of-squares +++ b/exercises/practice/difference-of-squares/test-difference-of-squares @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina difference-of-squares-check difference-of-squares difference-of-squares-toplevel ; else ./runt "$@" difference-of-squares-check difference-of-squares difference-of-squares-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../difference-of-squares-check ../difference-of-squares ../difference-of-squares-toplevel ; else ./runt "$@" ../difference-of-squares-check ../difference-of-squares ../difference-of-squares-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/difference-of-squares/test-difference-of-squares.bat b/exercises/practice/difference-of-squares/test-difference-of-squares.bat index 2a2665f..6b70815 100644 --- a/exercises/practice/difference-of-squares/test-difference-of-squares.bat +++ b/exercises/practice/difference-of-squares/test-difference-of-squares.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% difference-of-squares-check difference-of-squares difference-of-squares-toplevel +cd "testlib" +@call runt.bat %options% ..\difference-of-squares-check ..\difference-of-squares ..\difference-of-squares-toplevel +cd .. diff --git a/exercises/practice/difference-of-squares/testlib/difference-of-squares-funcs.rexx b/exercises/practice/difference-of-squares/testlib/difference-of-squares-funcs.rexx new file mode 100644 index 0000000..aee5309 --- /dev/null +++ b/exercises/practice/difference-of-squares/testlib/difference-of-squares-funcs.rexx @@ -0,0 +1,8 @@ +/* difference-of-squares - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/difference-of-squares/runt b/exercises/practice/difference-of-squares/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/difference-of-squares/runt rename to exercises/practice/difference-of-squares/testlib/runt diff --git a/exercises/practice/difference-of-squares/runt.bat b/exercises/practice/difference-of-squares/testlib/runt.bat similarity index 100% rename from exercises/practice/difference-of-squares/runt.bat rename to exercises/practice/difference-of-squares/testlib/runt.bat diff --git a/exercises/practice/difference-of-squares/t1.rexx b/exercises/practice/difference-of-squares/testlib/t1.rexx similarity index 100% rename from exercises/practice/difference-of-squares/t1.rexx rename to exercises/practice/difference-of-squares/testlib/t1.rexx diff --git a/exercises/practice/difference-of-squares/t2.rexx b/exercises/practice/difference-of-squares/testlib/t2.rexx similarity index 100% rename from exercises/practice/difference-of-squares/t2.rexx rename to exercises/practice/difference-of-squares/testlib/t2.rexx diff --git a/exercises/practice/difference-of-squares/t3.rexx b/exercises/practice/difference-of-squares/testlib/t3.rexx similarity index 100% rename from exercises/practice/difference-of-squares/t3.rexx rename to exercises/practice/difference-of-squares/testlib/t3.rexx diff --git a/exercises/practice/error-handling/.meta/config.json b/exercises/practice/error-handling/.meta/config.json index 6cd47d9..9fac023 100644 --- a/exercises/practice/error-handling/.meta/config.json +++ b/exercises/practice/error-handling/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["error-handling.rexx"], + "solution": ["error-handling.rexx", "error-handling-toplevel.rexx"], "test": ["test-error-handling"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/error-handling/test-error-handling b/exercises/practice/error-handling/test-error-handling index 1cb80a1..b630270 100755 --- a/exercises/practice/error-handling/test-error-handling +++ b/exercises/practice/error-handling/test-error-handling @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina error-handling-check error-handling error-handling-toplevel ; else ./runt "$@" error-handling-check error-handling error-handling-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../error-handling-check ../error-handling ../error-handling-toplevel ; else ./runt "$@" ../error-handling-check ../error-handling ../error-handling-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/error-handling/test-error-handling.bat b/exercises/practice/error-handling/test-error-handling.bat index d42ee2a..0908c01 100644 --- a/exercises/practice/error-handling/test-error-handling.bat +++ b/exercises/practice/error-handling/test-error-handling.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% error-handling-check error-handling error-handling-toplevel +cd "testlib" +@call runt.bat %options% ..\error-handling-check ..\error-handling ..\error-handling-toplevel +cd .. diff --git a/exercises/practice/error-handling/testlib/error-handling-funcs.rexx b/exercises/practice/error-handling/testlib/error-handling-funcs.rexx new file mode 100644 index 0000000..7505117 --- /dev/null +++ b/exercises/practice/error-handling/testlib/error-handling-funcs.rexx @@ -0,0 +1,8 @@ +/* error-handling - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/error-handling/runt b/exercises/practice/error-handling/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/error-handling/runt rename to exercises/practice/error-handling/testlib/runt diff --git a/exercises/practice/error-handling/runt.bat b/exercises/practice/error-handling/testlib/runt.bat similarity index 100% rename from exercises/practice/error-handling/runt.bat rename to exercises/practice/error-handling/testlib/runt.bat diff --git a/exercises/practice/error-handling/t1.rexx b/exercises/practice/error-handling/testlib/t1.rexx similarity index 100% rename from exercises/practice/error-handling/t1.rexx rename to exercises/practice/error-handling/testlib/t1.rexx diff --git a/exercises/practice/error-handling/t2.rexx b/exercises/practice/error-handling/testlib/t2.rexx similarity index 100% rename from exercises/practice/error-handling/t2.rexx rename to exercises/practice/error-handling/testlib/t2.rexx diff --git a/exercises/practice/error-handling/t3.rexx b/exercises/practice/error-handling/testlib/t3.rexx similarity index 100% rename from exercises/practice/error-handling/t3.rexx rename to exercises/practice/error-handling/testlib/t3.rexx diff --git a/exercises/practice/etl/.meta/config.json b/exercises/practice/etl/.meta/config.json index c371780..e40e87c 100644 --- a/exercises/practice/etl/.meta/config.json +++ b/exercises/practice/etl/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["etl.rexx"], + "solution": ["etl.rexx", "etl-toplevel.rexx"], "test": ["test-etl"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/etl/test-etl b/exercises/practice/etl/test-etl index b076046..ec7b815 100755 --- a/exercises/practice/etl/test-etl +++ b/exercises/practice/etl/test-etl @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina etl-check etl etl-toplevel ; else ./runt "$@" etl-check etl etl-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../etl-check ../etl ../etl-toplevel ; else ./runt "$@" ../etl-check ../etl ../etl-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/etl/test-etl.bat b/exercises/practice/etl/test-etl.bat index b390650..ed192e2 100644 --- a/exercises/practice/etl/test-etl.bat +++ b/exercises/practice/etl/test-etl.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% etl-check etl etl-toplevel +cd "testlib" +@call runt.bat %options% ..\etl-check ..\etl ..\etl-toplevel +cd .. diff --git a/exercises/practice/etl/testlib/etl-funcs.rexx b/exercises/practice/etl/testlib/etl-funcs.rexx new file mode 100644 index 0000000..a1e9f82 --- /dev/null +++ b/exercises/practice/etl/testlib/etl-funcs.rexx @@ -0,0 +1,8 @@ +/* etl - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/etl/runt b/exercises/practice/etl/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/etl/runt rename to exercises/practice/etl/testlib/runt diff --git a/exercises/practice/etl/runt.bat b/exercises/practice/etl/testlib/runt.bat similarity index 100% rename from exercises/practice/etl/runt.bat rename to exercises/practice/etl/testlib/runt.bat diff --git a/exercises/practice/etl/t1.rexx b/exercises/practice/etl/testlib/t1.rexx similarity index 100% rename from exercises/practice/etl/t1.rexx rename to exercises/practice/etl/testlib/t1.rexx diff --git a/exercises/practice/etl/t2.rexx b/exercises/practice/etl/testlib/t2.rexx similarity index 100% rename from exercises/practice/etl/t2.rexx rename to exercises/practice/etl/testlib/t2.rexx diff --git a/exercises/practice/etl/t3.rexx b/exercises/practice/etl/testlib/t3.rexx similarity index 100% rename from exercises/practice/etl/t3.rexx rename to exercises/practice/etl/testlib/t3.rexx diff --git a/exercises/practice/gigasecond/.meta/config.json b/exercises/practice/gigasecond/.meta/config.json index e2f3002..0a3bb13 100644 --- a/exercises/practice/gigasecond/.meta/config.json +++ b/exercises/practice/gigasecond/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["gigasecond.rexx"], + "solution": ["gigasecond.rexx", "gigasecond-toplevel.rexx"], "test": ["test-gigasecond"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/gigasecond/test-gigasecond b/exercises/practice/gigasecond/test-gigasecond index 0a18bfc..f97cde9 100755 --- a/exercises/practice/gigasecond/test-gigasecond +++ b/exercises/practice/gigasecond/test-gigasecond @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina gigasecond-check gigasecond gigasecond-toplevel ; else ./runt "$@" gigasecond-check gigasecond gigasecond-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../gigasecond-check ../gigasecond ../gigasecond-toplevel ; else ./runt "$@" ../gigasecond-check ../gigasecond ../gigasecond-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/gigasecond/test-gigasecond.bat b/exercises/practice/gigasecond/test-gigasecond.bat index 31c6a34..07c285f 100644 --- a/exercises/practice/gigasecond/test-gigasecond.bat +++ b/exercises/practice/gigasecond/test-gigasecond.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% gigasecond-check gigasecond gigasecond-toplevel +cd "testlib" +@call runt.bat %options% ..\gigasecond-check ..\gigasecond ..\gigasecond-toplevel +cd .. diff --git a/exercises/practice/gigasecond/testlib/gigasecond-funcs.rexx b/exercises/practice/gigasecond/testlib/gigasecond-funcs.rexx new file mode 100644 index 0000000..46e412d --- /dev/null +++ b/exercises/practice/gigasecond/testlib/gigasecond-funcs.rexx @@ -0,0 +1,8 @@ +/* gigasecond - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/gigasecond/runt b/exercises/practice/gigasecond/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/gigasecond/runt rename to exercises/practice/gigasecond/testlib/runt diff --git a/exercises/practice/gigasecond/runt.bat b/exercises/practice/gigasecond/testlib/runt.bat similarity index 100% rename from exercises/practice/gigasecond/runt.bat rename to exercises/practice/gigasecond/testlib/runt.bat diff --git a/exercises/practice/gigasecond/t1.rexx b/exercises/practice/gigasecond/testlib/t1.rexx similarity index 100% rename from exercises/practice/gigasecond/t1.rexx rename to exercises/practice/gigasecond/testlib/t1.rexx diff --git a/exercises/practice/gigasecond/t2.rexx b/exercises/practice/gigasecond/testlib/t2.rexx similarity index 100% rename from exercises/practice/gigasecond/t2.rexx rename to exercises/practice/gigasecond/testlib/t2.rexx diff --git a/exercises/practice/gigasecond/t3.rexx b/exercises/practice/gigasecond/testlib/t3.rexx similarity index 100% rename from exercises/practice/gigasecond/t3.rexx rename to exercises/practice/gigasecond/testlib/t3.rexx diff --git a/exercises/practice/grade-school/.meta/config.json b/exercises/practice/grade-school/.meta/config.json index 43a7483..a2cc60e 100644 --- a/exercises/practice/grade-school/.meta/config.json +++ b/exercises/practice/grade-school/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["grade-school.rexx"], + "solution": ["grade-school.rexx", "grade-school-toplevel.rexx"], "test": ["test-grade-school"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/grade-school/test-grade-school b/exercises/practice/grade-school/test-grade-school index e0bdca5..9bacc6e 100755 --- a/exercises/practice/grade-school/test-grade-school +++ b/exercises/practice/grade-school/test-grade-school @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina grade-school-check grade-school grade-school-toplevel ; else ./runt "$@" grade-school-check grade-school grade-school-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../grade-school-check ../grade-school ../grade-school-toplevel ; else ./runt "$@" ../grade-school-check ../grade-school ../grade-school-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/grade-school/test-grade-school.bat b/exercises/practice/grade-school/test-grade-school.bat index 7f3c230..056626f 100644 --- a/exercises/practice/grade-school/test-grade-school.bat +++ b/exercises/practice/grade-school/test-grade-school.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% grade-school-check grade-school grade-school-toplevel +cd "testlib" +@call runt.bat %options% ..\grade-school-check ..\grade-school ..\grade-school-toplevel +cd .. diff --git a/exercises/practice/grade-school/testlib/grade-school-funcs.rexx b/exercises/practice/grade-school/testlib/grade-school-funcs.rexx new file mode 100644 index 0000000..da8b662 --- /dev/null +++ b/exercises/practice/grade-school/testlib/grade-school-funcs.rexx @@ -0,0 +1,8 @@ +/* grade-school - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/grade-school/runt b/exercises/practice/grade-school/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/grade-school/runt rename to exercises/practice/grade-school/testlib/runt diff --git a/exercises/practice/grade-school/runt.bat b/exercises/practice/grade-school/testlib/runt.bat similarity index 100% rename from exercises/practice/grade-school/runt.bat rename to exercises/practice/grade-school/testlib/runt.bat diff --git a/exercises/practice/grade-school/t1.rexx b/exercises/practice/grade-school/testlib/t1.rexx similarity index 100% rename from exercises/practice/grade-school/t1.rexx rename to exercises/practice/grade-school/testlib/t1.rexx diff --git a/exercises/practice/grade-school/t2.rexx b/exercises/practice/grade-school/testlib/t2.rexx similarity index 100% rename from exercises/practice/grade-school/t2.rexx rename to exercises/practice/grade-school/testlib/t2.rexx diff --git a/exercises/practice/grade-school/t3.rexx b/exercises/practice/grade-school/testlib/t3.rexx similarity index 100% rename from exercises/practice/grade-school/t3.rexx rename to exercises/practice/grade-school/testlib/t3.rexx diff --git a/exercises/practice/grains/.meta/config.json b/exercises/practice/grains/.meta/config.json index 09614bf..f8b3a31 100644 --- a/exercises/practice/grains/.meta/config.json +++ b/exercises/practice/grains/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["grains.rexx"], + "solution": ["grains.rexx", "grains-toplevel.rexx"], "test": ["test-grains"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/grains/test-grains b/exercises/practice/grains/test-grains index 65e245b..6ff8384 100755 --- a/exercises/practice/grains/test-grains +++ b/exercises/practice/grains/test-grains @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina grains-check grains grains-toplevel ; else ./runt "$@" grains-check grains grains-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../grains-check ../grains ../grains-toplevel ; else ./runt "$@" ../grains-check ../grains ../grains-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/grains/test-grains.bat b/exercises/practice/grains/test-grains.bat index 8846336..12339c7 100644 --- a/exercises/practice/grains/test-grains.bat +++ b/exercises/practice/grains/test-grains.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% grains-check grains grains-toplevel +cd "testlib" +@call runt.bat %options% ..\grains-check ..\grains ..\grains-toplevel +cd .. diff --git a/exercises/practice/grains/testlib/grains-funcs.rexx b/exercises/practice/grains/testlib/grains-funcs.rexx new file mode 100644 index 0000000..16e9ed3 --- /dev/null +++ b/exercises/practice/grains/testlib/grains-funcs.rexx @@ -0,0 +1,8 @@ +/* grains - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/grains/runt b/exercises/practice/grains/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/grains/runt rename to exercises/practice/grains/testlib/runt diff --git a/exercises/practice/grains/runt.bat b/exercises/practice/grains/testlib/runt.bat similarity index 100% rename from exercises/practice/grains/runt.bat rename to exercises/practice/grains/testlib/runt.bat diff --git a/exercises/practice/grains/t1.rexx b/exercises/practice/grains/testlib/t1.rexx similarity index 100% rename from exercises/practice/grains/t1.rexx rename to exercises/practice/grains/testlib/t1.rexx diff --git a/exercises/practice/grains/t2.rexx b/exercises/practice/grains/testlib/t2.rexx similarity index 100% rename from exercises/practice/grains/t2.rexx rename to exercises/practice/grains/testlib/t2.rexx diff --git a/exercises/practice/grains/t3.rexx b/exercises/practice/grains/testlib/t3.rexx similarity index 100% rename from exercises/practice/grains/t3.rexx rename to exercises/practice/grains/testlib/t3.rexx diff --git a/exercises/practice/hamming/.meta/config.json b/exercises/practice/hamming/.meta/config.json index 4058eb1..ef47076 100644 --- a/exercises/practice/hamming/.meta/config.json +++ b/exercises/practice/hamming/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["hamming.rexx"], + "solution": ["hamming.rexx", "hamming-toplevel.rexx"], "test": ["test-hamming"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/hamming/test-hamming b/exercises/practice/hamming/test-hamming index 2c10665..ecf7a68 100755 --- a/exercises/practice/hamming/test-hamming +++ b/exercises/practice/hamming/test-hamming @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina hamming-check hamming hamming-toplevel ; else ./runt "$@" hamming-check hamming hamming-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../hamming-check ../hamming ../hamming-toplevel ; else ./runt "$@" ../hamming-check ../hamming ../hamming-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/hamming/test-hamming.bat b/exercises/practice/hamming/test-hamming.bat index 8b49a78..9aebfe4 100644 --- a/exercises/practice/hamming/test-hamming.bat +++ b/exercises/practice/hamming/test-hamming.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% hamming-check hamming hamming-toplevel +cd "testlib" +@call runt.bat %options% ..\hamming-check ..\hamming ..\hamming-toplevel +cd .. diff --git a/exercises/practice/hamming/testlib/hamming-funcs.rexx b/exercises/practice/hamming/testlib/hamming-funcs.rexx new file mode 100644 index 0000000..2c0a545 --- /dev/null +++ b/exercises/practice/hamming/testlib/hamming-funcs.rexx @@ -0,0 +1,8 @@ +/* hamming - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/hamming/runt b/exercises/practice/hamming/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/hamming/runt rename to exercises/practice/hamming/testlib/runt diff --git a/exercises/practice/hamming/runt.bat b/exercises/practice/hamming/testlib/runt.bat similarity index 100% rename from exercises/practice/hamming/runt.bat rename to exercises/practice/hamming/testlib/runt.bat diff --git a/exercises/practice/hamming/t1.rexx b/exercises/practice/hamming/testlib/t1.rexx similarity index 100% rename from exercises/practice/hamming/t1.rexx rename to exercises/practice/hamming/testlib/t1.rexx diff --git a/exercises/practice/hamming/t2.rexx b/exercises/practice/hamming/testlib/t2.rexx similarity index 100% rename from exercises/practice/hamming/t2.rexx rename to exercises/practice/hamming/testlib/t2.rexx diff --git a/exercises/practice/hamming/t3.rexx b/exercises/practice/hamming/testlib/t3.rexx similarity index 100% rename from exercises/practice/hamming/t3.rexx rename to exercises/practice/hamming/testlib/t3.rexx diff --git a/exercises/practice/hello-world/.meta/config.json b/exercises/practice/hello-world/.meta/config.json index 7dbf0b9..e2d9357 100644 --- a/exercises/practice/hello-world/.meta/config.json +++ b/exercises/practice/hello-world/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["hello-world.rexx"], + "solution": ["hello-world.rexx", "hello-world-toplevel.rexx"], "test": ["test-hello-world"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/hello-world/test-hello-world b/exercises/practice/hello-world/test-hello-world index baa0cff..cc079aa 100755 --- a/exercises/practice/hello-world/test-hello-world +++ b/exercises/practice/hello-world/test-hello-world @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina hello-world-check hello-world hello-world-toplevel ; else ./runt "$@" hello-world-check hello-world hello-world-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../hello-world-check ../hello-world ../hello-world-toplevel ; else ./runt "$@" ../hello-world-check ../hello-world ../hello-world-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/hello-world/test-hello-world.bat b/exercises/practice/hello-world/test-hello-world.bat index 4b4d23e..31cd7d5 100644 --- a/exercises/practice/hello-world/test-hello-world.bat +++ b/exercises/practice/hello-world/test-hello-world.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% hello-world-check hello-world hello-world-toplevel +cd "testlib" +@call runt.bat %options% ..\hello-world-check ..\hello-world ..\hello-world-toplevel +cd .. diff --git a/exercises/practice/hello-world/testlib/hello-world-funcs.rexx b/exercises/practice/hello-world/testlib/hello-world-funcs.rexx new file mode 100644 index 0000000..0c5c110 --- /dev/null +++ b/exercises/practice/hello-world/testlib/hello-world-funcs.rexx @@ -0,0 +1,8 @@ +/* hello-world - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/hello-world/runt b/exercises/practice/hello-world/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/hello-world/runt rename to exercises/practice/hello-world/testlib/runt diff --git a/exercises/practice/hello-world/runt.bat b/exercises/practice/hello-world/testlib/runt.bat similarity index 100% rename from exercises/practice/hello-world/runt.bat rename to exercises/practice/hello-world/testlib/runt.bat diff --git a/exercises/practice/hello-world/t1.rexx b/exercises/practice/hello-world/testlib/t1.rexx similarity index 100% rename from exercises/practice/hello-world/t1.rexx rename to exercises/practice/hello-world/testlib/t1.rexx diff --git a/exercises/practice/hello-world/t2.rexx b/exercises/practice/hello-world/testlib/t2.rexx similarity index 100% rename from exercises/practice/hello-world/t2.rexx rename to exercises/practice/hello-world/testlib/t2.rexx diff --git a/exercises/practice/hello-world/t3.rexx b/exercises/practice/hello-world/testlib/t3.rexx similarity index 100% rename from exercises/practice/hello-world/t3.rexx rename to exercises/practice/hello-world/testlib/t3.rexx diff --git a/exercises/practice/high-scores/.meta/config.json b/exercises/practice/high-scores/.meta/config.json index 16a3190..30da220 100644 --- a/exercises/practice/high-scores/.meta/config.json +++ b/exercises/practice/high-scores/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["high-scores.rexx"], + "solution": ["high-scores.rexx", "high-scores-toplevel.rexx"], "test": ["test-high-scores"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/high-scores/test-high-scores b/exercises/practice/high-scores/test-high-scores index 848dc66..26fe2cb 100755 --- a/exercises/practice/high-scores/test-high-scores +++ b/exercises/practice/high-scores/test-high-scores @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina high-scores-check high-scores high-scores-toplevel ; else ./runt "$@" high-scores-check high-scores high-scores-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../high-scores-check ../high-scores ../high-scores-toplevel ; else ./runt "$@" ../high-scores-check ../high-scores ../high-scores-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/high-scores/test-high-scores.bat b/exercises/practice/high-scores/test-high-scores.bat index c548a0a..a9b9e78 100644 --- a/exercises/practice/high-scores/test-high-scores.bat +++ b/exercises/practice/high-scores/test-high-scores.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% high-scores-check high-scores high-scores-toplevel +cd "testlib" +@call runt.bat %options% ..\high-scores-check ..\high-scores ..\high-scores-toplevel +cd .. diff --git a/exercises/practice/high-scores/testlib/high-scores-funcs.rexx b/exercises/practice/high-scores/testlib/high-scores-funcs.rexx new file mode 100644 index 0000000..73c04c4 --- /dev/null +++ b/exercises/practice/high-scores/testlib/high-scores-funcs.rexx @@ -0,0 +1,8 @@ +/* high-scores - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/high-scores/runt b/exercises/practice/high-scores/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/high-scores/runt rename to exercises/practice/high-scores/testlib/runt diff --git a/exercises/practice/high-scores/runt.bat b/exercises/practice/high-scores/testlib/runt.bat similarity index 100% rename from exercises/practice/high-scores/runt.bat rename to exercises/practice/high-scores/testlib/runt.bat diff --git a/exercises/practice/high-scores/t1.rexx b/exercises/practice/high-scores/testlib/t1.rexx similarity index 100% rename from exercises/practice/high-scores/t1.rexx rename to exercises/practice/high-scores/testlib/t1.rexx diff --git a/exercises/practice/high-scores/t2.rexx b/exercises/practice/high-scores/testlib/t2.rexx similarity index 100% rename from exercises/practice/high-scores/t2.rexx rename to exercises/practice/high-scores/testlib/t2.rexx diff --git a/exercises/practice/high-scores/t3.rexx b/exercises/practice/high-scores/testlib/t3.rexx similarity index 100% rename from exercises/practice/high-scores/t3.rexx rename to exercises/practice/high-scores/testlib/t3.rexx diff --git a/exercises/practice/house/.meta/config.json b/exercises/practice/house/.meta/config.json index 1af07e0..92fe7c1 100644 --- a/exercises/practice/house/.meta/config.json +++ b/exercises/practice/house/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["house.rexx"], + "solution": ["house.rexx", "house-toplevel.rexx"], "test": ["test-house"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/house/test-house b/exercises/practice/house/test-house index ff78ef3..354c17d 100755 --- a/exercises/practice/house/test-house +++ b/exercises/practice/house/test-house @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina house-check house house-toplevel ; else ./runt "$@" house-check house house-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../house-check ../house ../house-toplevel ; else ./runt "$@" ../house-check ../house ../house-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/house/test-house.bat b/exercises/practice/house/test-house.bat index 2655c18..be8ca97 100644 --- a/exercises/practice/house/test-house.bat +++ b/exercises/practice/house/test-house.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% house-check house house-toplevel +cd "testlib" +@call runt.bat %options% ..\house-check ..\house ..\house-toplevel +cd .. diff --git a/exercises/practice/house/testlib/house-funcs.rexx b/exercises/practice/house/testlib/house-funcs.rexx new file mode 100644 index 0000000..ef24bd1 --- /dev/null +++ b/exercises/practice/house/testlib/house-funcs.rexx @@ -0,0 +1,8 @@ +/* house - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/house/runt b/exercises/practice/house/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/house/runt rename to exercises/practice/house/testlib/runt diff --git a/exercises/practice/house/runt.bat b/exercises/practice/house/testlib/runt.bat similarity index 100% rename from exercises/practice/house/runt.bat rename to exercises/practice/house/testlib/runt.bat diff --git a/exercises/practice/house/t1.rexx b/exercises/practice/house/testlib/t1.rexx similarity index 100% rename from exercises/practice/house/t1.rexx rename to exercises/practice/house/testlib/t1.rexx diff --git a/exercises/practice/house/t2.rexx b/exercises/practice/house/testlib/t2.rexx similarity index 100% rename from exercises/practice/house/t2.rexx rename to exercises/practice/house/testlib/t2.rexx diff --git a/exercises/practice/house/t3.rexx b/exercises/practice/house/testlib/t3.rexx similarity index 100% rename from exercises/practice/house/t3.rexx rename to exercises/practice/house/testlib/t3.rexx diff --git a/exercises/practice/isbn-verifier/.meta/config.json b/exercises/practice/isbn-verifier/.meta/config.json index bcd59e1..e749aef 100644 --- a/exercises/practice/isbn-verifier/.meta/config.json +++ b/exercises/practice/isbn-verifier/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["isbn-verifier.rexx"], + "solution": ["isbn-verifier.rexx", "isbn-verifier-toplevel.rexx"], "test": ["test-isbn-verifier"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/isbn-verifier/test-isbn-verifier b/exercises/practice/isbn-verifier/test-isbn-verifier index e60044c..dc736b6 100755 --- a/exercises/practice/isbn-verifier/test-isbn-verifier +++ b/exercises/practice/isbn-verifier/test-isbn-verifier @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina isbn-verifier-check isbn-verifier isbn-verifier-toplevel ; else ./runt "$@" isbn-verifier-check isbn-verifier isbn-verifier-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../isbn-verifier-check ../isbn-verifier ../isbn-verifier-toplevel ; else ./runt "$@" ../isbn-verifier-check ../isbn-verifier ../isbn-verifier-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/isbn-verifier/test-isbn-verifier.bat b/exercises/practice/isbn-verifier/test-isbn-verifier.bat index b8c502a..68790dd 100644 --- a/exercises/practice/isbn-verifier/test-isbn-verifier.bat +++ b/exercises/practice/isbn-verifier/test-isbn-verifier.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% isbn-verifier-check isbn-verifier isbn-verifier-toplevel +cd "testlib" +@call runt.bat %options% ..\isbn-verifier-check ..\isbn-verifier ..\isbn-verifier-toplevel +cd .. diff --git a/exercises/practice/isbn-verifier/testlib/isbn-verifier-funcs.rexx b/exercises/practice/isbn-verifier/testlib/isbn-verifier-funcs.rexx new file mode 100644 index 0000000..eeca0de --- /dev/null +++ b/exercises/practice/isbn-verifier/testlib/isbn-verifier-funcs.rexx @@ -0,0 +1,8 @@ +/* isbn-verifier - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/isbn-verifier/runt b/exercises/practice/isbn-verifier/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/isbn-verifier/runt rename to exercises/practice/isbn-verifier/testlib/runt diff --git a/exercises/practice/isbn-verifier/runt.bat b/exercises/practice/isbn-verifier/testlib/runt.bat similarity index 100% rename from exercises/practice/isbn-verifier/runt.bat rename to exercises/practice/isbn-verifier/testlib/runt.bat diff --git a/exercises/practice/isbn-verifier/t1.rexx b/exercises/practice/isbn-verifier/testlib/t1.rexx similarity index 100% rename from exercises/practice/isbn-verifier/t1.rexx rename to exercises/practice/isbn-verifier/testlib/t1.rexx diff --git a/exercises/practice/isbn-verifier/t2.rexx b/exercises/practice/isbn-verifier/testlib/t2.rexx similarity index 100% rename from exercises/practice/isbn-verifier/t2.rexx rename to exercises/practice/isbn-verifier/testlib/t2.rexx diff --git a/exercises/practice/isbn-verifier/t3.rexx b/exercises/practice/isbn-verifier/testlib/t3.rexx similarity index 100% rename from exercises/practice/isbn-verifier/t3.rexx rename to exercises/practice/isbn-verifier/testlib/t3.rexx diff --git a/exercises/practice/isogram/.meta/config.json b/exercises/practice/isogram/.meta/config.json index 6e2e049..62127f1 100644 --- a/exercises/practice/isogram/.meta/config.json +++ b/exercises/practice/isogram/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["isogram.rexx"], + "solution": ["isogram.rexx", "isogram-toplevel.rexx"], "test": ["test-isogram"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/isogram/test-isogram b/exercises/practice/isogram/test-isogram index 93a51ea..1760673 100755 --- a/exercises/practice/isogram/test-isogram +++ b/exercises/practice/isogram/test-isogram @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina isogram-check isogram isogram-toplevel ; else ./runt "$@" isogram-check isogram isogram-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../isogram-check ../isogram ../isogram-toplevel ; else ./runt "$@" ../isogram-check ../isogram ../isogram-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/isogram/test-isogram.bat b/exercises/practice/isogram/test-isogram.bat index a65f37f..bebb116 100644 --- a/exercises/practice/isogram/test-isogram.bat +++ b/exercises/practice/isogram/test-isogram.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% isogram-check isogram isogram-toplevel +cd "testlib" +@call runt.bat %options% ..\isogram-check ..\isogram ..\isogram-toplevel +cd .. diff --git a/exercises/practice/isogram/testlib/isogram-funcs.rexx b/exercises/practice/isogram/testlib/isogram-funcs.rexx new file mode 100644 index 0000000..2502165 --- /dev/null +++ b/exercises/practice/isogram/testlib/isogram-funcs.rexx @@ -0,0 +1,8 @@ +/* isogram - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/isogram/runt b/exercises/practice/isogram/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/isogram/runt rename to exercises/practice/isogram/testlib/runt diff --git a/exercises/practice/isogram/runt.bat b/exercises/practice/isogram/testlib/runt.bat similarity index 100% rename from exercises/practice/isogram/runt.bat rename to exercises/practice/isogram/testlib/runt.bat diff --git a/exercises/practice/isogram/t1.rexx b/exercises/practice/isogram/testlib/t1.rexx similarity index 100% rename from exercises/practice/isogram/t1.rexx rename to exercises/practice/isogram/testlib/t1.rexx diff --git a/exercises/practice/isogram/t2.rexx b/exercises/practice/isogram/testlib/t2.rexx similarity index 100% rename from exercises/practice/isogram/t2.rexx rename to exercises/practice/isogram/testlib/t2.rexx diff --git a/exercises/practice/isogram/t3.rexx b/exercises/practice/isogram/testlib/t3.rexx similarity index 100% rename from exercises/practice/isogram/t3.rexx rename to exercises/practice/isogram/testlib/t3.rexx diff --git a/exercises/practice/leap/.meta/config.json b/exercises/practice/leap/.meta/config.json index e3ff440..fb559c7 100644 --- a/exercises/practice/leap/.meta/config.json +++ b/exercises/practice/leap/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["leap.rexx"], + "solution": ["leap.rexx", "leap-toplevel.rexx"], "test": ["test-leap"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/leap/test-leap b/exercises/practice/leap/test-leap index 28b8099..4712e34 100755 --- a/exercises/practice/leap/test-leap +++ b/exercises/practice/leap/test-leap @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina leap-check leap leap-toplevel ; else ./runt "$@" leap-check leap leap-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../leap-check ../leap ../leap-toplevel ; else ./runt "$@" ../leap-check ../leap ../leap-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/leap/test-leap.bat b/exercises/practice/leap/test-leap.bat index 07fc886..ac52dba 100644 --- a/exercises/practice/leap/test-leap.bat +++ b/exercises/practice/leap/test-leap.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% leap-check leap leap-toplevel +cd "testlib" +@call runt.bat %options% ..\leap-check ..\leap ..\leap-toplevel +cd .. diff --git a/exercises/practice/leap/testlib/leap-funcs.rexx b/exercises/practice/leap/testlib/leap-funcs.rexx new file mode 100644 index 0000000..91ed6b6 --- /dev/null +++ b/exercises/practice/leap/testlib/leap-funcs.rexx @@ -0,0 +1,8 @@ +/* leap - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/leap/runt b/exercises/practice/leap/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/leap/runt rename to exercises/practice/leap/testlib/runt diff --git a/exercises/practice/leap/runt.bat b/exercises/practice/leap/testlib/runt.bat similarity index 100% rename from exercises/practice/leap/runt.bat rename to exercises/practice/leap/testlib/runt.bat diff --git a/exercises/practice/leap/t1.rexx b/exercises/practice/leap/testlib/t1.rexx similarity index 100% rename from exercises/practice/leap/t1.rexx rename to exercises/practice/leap/testlib/t1.rexx diff --git a/exercises/practice/leap/t2.rexx b/exercises/practice/leap/testlib/t2.rexx similarity index 100% rename from exercises/practice/leap/t2.rexx rename to exercises/practice/leap/testlib/t2.rexx diff --git a/exercises/practice/leap/t3.rexx b/exercises/practice/leap/testlib/t3.rexx similarity index 100% rename from exercises/practice/leap/t3.rexx rename to exercises/practice/leap/testlib/t3.rexx diff --git a/exercises/practice/list-ops/.meta/config.json b/exercises/practice/list-ops/.meta/config.json index 6e5fd65..b645f7d 100644 --- a/exercises/practice/list-ops/.meta/config.json +++ b/exercises/practice/list-ops/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["list-ops.rexx"], + "solution": ["list-ops.rexx", "list-ops-toplevel.rexx"], "test": ["test-list-ops"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/list-ops/test-list-ops b/exercises/practice/list-ops/test-list-ops index 2da3dfb..00989d5 100755 --- a/exercises/practice/list-ops/test-list-ops +++ b/exercises/practice/list-ops/test-list-ops @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina list-ops-check list-ops list-ops-toplevel ; else ./runt "$@" list-ops-check list-ops list-ops-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../list-ops-check ../list-ops ../list-ops-toplevel ; else ./runt "$@" ../list-ops-check ../list-ops ../list-ops-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/list-ops/test-list-ops.bat b/exercises/practice/list-ops/test-list-ops.bat index fc05e77..770b4f3 100644 --- a/exercises/practice/list-ops/test-list-ops.bat +++ b/exercises/practice/list-ops/test-list-ops.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% list-ops-check list-ops list-ops-toplevel +cd "testlib" +@call runt.bat %options% ..\list-ops-check ..\list-ops ..\list-ops-toplevel +cd .. diff --git a/exercises/practice/list-ops/testlib/list-ops-funcs.rexx b/exercises/practice/list-ops/testlib/list-ops-funcs.rexx new file mode 100644 index 0000000..40b0fe1 --- /dev/null +++ b/exercises/practice/list-ops/testlib/list-ops-funcs.rexx @@ -0,0 +1,8 @@ +/* list-ops - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/list-ops/runt b/exercises/practice/list-ops/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/list-ops/runt rename to exercises/practice/list-ops/testlib/runt diff --git a/exercises/practice/list-ops/runt.bat b/exercises/practice/list-ops/testlib/runt.bat similarity index 100% rename from exercises/practice/list-ops/runt.bat rename to exercises/practice/list-ops/testlib/runt.bat diff --git a/exercises/practice/list-ops/t1.rexx b/exercises/practice/list-ops/testlib/t1.rexx similarity index 100% rename from exercises/practice/list-ops/t1.rexx rename to exercises/practice/list-ops/testlib/t1.rexx diff --git a/exercises/practice/list-ops/t2.rexx b/exercises/practice/list-ops/testlib/t2.rexx similarity index 100% rename from exercises/practice/list-ops/t2.rexx rename to exercises/practice/list-ops/testlib/t2.rexx diff --git a/exercises/practice/list-ops/t3.rexx b/exercises/practice/list-ops/testlib/t3.rexx similarity index 100% rename from exercises/practice/list-ops/t3.rexx rename to exercises/practice/list-ops/testlib/t3.rexx diff --git a/exercises/practice/luhn/.meta/config.json b/exercises/practice/luhn/.meta/config.json index 087f03e..797b01e 100644 --- a/exercises/practice/luhn/.meta/config.json +++ b/exercises/practice/luhn/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["luhn.rexx"], + "solution": ["luhn.rexx", "luhn-toplevel.rexx"], "test": ["test-luhn"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/luhn/test-luhn b/exercises/practice/luhn/test-luhn index ed1c7aa..4272311 100755 --- a/exercises/practice/luhn/test-luhn +++ b/exercises/practice/luhn/test-luhn @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina luhn-check luhn luhn-toplevel ; else ./runt "$@" luhn-check luhn luhn-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../luhn-check ../luhn ../luhn-toplevel ; else ./runt "$@" ../luhn-check ../luhn ../luhn-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/luhn/test-luhn.bat b/exercises/practice/luhn/test-luhn.bat index c84d4c5..8d0723a 100644 --- a/exercises/practice/luhn/test-luhn.bat +++ b/exercises/practice/luhn/test-luhn.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% luhn-check luhn luhn-toplevel +cd "testlib" +@call runt.bat %options% ..\luhn-check ..\luhn ..\luhn-toplevel +cd .. diff --git a/exercises/practice/luhn/testlib/luhn-funcs.rexx b/exercises/practice/luhn/testlib/luhn-funcs.rexx new file mode 100644 index 0000000..73f7a36 --- /dev/null +++ b/exercises/practice/luhn/testlib/luhn-funcs.rexx @@ -0,0 +1,8 @@ +/* luhn - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/luhn/runt b/exercises/practice/luhn/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/luhn/runt rename to exercises/practice/luhn/testlib/runt diff --git a/exercises/practice/luhn/runt.bat b/exercises/practice/luhn/testlib/runt.bat similarity index 100% rename from exercises/practice/luhn/runt.bat rename to exercises/practice/luhn/testlib/runt.bat diff --git a/exercises/practice/luhn/t1.rexx b/exercises/practice/luhn/testlib/t1.rexx similarity index 100% rename from exercises/practice/luhn/t1.rexx rename to exercises/practice/luhn/testlib/t1.rexx diff --git a/exercises/practice/luhn/t2.rexx b/exercises/practice/luhn/testlib/t2.rexx similarity index 100% rename from exercises/practice/luhn/t2.rexx rename to exercises/practice/luhn/testlib/t2.rexx diff --git a/exercises/practice/luhn/t3.rexx b/exercises/practice/luhn/testlib/t3.rexx similarity index 100% rename from exercises/practice/luhn/t3.rexx rename to exercises/practice/luhn/testlib/t3.rexx diff --git a/exercises/practice/matching-brackets/.meta/config.json b/exercises/practice/matching-brackets/.meta/config.json index c001149..e69021a 100644 --- a/exercises/practice/matching-brackets/.meta/config.json +++ b/exercises/practice/matching-brackets/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["matching-brackets.rexx"], + "solution": ["matching-brackets.rexx", "matching-brackets-toplevel.rexx"], "test": ["test-matching-brackets"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/matching-brackets/test-matching-brackets b/exercises/practice/matching-brackets/test-matching-brackets index 6b62071..3d35020 100755 --- a/exercises/practice/matching-brackets/test-matching-brackets +++ b/exercises/practice/matching-brackets/test-matching-brackets @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina matching-brackets-check matching-brackets matching-brackets-toplevel ; else ./runt "$@" matching-brackets-check matching-brackets matching-brackets-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../matching-brackets-check ../matching-brackets ../matching-brackets-toplevel ; else ./runt "$@" ../matching-brackets-check ../matching-brackets ../matching-brackets-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/matching-brackets/test-matching-brackets.bat b/exercises/practice/matching-brackets/test-matching-brackets.bat index bd652f2..b00e148 100644 --- a/exercises/practice/matching-brackets/test-matching-brackets.bat +++ b/exercises/practice/matching-brackets/test-matching-brackets.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% matching-brackets-check matching-brackets matching-brackets-toplevel +cd "testlib" +@call runt.bat %options% ..\matching-brackets-check ..\matching-brackets ..\matching-brackets-toplevel +cd .. diff --git a/exercises/practice/matching-brackets/testlib/matching-brackets-funcs.rexx b/exercises/practice/matching-brackets/testlib/matching-brackets-funcs.rexx new file mode 100644 index 0000000..ff2112f --- /dev/null +++ b/exercises/practice/matching-brackets/testlib/matching-brackets-funcs.rexx @@ -0,0 +1,8 @@ +/* matching-brackets - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/matching-brackets/runt b/exercises/practice/matching-brackets/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/matching-brackets/runt rename to exercises/practice/matching-brackets/testlib/runt diff --git a/exercises/practice/matching-brackets/runt.bat b/exercises/practice/matching-brackets/testlib/runt.bat similarity index 100% rename from exercises/practice/matching-brackets/runt.bat rename to exercises/practice/matching-brackets/testlib/runt.bat diff --git a/exercises/practice/matching-brackets/t1.rexx b/exercises/practice/matching-brackets/testlib/t1.rexx similarity index 100% rename from exercises/practice/matching-brackets/t1.rexx rename to exercises/practice/matching-brackets/testlib/t1.rexx diff --git a/exercises/practice/matching-brackets/t2.rexx b/exercises/practice/matching-brackets/testlib/t2.rexx similarity index 100% rename from exercises/practice/matching-brackets/t2.rexx rename to exercises/practice/matching-brackets/testlib/t2.rexx diff --git a/exercises/practice/matching-brackets/t3.rexx b/exercises/practice/matching-brackets/testlib/t3.rexx similarity index 100% rename from exercises/practice/matching-brackets/t3.rexx rename to exercises/practice/matching-brackets/testlib/t3.rexx diff --git a/exercises/practice/matrix/.meta/config.json b/exercises/practice/matrix/.meta/config.json index 4a3c8fd..3d851f8 100644 --- a/exercises/practice/matrix/.meta/config.json +++ b/exercises/practice/matrix/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["matrix.rexx"], + "solution": ["matrix.rexx", "matrix-toplevel.rexx"], "test": ["test-matrix"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/matrix/test-matrix b/exercises/practice/matrix/test-matrix index 91fc2a7..ae1c77a 100755 --- a/exercises/practice/matrix/test-matrix +++ b/exercises/practice/matrix/test-matrix @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina matrix-check matrix matrix-toplevel ; else ./runt "$@" matrix-check matrix matrix-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../matrix-check ../matrix ../matrix-toplevel ; else ./runt "$@" ../matrix-check ../matrix ../matrix-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/matrix/test-matrix.bat b/exercises/practice/matrix/test-matrix.bat index 1a572a2..9d99c15 100644 --- a/exercises/practice/matrix/test-matrix.bat +++ b/exercises/practice/matrix/test-matrix.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% matrix-check matrix matrix-toplevel +cd "testlib" +@call runt.bat %options% ..\matrix-check ..\matrix ..\matrix-toplevel +cd .. diff --git a/exercises/practice/matrix/testlib/matrix-funcs.rexx b/exercises/practice/matrix/testlib/matrix-funcs.rexx new file mode 100644 index 0000000..fb95c54 --- /dev/null +++ b/exercises/practice/matrix/testlib/matrix-funcs.rexx @@ -0,0 +1,8 @@ +/* matrix - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/matrix/runt b/exercises/practice/matrix/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/matrix/runt rename to exercises/practice/matrix/testlib/runt diff --git a/exercises/practice/matrix/runt.bat b/exercises/practice/matrix/testlib/runt.bat similarity index 100% rename from exercises/practice/matrix/runt.bat rename to exercises/practice/matrix/testlib/runt.bat diff --git a/exercises/practice/matrix/t1.rexx b/exercises/practice/matrix/testlib/t1.rexx similarity index 100% rename from exercises/practice/matrix/t1.rexx rename to exercises/practice/matrix/testlib/t1.rexx diff --git a/exercises/practice/matrix/t2.rexx b/exercises/practice/matrix/testlib/t2.rexx similarity index 100% rename from exercises/practice/matrix/t2.rexx rename to exercises/practice/matrix/testlib/t2.rexx diff --git a/exercises/practice/matrix/t3.rexx b/exercises/practice/matrix/testlib/t3.rexx similarity index 100% rename from exercises/practice/matrix/t3.rexx rename to exercises/practice/matrix/testlib/t3.rexx diff --git a/exercises/practice/nth-prime/.meta/config.json b/exercises/practice/nth-prime/.meta/config.json index 48f22a9..327f17b 100644 --- a/exercises/practice/nth-prime/.meta/config.json +++ b/exercises/practice/nth-prime/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["nth-prime.rexx"], + "solution": ["nth-prime.rexx", "nth-prime-toplevel.rexx"], "test": ["test-nth-prime"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/nth-prime/test-nth-prime b/exercises/practice/nth-prime/test-nth-prime index b737ae3..07b8352 100755 --- a/exercises/practice/nth-prime/test-nth-prime +++ b/exercises/practice/nth-prime/test-nth-prime @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina nth-prime-check nth-prime nth-prime-toplevel ; else ./runt "$@" nth-prime-check nth-prime nth-prime-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../nth-prime-check ../nth-prime ../nth-prime-toplevel ; else ./runt "$@" ../nth-prime-check ../nth-prime ../nth-prime-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/nth-prime/test-nth-prime.bat b/exercises/practice/nth-prime/test-nth-prime.bat index b8cc2ac..fb86511 100644 --- a/exercises/practice/nth-prime/test-nth-prime.bat +++ b/exercises/practice/nth-prime/test-nth-prime.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% nth-prime-check nth-prime nth-prime-toplevel +cd "testlib" +@call runt.bat %options% ..\nth-prime-check ..\nth-prime ..\nth-prime-toplevel +cd .. diff --git a/exercises/practice/nth-prime/testlib/nth-prime-funcs.rexx b/exercises/practice/nth-prime/testlib/nth-prime-funcs.rexx new file mode 100644 index 0000000..ccbddf3 --- /dev/null +++ b/exercises/practice/nth-prime/testlib/nth-prime-funcs.rexx @@ -0,0 +1,8 @@ +/* nth-prime - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/nth-prime/runt b/exercises/practice/nth-prime/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/nth-prime/runt rename to exercises/practice/nth-prime/testlib/runt diff --git a/exercises/practice/nth-prime/runt.bat b/exercises/practice/nth-prime/testlib/runt.bat similarity index 100% rename from exercises/practice/nth-prime/runt.bat rename to exercises/practice/nth-prime/testlib/runt.bat diff --git a/exercises/practice/nth-prime/t1.rexx b/exercises/practice/nth-prime/testlib/t1.rexx similarity index 100% rename from exercises/practice/nth-prime/t1.rexx rename to exercises/practice/nth-prime/testlib/t1.rexx diff --git a/exercises/practice/nth-prime/t2.rexx b/exercises/practice/nth-prime/testlib/t2.rexx similarity index 100% rename from exercises/practice/nth-prime/t2.rexx rename to exercises/practice/nth-prime/testlib/t2.rexx diff --git a/exercises/practice/nth-prime/t3.rexx b/exercises/practice/nth-prime/testlib/t3.rexx similarity index 100% rename from exercises/practice/nth-prime/t3.rexx rename to exercises/practice/nth-prime/testlib/t3.rexx diff --git a/exercises/practice/nucleotide-count/.meta/config.json b/exercises/practice/nucleotide-count/.meta/config.json index c88b588..d2f2723 100644 --- a/exercises/practice/nucleotide-count/.meta/config.json +++ b/exercises/practice/nucleotide-count/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["nucleotide-count.rexx"], + "solution": ["nucleotide-count.rexx", "nucleotide-count-toplevel.rexx"], "test": ["test-nucleotide-count"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/nucleotide-count/test-nucleotide-count b/exercises/practice/nucleotide-count/test-nucleotide-count index 6c658f6..282fe77 100755 --- a/exercises/practice/nucleotide-count/test-nucleotide-count +++ b/exercises/practice/nucleotide-count/test-nucleotide-count @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina nucleotide-count-check nucleotide-count nucleotide-count-toplevel ; else ./runt "$@" nucleotide-count-check nucleotide-count nucleotide-count-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../nucleotide-count-check ../nucleotide-count ../nucleotide-count-toplevel ; else ./runt "$@" ../nucleotide-count-check ../nucleotide-count ../nucleotide-count-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/nucleotide-count/test-nucleotide-count.bat b/exercises/practice/nucleotide-count/test-nucleotide-count.bat index 55f1bbf..df5ec28 100644 --- a/exercises/practice/nucleotide-count/test-nucleotide-count.bat +++ b/exercises/practice/nucleotide-count/test-nucleotide-count.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% nucleotide-count-check nucleotide-count nucleotide-count-toplevel +cd "testlib" +@call runt.bat %options% ..\nucleotide-count-check ..\nucleotide-count ..\nucleotide-count-toplevel +cd .. diff --git a/exercises/practice/nucleotide-count/testlib/nucleotide-count-funcs.rexx b/exercises/practice/nucleotide-count/testlib/nucleotide-count-funcs.rexx new file mode 100644 index 0000000..4e7d1ab --- /dev/null +++ b/exercises/practice/nucleotide-count/testlib/nucleotide-count-funcs.rexx @@ -0,0 +1,8 @@ +/* nucleotide-count - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/nucleotide-count/runt b/exercises/practice/nucleotide-count/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/nucleotide-count/runt rename to exercises/practice/nucleotide-count/testlib/runt diff --git a/exercises/practice/nucleotide-count/runt.bat b/exercises/practice/nucleotide-count/testlib/runt.bat similarity index 100% rename from exercises/practice/nucleotide-count/runt.bat rename to exercises/practice/nucleotide-count/testlib/runt.bat diff --git a/exercises/practice/nucleotide-count/t1.rexx b/exercises/practice/nucleotide-count/testlib/t1.rexx similarity index 100% rename from exercises/practice/nucleotide-count/t1.rexx rename to exercises/practice/nucleotide-count/testlib/t1.rexx diff --git a/exercises/practice/nucleotide-count/t2.rexx b/exercises/practice/nucleotide-count/testlib/t2.rexx similarity index 100% rename from exercises/practice/nucleotide-count/t2.rexx rename to exercises/practice/nucleotide-count/testlib/t2.rexx diff --git a/exercises/practice/nucleotide-count/t3.rexx b/exercises/practice/nucleotide-count/testlib/t3.rexx similarity index 100% rename from exercises/practice/nucleotide-count/t3.rexx rename to exercises/practice/nucleotide-count/testlib/t3.rexx diff --git a/exercises/practice/ocr-numbers/.meta/config.json b/exercises/practice/ocr-numbers/.meta/config.json index 5fd15fe..47cd0de 100644 --- a/exercises/practice/ocr-numbers/.meta/config.json +++ b/exercises/practice/ocr-numbers/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["ocr-numbers.rexx"], + "solution": ["ocr-numbers.rexx", "ocr-numbers-toplevel.rexx"], "test": ["test-ocr-numbers"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/ocr-numbers/test-ocr-numbers b/exercises/practice/ocr-numbers/test-ocr-numbers index 306de64..f6c0bb9 100755 --- a/exercises/practice/ocr-numbers/test-ocr-numbers +++ b/exercises/practice/ocr-numbers/test-ocr-numbers @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina ocr-numbers-check ocr-numbers ocr-numbers-toplevel ; else ./runt "$@" ocr-numbers-check ocr-numbers ocr-numbers-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../ocr-numbers-check ../ocr-numbers ../ocr-numbers-toplevel ; else ./runt "$@" ../ocr-numbers-check ../ocr-numbers ../ocr-numbers-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/ocr-numbers/test-ocr-numbers.bat b/exercises/practice/ocr-numbers/test-ocr-numbers.bat index b51a2f9..3244efe 100644 --- a/exercises/practice/ocr-numbers/test-ocr-numbers.bat +++ b/exercises/practice/ocr-numbers/test-ocr-numbers.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% ocr-numbers-check ocr-numbers ocr-numbers-toplevel +cd "testlib" +@call runt.bat %options% ..\ocr-numbers-check ..\ocr-numbers ..\ocr-numbers-toplevel +cd .. diff --git a/exercises/practice/ocr-numbers/testlib/ocr-numbers-funcs.rexx b/exercises/practice/ocr-numbers/testlib/ocr-numbers-funcs.rexx new file mode 100644 index 0000000..2080029 --- /dev/null +++ b/exercises/practice/ocr-numbers/testlib/ocr-numbers-funcs.rexx @@ -0,0 +1,8 @@ +/* ocr-numbers - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/ocr-numbers/runt b/exercises/practice/ocr-numbers/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/ocr-numbers/runt rename to exercises/practice/ocr-numbers/testlib/runt diff --git a/exercises/practice/ocr-numbers/runt.bat b/exercises/practice/ocr-numbers/testlib/runt.bat similarity index 100% rename from exercises/practice/ocr-numbers/runt.bat rename to exercises/practice/ocr-numbers/testlib/runt.bat diff --git a/exercises/practice/ocr-numbers/t1.rexx b/exercises/practice/ocr-numbers/testlib/t1.rexx similarity index 100% rename from exercises/practice/ocr-numbers/t1.rexx rename to exercises/practice/ocr-numbers/testlib/t1.rexx diff --git a/exercises/practice/ocr-numbers/t2.rexx b/exercises/practice/ocr-numbers/testlib/t2.rexx similarity index 100% rename from exercises/practice/ocr-numbers/t2.rexx rename to exercises/practice/ocr-numbers/testlib/t2.rexx diff --git a/exercises/practice/ocr-numbers/t3.rexx b/exercises/practice/ocr-numbers/testlib/t3.rexx similarity index 100% rename from exercises/practice/ocr-numbers/t3.rexx rename to exercises/practice/ocr-numbers/testlib/t3.rexx diff --git a/exercises/practice/pangram/.meta/config.json b/exercises/practice/pangram/.meta/config.json index a886b3d..fb97431 100644 --- a/exercises/practice/pangram/.meta/config.json +++ b/exercises/practice/pangram/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["pangram.rexx"], + "solution": ["pangram.rexx", "pangram-toplevel.rexx"], "test": ["test-pangram"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/pangram/test-pangram b/exercises/practice/pangram/test-pangram index e06fe3b..c99189f 100755 --- a/exercises/practice/pangram/test-pangram +++ b/exercises/practice/pangram/test-pangram @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina pangram-check pangram pangram-toplevel ; else ./runt "$@" pangram-check pangram pangram-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../pangram-check ../pangram ../pangram-toplevel ; else ./runt "$@" ../pangram-check ../pangram ../pangram-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/pangram/test-pangram.bat b/exercises/practice/pangram/test-pangram.bat index defad32..aa4955e 100644 --- a/exercises/practice/pangram/test-pangram.bat +++ b/exercises/practice/pangram/test-pangram.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% pangram-check pangram pangram-toplevel +cd "testlib" +@call runt.bat %options% ..\pangram-check ..\pangram ..\pangram-toplevel +cd .. diff --git a/exercises/practice/pangram/testlib/pangram-funcs.rexx b/exercises/practice/pangram/testlib/pangram-funcs.rexx new file mode 100644 index 0000000..df608ba --- /dev/null +++ b/exercises/practice/pangram/testlib/pangram-funcs.rexx @@ -0,0 +1,8 @@ +/* pangram - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/pangram/runt b/exercises/practice/pangram/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/pangram/runt rename to exercises/practice/pangram/testlib/runt diff --git a/exercises/practice/pangram/runt.bat b/exercises/practice/pangram/testlib/runt.bat similarity index 100% rename from exercises/practice/pangram/runt.bat rename to exercises/practice/pangram/testlib/runt.bat diff --git a/exercises/practice/pangram/t1.rexx b/exercises/practice/pangram/testlib/t1.rexx similarity index 100% rename from exercises/practice/pangram/t1.rexx rename to exercises/practice/pangram/testlib/t1.rexx diff --git a/exercises/practice/pangram/t2.rexx b/exercises/practice/pangram/testlib/t2.rexx similarity index 100% rename from exercises/practice/pangram/t2.rexx rename to exercises/practice/pangram/testlib/t2.rexx diff --git a/exercises/practice/pangram/t3.rexx b/exercises/practice/pangram/testlib/t3.rexx similarity index 100% rename from exercises/practice/pangram/t3.rexx rename to exercises/practice/pangram/testlib/t3.rexx diff --git a/exercises/practice/perfect-numbers/.meta/config.json b/exercises/practice/perfect-numbers/.meta/config.json index 8483aa8..892fcd7 100644 --- a/exercises/practice/perfect-numbers/.meta/config.json +++ b/exercises/practice/perfect-numbers/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["perfect-numbers.rexx"], + "solution": ["perfect-numbers.rexx", "perfect-numbers-toplevel.rexx"], "test": ["test-perfect-numbers"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/perfect-numbers/test-perfect-numbers b/exercises/practice/perfect-numbers/test-perfect-numbers index d050f52..bc20fd4 100755 --- a/exercises/practice/perfect-numbers/test-perfect-numbers +++ b/exercises/practice/perfect-numbers/test-perfect-numbers @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina perfect-numbers-check perfect-numbers perfect-numbers-toplevel ; else ./runt "$@" perfect-numbers-check perfect-numbers perfect-numbers-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../perfect-numbers-check ../perfect-numbers ../perfect-numbers-toplevel ; else ./runt "$@" ../perfect-numbers-check ../perfect-numbers ../perfect-numbers-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/perfect-numbers/test-perfect-numbers.bat b/exercises/practice/perfect-numbers/test-perfect-numbers.bat index 927753a..ce0ce87 100644 --- a/exercises/practice/perfect-numbers/test-perfect-numbers.bat +++ b/exercises/practice/perfect-numbers/test-perfect-numbers.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% perfect-numbers-check perfect-numbers perfect-numbers-toplevel +cd "testlib" +@call runt.bat %options% ..\perfect-numbers-check ..\perfect-numbers ..\perfect-numbers-toplevel +cd .. diff --git a/exercises/practice/perfect-numbers/testlib/perfect-numbers-funcs.rexx b/exercises/practice/perfect-numbers/testlib/perfect-numbers-funcs.rexx new file mode 100644 index 0000000..2f63909 --- /dev/null +++ b/exercises/practice/perfect-numbers/testlib/perfect-numbers-funcs.rexx @@ -0,0 +1,8 @@ +/* perfect-numbers - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/perfect-numbers/runt b/exercises/practice/perfect-numbers/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/perfect-numbers/runt rename to exercises/practice/perfect-numbers/testlib/runt diff --git a/exercises/practice/perfect-numbers/runt.bat b/exercises/practice/perfect-numbers/testlib/runt.bat similarity index 100% rename from exercises/practice/perfect-numbers/runt.bat rename to exercises/practice/perfect-numbers/testlib/runt.bat diff --git a/exercises/practice/perfect-numbers/t1.rexx b/exercises/practice/perfect-numbers/testlib/t1.rexx similarity index 100% rename from exercises/practice/perfect-numbers/t1.rexx rename to exercises/practice/perfect-numbers/testlib/t1.rexx diff --git a/exercises/practice/perfect-numbers/t2.rexx b/exercises/practice/perfect-numbers/testlib/t2.rexx similarity index 100% rename from exercises/practice/perfect-numbers/t2.rexx rename to exercises/practice/perfect-numbers/testlib/t2.rexx diff --git a/exercises/practice/perfect-numbers/t3.rexx b/exercises/practice/perfect-numbers/testlib/t3.rexx similarity index 100% rename from exercises/practice/perfect-numbers/t3.rexx rename to exercises/practice/perfect-numbers/testlib/t3.rexx diff --git a/exercises/practice/phone-number/.meta/config.json b/exercises/practice/phone-number/.meta/config.json index 3c8b418..11ae4e7 100644 --- a/exercises/practice/phone-number/.meta/config.json +++ b/exercises/practice/phone-number/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["phone-number.rexx"], + "solution": ["phone-number.rexx", "phone-number-toplevel.rexx"], "test": ["test-phone-number"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/phone-number/test-phone-number b/exercises/practice/phone-number/test-phone-number index 42e8cfc..d812358 100755 --- a/exercises/practice/phone-number/test-phone-number +++ b/exercises/practice/phone-number/test-phone-number @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina phone-number-check phone-number phone-number-toplevel ; else ./runt "$@" phone-number-check phone-number phone-number-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../phone-number-check ../phone-number ../phone-number-toplevel ; else ./runt "$@" ../phone-number-check ../phone-number ../phone-number-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/phone-number/test-phone-number.bat b/exercises/practice/phone-number/test-phone-number.bat index 781a395..8f5010d 100644 --- a/exercises/practice/phone-number/test-phone-number.bat +++ b/exercises/practice/phone-number/test-phone-number.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% phone-number-check phone-number phone-number-toplevel +cd "testlib" +@call runt.bat %options% ..\phone-number-check ..\phone-number ..\phone-number-toplevel +cd .. diff --git a/exercises/practice/phone-number/testlib/phone-number-funcs.rexx b/exercises/practice/phone-number/testlib/phone-number-funcs.rexx new file mode 100644 index 0000000..9a1f1e3 --- /dev/null +++ b/exercises/practice/phone-number/testlib/phone-number-funcs.rexx @@ -0,0 +1,8 @@ +/* phone-number - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/phone-number/runt b/exercises/practice/phone-number/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/phone-number/runt rename to exercises/practice/phone-number/testlib/runt diff --git a/exercises/practice/phone-number/runt.bat b/exercises/practice/phone-number/testlib/runt.bat similarity index 100% rename from exercises/practice/phone-number/runt.bat rename to exercises/practice/phone-number/testlib/runt.bat diff --git a/exercises/practice/phone-number/t1.rexx b/exercises/practice/phone-number/testlib/t1.rexx similarity index 100% rename from exercises/practice/phone-number/t1.rexx rename to exercises/practice/phone-number/testlib/t1.rexx diff --git a/exercises/practice/phone-number/t2.rexx b/exercises/practice/phone-number/testlib/t2.rexx similarity index 100% rename from exercises/practice/phone-number/t2.rexx rename to exercises/practice/phone-number/testlib/t2.rexx diff --git a/exercises/practice/phone-number/t3.rexx b/exercises/practice/phone-number/testlib/t3.rexx similarity index 100% rename from exercises/practice/phone-number/t3.rexx rename to exercises/practice/phone-number/testlib/t3.rexx diff --git a/exercises/practice/prime-factors/.meta/config.json b/exercises/practice/prime-factors/.meta/config.json index ebaa832..bda5e7d 100644 --- a/exercises/practice/prime-factors/.meta/config.json +++ b/exercises/practice/prime-factors/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["prime-factors.rexx"], + "solution": ["prime-factors.rexx", "prime-factors-toplevel.rexx"], "test": ["test-prime-factors"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/prime-factors/test-prime-factors b/exercises/practice/prime-factors/test-prime-factors index 8fb0018..a7e4421 100755 --- a/exercises/practice/prime-factors/test-prime-factors +++ b/exercises/practice/prime-factors/test-prime-factors @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina prime-factors-check prime-factors prime-factors-toplevel ; else ./runt "$@" prime-factors-check prime-factors prime-factors-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../prime-factors-check ../prime-factors ../prime-factors-toplevel ; else ./runt "$@" ../prime-factors-check ../prime-factors ../prime-factors-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/prime-factors/test-prime-factors.bat b/exercises/practice/prime-factors/test-prime-factors.bat index e1b23a0..7b04dd0 100644 --- a/exercises/practice/prime-factors/test-prime-factors.bat +++ b/exercises/practice/prime-factors/test-prime-factors.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% prime-factors-check prime-factors prime-factors-toplevel +cd "testlib" +@call runt.bat %options% ..\prime-factors-check ..\prime-factors ..\prime-factors-toplevel +cd .. diff --git a/exercises/practice/prime-factors/testlib/prime-factors-funcs.rexx b/exercises/practice/prime-factors/testlib/prime-factors-funcs.rexx new file mode 100644 index 0000000..2cd1f71 --- /dev/null +++ b/exercises/practice/prime-factors/testlib/prime-factors-funcs.rexx @@ -0,0 +1,8 @@ +/* prime-factors - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/prime-factors/runt b/exercises/practice/prime-factors/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/prime-factors/runt rename to exercises/practice/prime-factors/testlib/runt diff --git a/exercises/practice/prime-factors/runt.bat b/exercises/practice/prime-factors/testlib/runt.bat similarity index 100% rename from exercises/practice/prime-factors/runt.bat rename to exercises/practice/prime-factors/testlib/runt.bat diff --git a/exercises/practice/prime-factors/t1.rexx b/exercises/practice/prime-factors/testlib/t1.rexx similarity index 100% rename from exercises/practice/prime-factors/t1.rexx rename to exercises/practice/prime-factors/testlib/t1.rexx diff --git a/exercises/practice/prime-factors/t2.rexx b/exercises/practice/prime-factors/testlib/t2.rexx similarity index 100% rename from exercises/practice/prime-factors/t2.rexx rename to exercises/practice/prime-factors/testlib/t2.rexx diff --git a/exercises/practice/prime-factors/t3.rexx b/exercises/practice/prime-factors/testlib/t3.rexx similarity index 100% rename from exercises/practice/prime-factors/t3.rexx rename to exercises/practice/prime-factors/testlib/t3.rexx diff --git a/exercises/practice/protein-translation/.meta/config.json b/exercises/practice/protein-translation/.meta/config.json index 876e84c..3798246 100644 --- a/exercises/practice/protein-translation/.meta/config.json +++ b/exercises/practice/protein-translation/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["protein-translation.rexx"], + "solution": ["protein-translation.rexx", "protein-translation-toplevel.rexx"], "test": ["test-protein-translation"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/protein-translation/test-protein-translation b/exercises/practice/protein-translation/test-protein-translation index 553a6e2..4440269 100755 --- a/exercises/practice/protein-translation/test-protein-translation +++ b/exercises/practice/protein-translation/test-protein-translation @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina protein-translation-check protein-translation protein-translation-toplevel ; else ./runt "$@" protein-translation-check protein-translation protein-translation-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../protein-translation-check ../protein-translation ../protein-translation-toplevel ; else ./runt "$@" ../protein-translation-check ../protein-translation ../protein-translation-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/protein-translation/test-protein-translation.bat b/exercises/practice/protein-translation/test-protein-translation.bat index 9115a16..9a2feda 100644 --- a/exercises/practice/protein-translation/test-protein-translation.bat +++ b/exercises/practice/protein-translation/test-protein-translation.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% protein-translation-check protein-translation protein-translation-toplevel +cd "testlib" +@call runt.bat %options% ..\protein-translation-check ..\protein-translation ..\protein-translation-toplevel +cd .. diff --git a/exercises/practice/protein-translation/testlib/protein-translation-funcs.rexx b/exercises/practice/protein-translation/testlib/protein-translation-funcs.rexx new file mode 100644 index 0000000..e58a230 --- /dev/null +++ b/exercises/practice/protein-translation/testlib/protein-translation-funcs.rexx @@ -0,0 +1,8 @@ +/* protein-translation - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/protein-translation/runt b/exercises/practice/protein-translation/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/protein-translation/runt rename to exercises/practice/protein-translation/testlib/runt diff --git a/exercises/practice/protein-translation/runt.bat b/exercises/practice/protein-translation/testlib/runt.bat similarity index 100% rename from exercises/practice/protein-translation/runt.bat rename to exercises/practice/protein-translation/testlib/runt.bat diff --git a/exercises/practice/protein-translation/t1.rexx b/exercises/practice/protein-translation/testlib/t1.rexx similarity index 100% rename from exercises/practice/protein-translation/t1.rexx rename to exercises/practice/protein-translation/testlib/t1.rexx diff --git a/exercises/practice/protein-translation/t2.rexx b/exercises/practice/protein-translation/testlib/t2.rexx similarity index 100% rename from exercises/practice/protein-translation/t2.rexx rename to exercises/practice/protein-translation/testlib/t2.rexx diff --git a/exercises/practice/protein-translation/t3.rexx b/exercises/practice/protein-translation/testlib/t3.rexx similarity index 100% rename from exercises/practice/protein-translation/t3.rexx rename to exercises/practice/protein-translation/testlib/t3.rexx diff --git a/exercises/practice/proverb/.meta/config.json b/exercises/practice/proverb/.meta/config.json index d40c978..8c08360 100644 --- a/exercises/practice/proverb/.meta/config.json +++ b/exercises/practice/proverb/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["proverb.rexx"], + "solution": ["proverb.rexx", "proverb-toplevel.rexx"], "test": ["test-proverb"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/proverb/test-proverb b/exercises/practice/proverb/test-proverb index 9e7a57d..c912b27 100755 --- a/exercises/practice/proverb/test-proverb +++ b/exercises/practice/proverb/test-proverb @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina proverb-check proverb proverb-toplevel ; else ./runt "$@" proverb-check proverb proverb-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../proverb-check ../proverb ../proverb-toplevel ; else ./runt "$@" ../proverb-check ../proverb ../proverb-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/proverb/test-proverb.bat b/exercises/practice/proverb/test-proverb.bat index 1b4b49b..be12d6f 100644 --- a/exercises/practice/proverb/test-proverb.bat +++ b/exercises/practice/proverb/test-proverb.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% proverb-check proverb proverb-toplevel +cd "testlib" +@call runt.bat %options% ..\proverb-check ..\proverb ..\proverb-toplevel +cd .. diff --git a/exercises/practice/proverb/testlib/proverb-funcs.rexx b/exercises/practice/proverb/testlib/proverb-funcs.rexx new file mode 100644 index 0000000..cb7f638 --- /dev/null +++ b/exercises/practice/proverb/testlib/proverb-funcs.rexx @@ -0,0 +1,8 @@ +/* proverb - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/proverb/runt b/exercises/practice/proverb/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/proverb/runt rename to exercises/practice/proverb/testlib/runt diff --git a/exercises/practice/proverb/runt.bat b/exercises/practice/proverb/testlib/runt.bat similarity index 100% rename from exercises/practice/proverb/runt.bat rename to exercises/practice/proverb/testlib/runt.bat diff --git a/exercises/practice/proverb/t1.rexx b/exercises/practice/proverb/testlib/t1.rexx similarity index 100% rename from exercises/practice/proverb/t1.rexx rename to exercises/practice/proverb/testlib/t1.rexx diff --git a/exercises/practice/proverb/t2.rexx b/exercises/practice/proverb/testlib/t2.rexx similarity index 100% rename from exercises/practice/proverb/t2.rexx rename to exercises/practice/proverb/testlib/t2.rexx diff --git a/exercises/practice/proverb/t3.rexx b/exercises/practice/proverb/testlib/t3.rexx similarity index 100% rename from exercises/practice/proverb/t3.rexx rename to exercises/practice/proverb/testlib/t3.rexx diff --git a/exercises/practice/queen-attack/.meta/config.json b/exercises/practice/queen-attack/.meta/config.json index 6e99762..5b32e8a 100644 --- a/exercises/practice/queen-attack/.meta/config.json +++ b/exercises/practice/queen-attack/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["queen-attack.rexx"], + "solution": ["queen-attack.rexx", "queen-attack-toplevel.rexx"], "test": ["test-queen-attack"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/queen-attack/test-queen-attack b/exercises/practice/queen-attack/test-queen-attack index 3f5c478..5494f59 100755 --- a/exercises/practice/queen-attack/test-queen-attack +++ b/exercises/practice/queen-attack/test-queen-attack @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina queen-attack-check queen-attack queen-attack-toplevel ; else ./runt "$@" queen-attack-check queen-attack queen-attack-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../queen-attack-check ../queen-attack ../queen-attack-toplevel ; else ./runt "$@" ../queen-attack-check ../queen-attack ../queen-attack-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/queen-attack/test-queen-attack.bat b/exercises/practice/queen-attack/test-queen-attack.bat index c4013d3..e6b531f 100644 --- a/exercises/practice/queen-attack/test-queen-attack.bat +++ b/exercises/practice/queen-attack/test-queen-attack.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% queen-attack-check queen-attack queen-attack-toplevel +cd "testlib" +@call runt.bat %options% ..\queen-attack-check ..\queen-attack ..\queen-attack-toplevel +cd .. diff --git a/exercises/practice/queen-attack/testlib/queen-attack-funcs.rexx b/exercises/practice/queen-attack/testlib/queen-attack-funcs.rexx new file mode 100644 index 0000000..ad5f7a6 --- /dev/null +++ b/exercises/practice/queen-attack/testlib/queen-attack-funcs.rexx @@ -0,0 +1,8 @@ +/* queen-attack - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/queen-attack/runt b/exercises/practice/queen-attack/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/queen-attack/runt rename to exercises/practice/queen-attack/testlib/runt diff --git a/exercises/practice/queen-attack/runt.bat b/exercises/practice/queen-attack/testlib/runt.bat similarity index 100% rename from exercises/practice/queen-attack/runt.bat rename to exercises/practice/queen-attack/testlib/runt.bat diff --git a/exercises/practice/queen-attack/t1.rexx b/exercises/practice/queen-attack/testlib/t1.rexx similarity index 100% rename from exercises/practice/queen-attack/t1.rexx rename to exercises/practice/queen-attack/testlib/t1.rexx diff --git a/exercises/practice/queen-attack/t2.rexx b/exercises/practice/queen-attack/testlib/t2.rexx similarity index 100% rename from exercises/practice/queen-attack/t2.rexx rename to exercises/practice/queen-attack/testlib/t2.rexx diff --git a/exercises/practice/queen-attack/t3.rexx b/exercises/practice/queen-attack/testlib/t3.rexx similarity index 100% rename from exercises/practice/queen-attack/t3.rexx rename to exercises/practice/queen-attack/testlib/t3.rexx diff --git a/exercises/practice/raindrops/.meta/config.json b/exercises/practice/raindrops/.meta/config.json index 5b1e9e1..b44d7b4 100644 --- a/exercises/practice/raindrops/.meta/config.json +++ b/exercises/practice/raindrops/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["raindrops.rexx"], + "solution": ["raindrops.rexx", "raindrops-toplevel.rexx"], "test": ["test-raindrops"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/raindrops/test-raindrops b/exercises/practice/raindrops/test-raindrops index 7aceebb..0487c8d 100755 --- a/exercises/practice/raindrops/test-raindrops +++ b/exercises/practice/raindrops/test-raindrops @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina raindrops-check raindrops raindrops-toplevel ; else ./runt "$@" raindrops-check raindrops raindrops-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../raindrops-check ../raindrops ../raindrops-toplevel ; else ./runt "$@" ../raindrops-check ../raindrops ../raindrops-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/raindrops/test-raindrops.bat b/exercises/practice/raindrops/test-raindrops.bat index fc030d5..d3dbeb2 100644 --- a/exercises/practice/raindrops/test-raindrops.bat +++ b/exercises/practice/raindrops/test-raindrops.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% raindrops-check raindrops raindrops-toplevel +cd "testlib" +@call runt.bat %options% ..\raindrops-check ..\raindrops ..\raindrops-toplevel +cd .. diff --git a/exercises/practice/raindrops/testlib/raindrops-funcs.rexx b/exercises/practice/raindrops/testlib/raindrops-funcs.rexx new file mode 100644 index 0000000..813c286 --- /dev/null +++ b/exercises/practice/raindrops/testlib/raindrops-funcs.rexx @@ -0,0 +1,8 @@ +/* raindrops - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/raindrops/runt b/exercises/practice/raindrops/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/raindrops/runt rename to exercises/practice/raindrops/testlib/runt diff --git a/exercises/practice/raindrops/runt.bat b/exercises/practice/raindrops/testlib/runt.bat similarity index 100% rename from exercises/practice/raindrops/runt.bat rename to exercises/practice/raindrops/testlib/runt.bat diff --git a/exercises/practice/raindrops/t1.rexx b/exercises/practice/raindrops/testlib/t1.rexx similarity index 100% rename from exercises/practice/raindrops/t1.rexx rename to exercises/practice/raindrops/testlib/t1.rexx diff --git a/exercises/practice/raindrops/t2.rexx b/exercises/practice/raindrops/testlib/t2.rexx similarity index 100% rename from exercises/practice/raindrops/t2.rexx rename to exercises/practice/raindrops/testlib/t2.rexx diff --git a/exercises/practice/raindrops/t3.rexx b/exercises/practice/raindrops/testlib/t3.rexx similarity index 100% rename from exercises/practice/raindrops/t3.rexx rename to exercises/practice/raindrops/testlib/t3.rexx diff --git a/exercises/practice/resistor-color-duo/.meta/config.json b/exercises/practice/resistor-color-duo/.meta/config.json index 03be2d0..4e630e8 100644 --- a/exercises/practice/resistor-color-duo/.meta/config.json +++ b/exercises/practice/resistor-color-duo/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["resistor-color-duo.rexx"], + "solution": ["resistor-color-duo.rexx", "resistor-color-duo-toplevel.rexx"], "test": ["test-resistor-color-duo"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/resistor-color-duo/test-resistor-color-duo b/exercises/practice/resistor-color-duo/test-resistor-color-duo index 2cf59c5..0d00596 100755 --- a/exercises/practice/resistor-color-duo/test-resistor-color-duo +++ b/exercises/practice/resistor-color-duo/test-resistor-color-duo @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina resistor-color-duo-check resistor-color-duo resistor-color-duo-toplevel ; else ./runt "$@" resistor-color-duo-check resistor-color-duo resistor-color-duo-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../resistor-color-duo-check ../resistor-color-duo ../resistor-color-duo-toplevel ; else ./runt "$@" ../resistor-color-duo-check ../resistor-color-duo ../resistor-color-duo-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/resistor-color-duo/test-resistor-color-duo.bat b/exercises/practice/resistor-color-duo/test-resistor-color-duo.bat index 6a64eca..85f3328 100644 --- a/exercises/practice/resistor-color-duo/test-resistor-color-duo.bat +++ b/exercises/practice/resistor-color-duo/test-resistor-color-duo.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% resistor-color-duo-check resistor-color-duo resistor-color-duo-toplevel +cd "testlib" +@call runt.bat %options% ..\resistor-color-duo-check ..\resistor-color-duo ..\resistor-color-duo-toplevel +cd .. diff --git a/exercises/practice/resistor-color-duo/testlib/resistor-color-duo-funcs.rexx b/exercises/practice/resistor-color-duo/testlib/resistor-color-duo-funcs.rexx new file mode 100644 index 0000000..2d5dbc4 --- /dev/null +++ b/exercises/practice/resistor-color-duo/testlib/resistor-color-duo-funcs.rexx @@ -0,0 +1,8 @@ +/* resistor-color-duo - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/resistor-color-duo/runt b/exercises/practice/resistor-color-duo/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/resistor-color-duo/runt rename to exercises/practice/resistor-color-duo/testlib/runt diff --git a/exercises/practice/resistor-color-duo/runt.bat b/exercises/practice/resistor-color-duo/testlib/runt.bat similarity index 100% rename from exercises/practice/resistor-color-duo/runt.bat rename to exercises/practice/resistor-color-duo/testlib/runt.bat diff --git a/exercises/practice/resistor-color-duo/t1.rexx b/exercises/practice/resistor-color-duo/testlib/t1.rexx similarity index 100% rename from exercises/practice/resistor-color-duo/t1.rexx rename to exercises/practice/resistor-color-duo/testlib/t1.rexx diff --git a/exercises/practice/resistor-color-duo/t2.rexx b/exercises/practice/resistor-color-duo/testlib/t2.rexx similarity index 100% rename from exercises/practice/resistor-color-duo/t2.rexx rename to exercises/practice/resistor-color-duo/testlib/t2.rexx diff --git a/exercises/practice/resistor-color-duo/t3.rexx b/exercises/practice/resistor-color-duo/testlib/t3.rexx similarity index 100% rename from exercises/practice/resistor-color-duo/t3.rexx rename to exercises/practice/resistor-color-duo/testlib/t3.rexx diff --git a/exercises/practice/resistor-color-trio/.meta/config.json b/exercises/practice/resistor-color-trio/.meta/config.json index 3be448b..a809676 100644 --- a/exercises/practice/resistor-color-trio/.meta/config.json +++ b/exercises/practice/resistor-color-trio/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["resistor-color-trio.rexx"], + "solution": ["resistor-color-trio.rexx", "resistor-color-trio-toplevel.rexx"], "test": ["test-resistor-color-trio"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/resistor-color-trio/test-resistor-color-trio b/exercises/practice/resistor-color-trio/test-resistor-color-trio index 62110cb..30b691e 100755 --- a/exercises/practice/resistor-color-trio/test-resistor-color-trio +++ b/exercises/practice/resistor-color-trio/test-resistor-color-trio @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina resistor-color-trio-check resistor-color-trio resistor-color-trio-toplevel ; else ./runt "$@" resistor-color-trio-check resistor-color-trio resistor-color-trio-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../resistor-color-trio-check ../resistor-color-trio ../resistor-color-trio-toplevel ; else ./runt "$@" ../resistor-color-trio-check ../resistor-color-trio ../resistor-color-trio-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/resistor-color-trio/test-resistor-color-trio.bat b/exercises/practice/resistor-color-trio/test-resistor-color-trio.bat index 557fcc1..2ec2e25 100644 --- a/exercises/practice/resistor-color-trio/test-resistor-color-trio.bat +++ b/exercises/practice/resistor-color-trio/test-resistor-color-trio.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% resistor-color-trio-check resistor-color-trio resistor-color-trio-toplevel +cd "testlib" +@call runt.bat %options% ..\resistor-color-trio-check ..\resistor-color-trio ..\resistor-color-trio-toplevel +cd .. diff --git a/exercises/practice/resistor-color-trio/testlib/resistor-color-trio-funcs.rexx b/exercises/practice/resistor-color-trio/testlib/resistor-color-trio-funcs.rexx new file mode 100644 index 0000000..dbef449 --- /dev/null +++ b/exercises/practice/resistor-color-trio/testlib/resistor-color-trio-funcs.rexx @@ -0,0 +1,8 @@ +/* resistor-color-trio - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/resistor-color-trio/runt b/exercises/practice/resistor-color-trio/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/resistor-color-trio/runt rename to exercises/practice/resistor-color-trio/testlib/runt diff --git a/exercises/practice/resistor-color-trio/runt.bat b/exercises/practice/resistor-color-trio/testlib/runt.bat similarity index 100% rename from exercises/practice/resistor-color-trio/runt.bat rename to exercises/practice/resistor-color-trio/testlib/runt.bat diff --git a/exercises/practice/resistor-color-trio/t1.rexx b/exercises/practice/resistor-color-trio/testlib/t1.rexx similarity index 100% rename from exercises/practice/resistor-color-trio/t1.rexx rename to exercises/practice/resistor-color-trio/testlib/t1.rexx diff --git a/exercises/practice/resistor-color-trio/t2.rexx b/exercises/practice/resistor-color-trio/testlib/t2.rexx similarity index 100% rename from exercises/practice/resistor-color-trio/t2.rexx rename to exercises/practice/resistor-color-trio/testlib/t2.rexx diff --git a/exercises/practice/resistor-color-trio/t3.rexx b/exercises/practice/resistor-color-trio/testlib/t3.rexx similarity index 100% rename from exercises/practice/resistor-color-trio/t3.rexx rename to exercises/practice/resistor-color-trio/testlib/t3.rexx diff --git a/exercises/practice/resistor-color/.meta/config.json b/exercises/practice/resistor-color/.meta/config.json index 705913c..fc3ca65 100644 --- a/exercises/practice/resistor-color/.meta/config.json +++ b/exercises/practice/resistor-color/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["resistor-color.rexx"], + "solution": ["resistor-color.rexx", "resistor-color-toplevel.rexx"], "test": ["test-resistor-color"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/resistor-color/test-resistor-color b/exercises/practice/resistor-color/test-resistor-color index 925ae8b..0df632d 100755 --- a/exercises/practice/resistor-color/test-resistor-color +++ b/exercises/practice/resistor-color/test-resistor-color @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina resistor-color-check resistor-color resistor-color-toplevel ; else ./runt "$@" resistor-color-check resistor-color resistor-color-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../resistor-color-check ../resistor-color ../resistor-color-toplevel ; else ./runt "$@" ../resistor-color-check ../resistor-color ../resistor-color-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/resistor-color/test-resistor-color.bat b/exercises/practice/resistor-color/test-resistor-color.bat index 88f4884..ba6998b 100644 --- a/exercises/practice/resistor-color/test-resistor-color.bat +++ b/exercises/practice/resistor-color/test-resistor-color.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% resistor-color-check resistor-color resistor-color-toplevel +cd "testlib" +@call runt.bat %options% ..\resistor-color-check ..\resistor-color ..\resistor-color-toplevel +cd .. diff --git a/exercises/practice/resistor-color/testlib/resistor-color-funcs.rexx b/exercises/practice/resistor-color/testlib/resistor-color-funcs.rexx new file mode 100644 index 0000000..b2d05de --- /dev/null +++ b/exercises/practice/resistor-color/testlib/resistor-color-funcs.rexx @@ -0,0 +1,8 @@ +/* resistor-color - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/resistor-color/runt b/exercises/practice/resistor-color/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/resistor-color/runt rename to exercises/practice/resistor-color/testlib/runt diff --git a/exercises/practice/resistor-color/runt.bat b/exercises/practice/resistor-color/testlib/runt.bat similarity index 100% rename from exercises/practice/resistor-color/runt.bat rename to exercises/practice/resistor-color/testlib/runt.bat diff --git a/exercises/practice/resistor-color/t1.rexx b/exercises/practice/resistor-color/testlib/t1.rexx similarity index 100% rename from exercises/practice/resistor-color/t1.rexx rename to exercises/practice/resistor-color/testlib/t1.rexx diff --git a/exercises/practice/resistor-color/t2.rexx b/exercises/practice/resistor-color/testlib/t2.rexx similarity index 100% rename from exercises/practice/resistor-color/t2.rexx rename to exercises/practice/resistor-color/testlib/t2.rexx diff --git a/exercises/practice/resistor-color/t3.rexx b/exercises/practice/resistor-color/testlib/t3.rexx similarity index 100% rename from exercises/practice/resistor-color/t3.rexx rename to exercises/practice/resistor-color/testlib/t3.rexx diff --git a/exercises/practice/reverse-string/.meta/config.json b/exercises/practice/reverse-string/.meta/config.json index 797792e..b2efe59 100644 --- a/exercises/practice/reverse-string/.meta/config.json +++ b/exercises/practice/reverse-string/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["reverse-string.rexx"], + "solution": ["reverse-string.rexx", "reverse-string-toplevel.rexx"], "test": ["test-reverse-string"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/reverse-string/test-reverse-string b/exercises/practice/reverse-string/test-reverse-string index e1979ce..6428db7 100755 --- a/exercises/practice/reverse-string/test-reverse-string +++ b/exercises/practice/reverse-string/test-reverse-string @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina reverse-string-check reverse-string reverse-string-toplevel ; else ./runt "$@" reverse-string-check reverse-string reverse-string-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../reverse-string-check ../reverse-string ../reverse-string-toplevel ; else ./runt "$@" ../reverse-string-check ../reverse-string ../reverse-string-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/reverse-string/test-reverse-string.bat b/exercises/practice/reverse-string/test-reverse-string.bat index 8fbf107..b775723 100644 --- a/exercises/practice/reverse-string/test-reverse-string.bat +++ b/exercises/practice/reverse-string/test-reverse-string.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% reverse-string-check reverse-string reverse-string-toplevel +cd "testlib" +@call runt.bat %options% ..\reverse-string-check ..\reverse-string ..\reverse-string-toplevel +cd .. diff --git a/exercises/practice/reverse-string/testlib/reverse-string-funcs.rexx b/exercises/practice/reverse-string/testlib/reverse-string-funcs.rexx new file mode 100644 index 0000000..e066317 --- /dev/null +++ b/exercises/practice/reverse-string/testlib/reverse-string-funcs.rexx @@ -0,0 +1,8 @@ +/* reverse-string - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/reverse-string/runt b/exercises/practice/reverse-string/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/reverse-string/runt rename to exercises/practice/reverse-string/testlib/runt diff --git a/exercises/practice/reverse-string/runt.bat b/exercises/practice/reverse-string/testlib/runt.bat similarity index 100% rename from exercises/practice/reverse-string/runt.bat rename to exercises/practice/reverse-string/testlib/runt.bat diff --git a/exercises/practice/reverse-string/t1.rexx b/exercises/practice/reverse-string/testlib/t1.rexx similarity index 100% rename from exercises/practice/reverse-string/t1.rexx rename to exercises/practice/reverse-string/testlib/t1.rexx diff --git a/exercises/practice/reverse-string/t2.rexx b/exercises/practice/reverse-string/testlib/t2.rexx similarity index 100% rename from exercises/practice/reverse-string/t2.rexx rename to exercises/practice/reverse-string/testlib/t2.rexx diff --git a/exercises/practice/reverse-string/t3.rexx b/exercises/practice/reverse-string/testlib/t3.rexx similarity index 100% rename from exercises/practice/reverse-string/t3.rexx rename to exercises/practice/reverse-string/testlib/t3.rexx diff --git a/exercises/practice/rna-transcription/.meta/config.json b/exercises/practice/rna-transcription/.meta/config.json index a7b10e9..7e2bdb4 100644 --- a/exercises/practice/rna-transcription/.meta/config.json +++ b/exercises/practice/rna-transcription/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["rna-transcription.rexx"], + "solution": ["rna-transcription.rexx", "rna-transcription-toplevel.rexx"], "test": ["test-rna-transcription"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/rna-transcription/test-rna-transcription b/exercises/practice/rna-transcription/test-rna-transcription index eb89620..162f08b 100755 --- a/exercises/practice/rna-transcription/test-rna-transcription +++ b/exercises/practice/rna-transcription/test-rna-transcription @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina rna-transcription-check rna-transcription rna-transcription-toplevel ; else ./runt "$@" rna-transcription-check rna-transcription rna-transcription-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../rna-transcription-check ../rna-transcription ../rna-transcription-toplevel ; else ./runt "$@" ../rna-transcription-check ../rna-transcription ../rna-transcription-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/rna-transcription/test-rna-transcription.bat b/exercises/practice/rna-transcription/test-rna-transcription.bat index 152228e..5abe57c 100644 --- a/exercises/practice/rna-transcription/test-rna-transcription.bat +++ b/exercises/practice/rna-transcription/test-rna-transcription.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% rna-transcription-check rna-transcription rna-transcription-toplevel +cd "testlib" +@call runt.bat %options% ..\rna-transcription-check ..\rna-transcription ..\rna-transcription-toplevel +cd .. diff --git a/exercises/practice/rna-transcription/testlib/rna-transcription-funcs.rexx b/exercises/practice/rna-transcription/testlib/rna-transcription-funcs.rexx new file mode 100644 index 0000000..c173a19 --- /dev/null +++ b/exercises/practice/rna-transcription/testlib/rna-transcription-funcs.rexx @@ -0,0 +1,8 @@ +/* rna-transcription - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/rna-transcription/runt b/exercises/practice/rna-transcription/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/rna-transcription/runt rename to exercises/practice/rna-transcription/testlib/runt diff --git a/exercises/practice/rna-transcription/runt.bat b/exercises/practice/rna-transcription/testlib/runt.bat similarity index 100% rename from exercises/practice/rna-transcription/runt.bat rename to exercises/practice/rna-transcription/testlib/runt.bat diff --git a/exercises/practice/rna-transcription/t1.rexx b/exercises/practice/rna-transcription/testlib/t1.rexx similarity index 100% rename from exercises/practice/rna-transcription/t1.rexx rename to exercises/practice/rna-transcription/testlib/t1.rexx diff --git a/exercises/practice/rna-transcription/t2.rexx b/exercises/practice/rna-transcription/testlib/t2.rexx similarity index 100% rename from exercises/practice/rna-transcription/t2.rexx rename to exercises/practice/rna-transcription/testlib/t2.rexx diff --git a/exercises/practice/rna-transcription/t3.rexx b/exercises/practice/rna-transcription/testlib/t3.rexx similarity index 100% rename from exercises/practice/rna-transcription/t3.rexx rename to exercises/practice/rna-transcription/testlib/t3.rexx diff --git a/exercises/practice/roman-numerals/.meta/config.json b/exercises/practice/roman-numerals/.meta/config.json index 0c9584f..cbe95e8 100644 --- a/exercises/practice/roman-numerals/.meta/config.json +++ b/exercises/practice/roman-numerals/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["roman-numerals.rexx"], + "solution": ["roman-numerals.rexx", "roman-numerals-toplevel.rexx"], "test": ["test-roman-numerals"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/roman-numerals/test-roman-numerals b/exercises/practice/roman-numerals/test-roman-numerals index f912ab6..da85229 100755 --- a/exercises/practice/roman-numerals/test-roman-numerals +++ b/exercises/practice/roman-numerals/test-roman-numerals @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina roman-numerals-check roman-numerals roman-numerals-toplevel ; else ./runt "$@" roman-numerals-check roman-numerals roman-numerals-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../roman-numerals-check ../roman-numerals ../roman-numerals-toplevel ; else ./runt "$@" ../roman-numerals-check ../roman-numerals ../roman-numerals-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/roman-numerals/test-roman-numerals.bat b/exercises/practice/roman-numerals/test-roman-numerals.bat index cc491a7..6ea27d2 100644 --- a/exercises/practice/roman-numerals/test-roman-numerals.bat +++ b/exercises/practice/roman-numerals/test-roman-numerals.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% roman-numerals-check roman-numerals roman-numerals-toplevel +cd "testlib" +@call runt.bat %options% ..\roman-numerals-check ..\roman-numerals ..\roman-numerals-toplevel +cd .. diff --git a/exercises/practice/roman-numerals/testlib/roman-numerals-funcs.rexx b/exercises/practice/roman-numerals/testlib/roman-numerals-funcs.rexx new file mode 100644 index 0000000..6955859 --- /dev/null +++ b/exercises/practice/roman-numerals/testlib/roman-numerals-funcs.rexx @@ -0,0 +1,8 @@ +/* roman-numerals - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/roman-numerals/runt b/exercises/practice/roman-numerals/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/roman-numerals/runt rename to exercises/practice/roman-numerals/testlib/runt diff --git a/exercises/practice/roman-numerals/runt.bat b/exercises/practice/roman-numerals/testlib/runt.bat similarity index 100% rename from exercises/practice/roman-numerals/runt.bat rename to exercises/practice/roman-numerals/testlib/runt.bat diff --git a/exercises/practice/roman-numerals/t1.rexx b/exercises/practice/roman-numerals/testlib/t1.rexx similarity index 100% rename from exercises/practice/roman-numerals/t1.rexx rename to exercises/practice/roman-numerals/testlib/t1.rexx diff --git a/exercises/practice/roman-numerals/t2.rexx b/exercises/practice/roman-numerals/testlib/t2.rexx similarity index 100% rename from exercises/practice/roman-numerals/t2.rexx rename to exercises/practice/roman-numerals/testlib/t2.rexx diff --git a/exercises/practice/roman-numerals/t3.rexx b/exercises/practice/roman-numerals/testlib/t3.rexx similarity index 100% rename from exercises/practice/roman-numerals/t3.rexx rename to exercises/practice/roman-numerals/testlib/t3.rexx diff --git a/exercises/practice/rotational-cipher/.meta/config.json b/exercises/practice/rotational-cipher/.meta/config.json index 33eb9e3..848f586 100644 --- a/exercises/practice/rotational-cipher/.meta/config.json +++ b/exercises/practice/rotational-cipher/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["rotational-cipher.rexx"], + "solution": ["rotational-cipher.rexx", "rotational-cipher-toplevel.rexx"], "test": ["test-rotational-cipher"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/rotational-cipher/test-rotational-cipher b/exercises/practice/rotational-cipher/test-rotational-cipher index d5737cd..6ef34fc 100755 --- a/exercises/practice/rotational-cipher/test-rotational-cipher +++ b/exercises/practice/rotational-cipher/test-rotational-cipher @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina rotational-cipher-check rotational-cipher rotational-cipher-toplevel ; else ./runt "$@" rotational-cipher-check rotational-cipher rotational-cipher-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../rotational-cipher-check ../rotational-cipher ../rotational-cipher-toplevel ; else ./runt "$@" ../rotational-cipher-check ../rotational-cipher ../rotational-cipher-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/rotational-cipher/test-rotational-cipher.bat b/exercises/practice/rotational-cipher/test-rotational-cipher.bat index e1b931e..76135c4 100644 --- a/exercises/practice/rotational-cipher/test-rotational-cipher.bat +++ b/exercises/practice/rotational-cipher/test-rotational-cipher.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% rotational-cipher-check rotational-cipher rotational-cipher-toplevel +cd "testlib" +@call runt.bat %options% ..\rotational-cipher-check ..\rotational-cipher ..\rotational-cipher-toplevel +cd .. diff --git a/exercises/practice/rotational-cipher/testlib/rotational-cipher-funcs.rexx b/exercises/practice/rotational-cipher/testlib/rotational-cipher-funcs.rexx new file mode 100644 index 0000000..1b03f50 --- /dev/null +++ b/exercises/practice/rotational-cipher/testlib/rotational-cipher-funcs.rexx @@ -0,0 +1,8 @@ +/* rotational-cipher - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/rotational-cipher/runt b/exercises/practice/rotational-cipher/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/rotational-cipher/runt rename to exercises/practice/rotational-cipher/testlib/runt diff --git a/exercises/practice/rotational-cipher/runt.bat b/exercises/practice/rotational-cipher/testlib/runt.bat similarity index 100% rename from exercises/practice/rotational-cipher/runt.bat rename to exercises/practice/rotational-cipher/testlib/runt.bat diff --git a/exercises/practice/rotational-cipher/t1.rexx b/exercises/practice/rotational-cipher/testlib/t1.rexx similarity index 100% rename from exercises/practice/rotational-cipher/t1.rexx rename to exercises/practice/rotational-cipher/testlib/t1.rexx diff --git a/exercises/practice/rotational-cipher/t2.rexx b/exercises/practice/rotational-cipher/testlib/t2.rexx similarity index 100% rename from exercises/practice/rotational-cipher/t2.rexx rename to exercises/practice/rotational-cipher/testlib/t2.rexx diff --git a/exercises/practice/rotational-cipher/t3.rexx b/exercises/practice/rotational-cipher/testlib/t3.rexx similarity index 100% rename from exercises/practice/rotational-cipher/t3.rexx rename to exercises/practice/rotational-cipher/testlib/t3.rexx diff --git a/exercises/practice/saddle-points/.meta/config.json b/exercises/practice/saddle-points/.meta/config.json index cf865b0..29c7c50 100644 --- a/exercises/practice/saddle-points/.meta/config.json +++ b/exercises/practice/saddle-points/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["saddle-points.rexx"], + "solution": ["saddle-points.rexx", "saddle-points-toplevel.rexx"], "test": ["test-saddle-points"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/saddle-points/test-saddle-points b/exercises/practice/saddle-points/test-saddle-points index f5a22e7..9f75daa 100755 --- a/exercises/practice/saddle-points/test-saddle-points +++ b/exercises/practice/saddle-points/test-saddle-points @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina saddle-points-check saddle-points saddle-points-toplevel ; else ./runt "$@" saddle-points-check saddle-points saddle-points-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../saddle-points-check ../saddle-points ../saddle-points-toplevel ; else ./runt "$@" ../saddle-points-check ../saddle-points ../saddle-points-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/saddle-points/test-saddle-points.bat b/exercises/practice/saddle-points/test-saddle-points.bat index bb65863..d40659a 100644 --- a/exercises/practice/saddle-points/test-saddle-points.bat +++ b/exercises/practice/saddle-points/test-saddle-points.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% saddle-points-check saddle-points saddle-points-toplevel +cd "testlib" +@call runt.bat %options% ..\saddle-points-check ..\saddle-points ..\saddle-points-toplevel +cd .. diff --git a/exercises/practice/saddle-points/runt b/exercises/practice/saddle-points/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/saddle-points/runt rename to exercises/practice/saddle-points/testlib/runt diff --git a/exercises/practice/saddle-points/runt.bat b/exercises/practice/saddle-points/testlib/runt.bat similarity index 100% rename from exercises/practice/saddle-points/runt.bat rename to exercises/practice/saddle-points/testlib/runt.bat diff --git a/exercises/practice/saddle-points/testlib/saddle-points-funcs.rexx b/exercises/practice/saddle-points/testlib/saddle-points-funcs.rexx new file mode 100644 index 0000000..d5513f2 --- /dev/null +++ b/exercises/practice/saddle-points/testlib/saddle-points-funcs.rexx @@ -0,0 +1,8 @@ +/* saddle-points - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/saddle-points/t1.rexx b/exercises/practice/saddle-points/testlib/t1.rexx similarity index 100% rename from exercises/practice/saddle-points/t1.rexx rename to exercises/practice/saddle-points/testlib/t1.rexx diff --git a/exercises/practice/saddle-points/t2.rexx b/exercises/practice/saddle-points/testlib/t2.rexx similarity index 100% rename from exercises/practice/saddle-points/t2.rexx rename to exercises/practice/saddle-points/testlib/t2.rexx diff --git a/exercises/practice/saddle-points/t3.rexx b/exercises/practice/saddle-points/testlib/t3.rexx similarity index 100% rename from exercises/practice/saddle-points/t3.rexx rename to exercises/practice/saddle-points/testlib/t3.rexx diff --git a/exercises/practice/scrabble-score/.meta/config.json b/exercises/practice/scrabble-score/.meta/config.json index 95c8b02..573e982 100644 --- a/exercises/practice/scrabble-score/.meta/config.json +++ b/exercises/practice/scrabble-score/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["scrabble-score.rexx"], + "solution": ["scrabble-score.rexx", "scrabble-score-toplevel.rexx"], "test": ["test-scrabble-score"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/scrabble-score/test-scrabble-score b/exercises/practice/scrabble-score/test-scrabble-score index 3bbedb1..60aab35 100755 --- a/exercises/practice/scrabble-score/test-scrabble-score +++ b/exercises/practice/scrabble-score/test-scrabble-score @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina scrabble-score-check scrabble-score scrabble-score-toplevel ; else ./runt "$@" scrabble-score-check scrabble-score scrabble-score-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../scrabble-score-check ../scrabble-score ../scrabble-score-toplevel ; else ./runt "$@" ../scrabble-score-check ../scrabble-score ../scrabble-score-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/scrabble-score/test-scrabble-score.bat b/exercises/practice/scrabble-score/test-scrabble-score.bat index 9a52cf5..c2f82b1 100644 --- a/exercises/practice/scrabble-score/test-scrabble-score.bat +++ b/exercises/practice/scrabble-score/test-scrabble-score.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% scrabble-score-check scrabble-score scrabble-score-toplevel +cd "testlib" +@call runt.bat %options% ..\scrabble-score-check ..\scrabble-score ..\scrabble-score-toplevel +cd .. diff --git a/exercises/practice/scrabble-score/runt b/exercises/practice/scrabble-score/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/scrabble-score/runt rename to exercises/practice/scrabble-score/testlib/runt diff --git a/exercises/practice/scrabble-score/runt.bat b/exercises/practice/scrabble-score/testlib/runt.bat similarity index 100% rename from exercises/practice/scrabble-score/runt.bat rename to exercises/practice/scrabble-score/testlib/runt.bat diff --git a/exercises/practice/scrabble-score/testlib/scrabble-score-funcs.rexx b/exercises/practice/scrabble-score/testlib/scrabble-score-funcs.rexx new file mode 100644 index 0000000..389827e --- /dev/null +++ b/exercises/practice/scrabble-score/testlib/scrabble-score-funcs.rexx @@ -0,0 +1,8 @@ +/* scrabble-score - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/scrabble-score/t1.rexx b/exercises/practice/scrabble-score/testlib/t1.rexx similarity index 100% rename from exercises/practice/scrabble-score/t1.rexx rename to exercises/practice/scrabble-score/testlib/t1.rexx diff --git a/exercises/practice/scrabble-score/t2.rexx b/exercises/practice/scrabble-score/testlib/t2.rexx similarity index 100% rename from exercises/practice/scrabble-score/t2.rexx rename to exercises/practice/scrabble-score/testlib/t2.rexx diff --git a/exercises/practice/scrabble-score/t3.rexx b/exercises/practice/scrabble-score/testlib/t3.rexx similarity index 100% rename from exercises/practice/scrabble-score/t3.rexx rename to exercises/practice/scrabble-score/testlib/t3.rexx diff --git a/exercises/practice/secret-handshake/.meta/config.json b/exercises/practice/secret-handshake/.meta/config.json index b23995b..8a324f7 100644 --- a/exercises/practice/secret-handshake/.meta/config.json +++ b/exercises/practice/secret-handshake/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["secret-handshake.rexx"], + "solution": ["secret-handshake.rexx", "secret-handshake-toplevel.rexx"], "test": ["test-secret-handshake"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/secret-handshake/test-secret-handshake b/exercises/practice/secret-handshake/test-secret-handshake index 586089f..842de15 100755 --- a/exercises/practice/secret-handshake/test-secret-handshake +++ b/exercises/practice/secret-handshake/test-secret-handshake @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina secret-handshake-check secret-handshake secret-handshake-toplevel ; else ./runt "$@" secret-handshake-check secret-handshake secret-handshake-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../secret-handshake-check ../secret-handshake ../secret-handshake-toplevel ; else ./runt "$@" ../secret-handshake-check ../secret-handshake ../secret-handshake-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/secret-handshake/test-secret-handshake.bat b/exercises/practice/secret-handshake/test-secret-handshake.bat index ff3b528..ece55c1 100644 --- a/exercises/practice/secret-handshake/test-secret-handshake.bat +++ b/exercises/practice/secret-handshake/test-secret-handshake.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% secret-handshake-check secret-handshake secret-handshake-toplevel +cd "testlib" +@call runt.bat %options% ..\secret-handshake-check ..\secret-handshake ..\secret-handshake-toplevel +cd .. diff --git a/exercises/practice/secret-handshake/runt b/exercises/practice/secret-handshake/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/secret-handshake/runt rename to exercises/practice/secret-handshake/testlib/runt diff --git a/exercises/practice/secret-handshake/runt.bat b/exercises/practice/secret-handshake/testlib/runt.bat similarity index 100% rename from exercises/practice/secret-handshake/runt.bat rename to exercises/practice/secret-handshake/testlib/runt.bat diff --git a/exercises/practice/secret-handshake/testlib/secret-handshake-funcs.rexx b/exercises/practice/secret-handshake/testlib/secret-handshake-funcs.rexx new file mode 100644 index 0000000..d64bd5c --- /dev/null +++ b/exercises/practice/secret-handshake/testlib/secret-handshake-funcs.rexx @@ -0,0 +1,8 @@ +/* secret-handshake - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/secret-handshake/t1.rexx b/exercises/practice/secret-handshake/testlib/t1.rexx similarity index 100% rename from exercises/practice/secret-handshake/t1.rexx rename to exercises/practice/secret-handshake/testlib/t1.rexx diff --git a/exercises/practice/secret-handshake/t2.rexx b/exercises/practice/secret-handshake/testlib/t2.rexx similarity index 100% rename from exercises/practice/secret-handshake/t2.rexx rename to exercises/practice/secret-handshake/testlib/t2.rexx diff --git a/exercises/practice/secret-handshake/t3.rexx b/exercises/practice/secret-handshake/testlib/t3.rexx similarity index 100% rename from exercises/practice/secret-handshake/t3.rexx rename to exercises/practice/secret-handshake/testlib/t3.rexx diff --git a/exercises/practice/series/.meta/config.json b/exercises/practice/series/.meta/config.json index 023cf1d..d3eb52b 100644 --- a/exercises/practice/series/.meta/config.json +++ b/exercises/practice/series/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["series.rexx"], + "solution": ["series.rexx", "series-toplevel.rexx"], "test": ["test-series"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/series/test-series b/exercises/practice/series/test-series index aa7e6ad..c341c49 100755 --- a/exercises/practice/series/test-series +++ b/exercises/practice/series/test-series @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina series-check series series-toplevel ; else ./runt "$@" series-check series series-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../series-check ../series ../series-toplevel ; else ./runt "$@" ../series-check ../series ../series-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/series/test-series.bat b/exercises/practice/series/test-series.bat index 14720a8..945ebe1 100644 --- a/exercises/practice/series/test-series.bat +++ b/exercises/practice/series/test-series.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% series-check series series-toplevel +cd "testlib" +@call runt.bat %options% ..\series-check ..\series ..\series-toplevel +cd .. diff --git a/exercises/practice/series/runt b/exercises/practice/series/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/series/runt rename to exercises/practice/series/testlib/runt diff --git a/exercises/practice/series/runt.bat b/exercises/practice/series/testlib/runt.bat similarity index 100% rename from exercises/practice/series/runt.bat rename to exercises/practice/series/testlib/runt.bat diff --git a/exercises/practice/series/testlib/series-funcs.rexx b/exercises/practice/series/testlib/series-funcs.rexx new file mode 100644 index 0000000..57a373f --- /dev/null +++ b/exercises/practice/series/testlib/series-funcs.rexx @@ -0,0 +1,8 @@ +/* series - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/series/t1.rexx b/exercises/practice/series/testlib/t1.rexx similarity index 100% rename from exercises/practice/series/t1.rexx rename to exercises/practice/series/testlib/t1.rexx diff --git a/exercises/practice/series/t2.rexx b/exercises/practice/series/testlib/t2.rexx similarity index 100% rename from exercises/practice/series/t2.rexx rename to exercises/practice/series/testlib/t2.rexx diff --git a/exercises/practice/series/t3.rexx b/exercises/practice/series/testlib/t3.rexx similarity index 100% rename from exercises/practice/series/t3.rexx rename to exercises/practice/series/testlib/t3.rexx diff --git a/exercises/practice/sieve/.meta/config.json b/exercises/practice/sieve/.meta/config.json index a70f828..300456a 100644 --- a/exercises/practice/sieve/.meta/config.json +++ b/exercises/practice/sieve/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["sieve.rexx"], + "solution": ["sieve.rexx", "sieve-toplevel.rexx"], "test": ["test-sieve"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/sieve/test-sieve b/exercises/practice/sieve/test-sieve index 539fe6d..fc9a640 100755 --- a/exercises/practice/sieve/test-sieve +++ b/exercises/practice/sieve/test-sieve @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina sieve-check sieve sieve-toplevel ; else ./runt "$@" sieve-check sieve sieve-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../sieve-check ../sieve ../sieve-toplevel ; else ./runt "$@" ../sieve-check ../sieve ../sieve-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/sieve/test-sieve.bat b/exercises/practice/sieve/test-sieve.bat index 80e2244..2defe22 100644 --- a/exercises/practice/sieve/test-sieve.bat +++ b/exercises/practice/sieve/test-sieve.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% sieve-check sieve sieve-toplevel +cd "testlib" +@call runt.bat %options% ..\sieve-check ..\sieve ..\sieve-toplevel +cd .. diff --git a/exercises/practice/sieve/runt b/exercises/practice/sieve/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/sieve/runt rename to exercises/practice/sieve/testlib/runt diff --git a/exercises/practice/sieve/runt.bat b/exercises/practice/sieve/testlib/runt.bat similarity index 100% rename from exercises/practice/sieve/runt.bat rename to exercises/practice/sieve/testlib/runt.bat diff --git a/exercises/practice/sieve/testlib/sieve-funcs.rexx b/exercises/practice/sieve/testlib/sieve-funcs.rexx new file mode 100644 index 0000000..c383d02 --- /dev/null +++ b/exercises/practice/sieve/testlib/sieve-funcs.rexx @@ -0,0 +1,8 @@ +/* sieve - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/sieve/t1.rexx b/exercises/practice/sieve/testlib/t1.rexx similarity index 100% rename from exercises/practice/sieve/t1.rexx rename to exercises/practice/sieve/testlib/t1.rexx diff --git a/exercises/practice/sieve/t2.rexx b/exercises/practice/sieve/testlib/t2.rexx similarity index 100% rename from exercises/practice/sieve/t2.rexx rename to exercises/practice/sieve/testlib/t2.rexx diff --git a/exercises/practice/sieve/t3.rexx b/exercises/practice/sieve/testlib/t3.rexx similarity index 100% rename from exercises/practice/sieve/t3.rexx rename to exercises/practice/sieve/testlib/t3.rexx diff --git a/exercises/practice/simple-cipher/.meta/config.json b/exercises/practice/simple-cipher/.meta/config.json index 76a868e..9304f1d 100644 --- a/exercises/practice/simple-cipher/.meta/config.json +++ b/exercises/practice/simple-cipher/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["simple-cipher.rexx"], + "solution": ["simple-cipher.rexx", "simple-cipher-toplevel.rexx"], "test": ["test-simple-cipher"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/simple-cipher/test-simple-cipher b/exercises/practice/simple-cipher/test-simple-cipher index 7cfcb61..0541a87 100755 --- a/exercises/practice/simple-cipher/test-simple-cipher +++ b/exercises/practice/simple-cipher/test-simple-cipher @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina simple-cipher-check simple-cipher simple-cipher-toplevel ; else ./runt "$@" simple-cipher-check simple-cipher simple-cipher-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../simple-cipher-check ../simple-cipher ../simple-cipher-toplevel ; else ./runt "$@" ../simple-cipher-check ../simple-cipher ../simple-cipher-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/simple-cipher/test-simple-cipher.bat b/exercises/practice/simple-cipher/test-simple-cipher.bat index 6415414..2d1ee48 100644 --- a/exercises/practice/simple-cipher/test-simple-cipher.bat +++ b/exercises/practice/simple-cipher/test-simple-cipher.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% simple-cipher-check simple-cipher simple-cipher-toplevel +cd "testlib" +@call runt.bat %options% ..\simple-cipher-check ..\simple-cipher ..\simple-cipher-toplevel +cd .. diff --git a/exercises/practice/simple-cipher/runt b/exercises/practice/simple-cipher/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/simple-cipher/runt rename to exercises/practice/simple-cipher/testlib/runt diff --git a/exercises/practice/simple-cipher/runt.bat b/exercises/practice/simple-cipher/testlib/runt.bat similarity index 100% rename from exercises/practice/simple-cipher/runt.bat rename to exercises/practice/simple-cipher/testlib/runt.bat diff --git a/exercises/practice/simple-cipher/testlib/simple-cipher-funcs.rexx b/exercises/practice/simple-cipher/testlib/simple-cipher-funcs.rexx new file mode 100644 index 0000000..f413cd7 --- /dev/null +++ b/exercises/practice/simple-cipher/testlib/simple-cipher-funcs.rexx @@ -0,0 +1,8 @@ +/* simple-cipher - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/simple-cipher/t1.rexx b/exercises/practice/simple-cipher/testlib/t1.rexx similarity index 100% rename from exercises/practice/simple-cipher/t1.rexx rename to exercises/practice/simple-cipher/testlib/t1.rexx diff --git a/exercises/practice/simple-cipher/t2.rexx b/exercises/practice/simple-cipher/testlib/t2.rexx similarity index 100% rename from exercises/practice/simple-cipher/t2.rexx rename to exercises/practice/simple-cipher/testlib/t2.rexx diff --git a/exercises/practice/simple-cipher/t3.rexx b/exercises/practice/simple-cipher/testlib/t3.rexx similarity index 100% rename from exercises/practice/simple-cipher/t3.rexx rename to exercises/practice/simple-cipher/testlib/t3.rexx diff --git a/exercises/practice/space-age/.meta/config.json b/exercises/practice/space-age/.meta/config.json index a16744e..a69999a 100644 --- a/exercises/practice/space-age/.meta/config.json +++ b/exercises/practice/space-age/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["space-age.rexx"], + "solution": ["space-age.rexx", "space-age-toplevel.rexx"], "test": ["test-space-age"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/space-age/test-space-age b/exercises/practice/space-age/test-space-age index 7a85b19..67a2c8b 100755 --- a/exercises/practice/space-age/test-space-age +++ b/exercises/practice/space-age/test-space-age @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina space-age-check space-age space-age-toplevel ; else ./runt "$@" space-age-check space-age space-age-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../space-age-check ../space-age ../space-age-toplevel ; else ./runt "$@" ../space-age-check ../space-age ../space-age-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/space-age/test-space-age.bat b/exercises/practice/space-age/test-space-age.bat index 1d9c59d..87d84fc 100644 --- a/exercises/practice/space-age/test-space-age.bat +++ b/exercises/practice/space-age/test-space-age.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% space-age-check space-age space-age-toplevel +cd "testlib" +@call runt.bat %options% ..\space-age-check ..\space-age ..\space-age-toplevel +cd .. diff --git a/exercises/practice/space-age/runt b/exercises/practice/space-age/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/space-age/runt rename to exercises/practice/space-age/testlib/runt diff --git a/exercises/practice/space-age/runt.bat b/exercises/practice/space-age/testlib/runt.bat similarity index 100% rename from exercises/practice/space-age/runt.bat rename to exercises/practice/space-age/testlib/runt.bat diff --git a/exercises/practice/space-age/testlib/space-age-funcs.rexx b/exercises/practice/space-age/testlib/space-age-funcs.rexx new file mode 100644 index 0000000..e9c3fa1 --- /dev/null +++ b/exercises/practice/space-age/testlib/space-age-funcs.rexx @@ -0,0 +1,8 @@ +/* space-age - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/space-age/t1.rexx b/exercises/practice/space-age/testlib/t1.rexx similarity index 100% rename from exercises/practice/space-age/t1.rexx rename to exercises/practice/space-age/testlib/t1.rexx diff --git a/exercises/practice/space-age/t2.rexx b/exercises/practice/space-age/testlib/t2.rexx similarity index 100% rename from exercises/practice/space-age/t2.rexx rename to exercises/practice/space-age/testlib/t2.rexx diff --git a/exercises/practice/space-age/t3.rexx b/exercises/practice/space-age/testlib/t3.rexx similarity index 100% rename from exercises/practice/space-age/t3.rexx rename to exercises/practice/space-age/testlib/t3.rexx diff --git a/exercises/practice/square-root/.meta/config.json b/exercises/practice/square-root/.meta/config.json index 9469dc6..130bf3d 100644 --- a/exercises/practice/square-root/.meta/config.json +++ b/exercises/practice/square-root/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["square-root.rexx"], + "solution": ["square-root.rexx", "square-root-toplevel.rexx"], "test": ["test-square-root"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/square-root/test-square-root b/exercises/practice/square-root/test-square-root index 566e79e..b74b17e 100755 --- a/exercises/practice/square-root/test-square-root +++ b/exercises/practice/square-root/test-square-root @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina square-root-check square-root square-root-toplevel ; else ./runt "$@" square-root-check square-root square-root-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../square-root-check ../square-root ../square-root-toplevel ; else ./runt "$@" ../square-root-check ../square-root ../square-root-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/square-root/test-square-root.bat b/exercises/practice/square-root/test-square-root.bat index 6412b29..d97a188 100644 --- a/exercises/practice/square-root/test-square-root.bat +++ b/exercises/practice/square-root/test-square-root.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% square-root-check square-root square-root-toplevel +cd "testlib" +@call runt.bat %options% ..\square-root-check ..\square-root ..\square-root-toplevel +cd .. diff --git a/exercises/practice/square-root/runt b/exercises/practice/square-root/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/square-root/runt rename to exercises/practice/square-root/testlib/runt diff --git a/exercises/practice/square-root/runt.bat b/exercises/practice/square-root/testlib/runt.bat similarity index 100% rename from exercises/practice/square-root/runt.bat rename to exercises/practice/square-root/testlib/runt.bat diff --git a/exercises/practice/square-root/testlib/square-root-funcs.rexx b/exercises/practice/square-root/testlib/square-root-funcs.rexx new file mode 100644 index 0000000..eda93e2 --- /dev/null +++ b/exercises/practice/square-root/testlib/square-root-funcs.rexx @@ -0,0 +1,8 @@ +/* square-root - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/square-root/t1.rexx b/exercises/practice/square-root/testlib/t1.rexx similarity index 100% rename from exercises/practice/square-root/t1.rexx rename to exercises/practice/square-root/testlib/t1.rexx diff --git a/exercises/practice/square-root/t2.rexx b/exercises/practice/square-root/testlib/t2.rexx similarity index 100% rename from exercises/practice/square-root/t2.rexx rename to exercises/practice/square-root/testlib/t2.rexx diff --git a/exercises/practice/square-root/t3.rexx b/exercises/practice/square-root/testlib/t3.rexx similarity index 100% rename from exercises/practice/square-root/t3.rexx rename to exercises/practice/square-root/testlib/t3.rexx diff --git a/exercises/practice/strain/.meta/config.json b/exercises/practice/strain/.meta/config.json index 0c76a1a..e9efea7 100644 --- a/exercises/practice/strain/.meta/config.json +++ b/exercises/practice/strain/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["strain.rexx"], + "solution": ["strain.rexx", "strain-toplevel.rexx"], "test": ["test-strain"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/strain/test-strain b/exercises/practice/strain/test-strain index d30126d..fca367d 100755 --- a/exercises/practice/strain/test-strain +++ b/exercises/practice/strain/test-strain @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina strain-check strain strain-toplevel ; else ./runt "$@" strain-check strain strain-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../strain-check ../strain ../strain-toplevel ; else ./runt "$@" ../strain-check ../strain ../strain-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/strain/test-strain.bat b/exercises/practice/strain/test-strain.bat index 353aad2..fe8cfec 100644 --- a/exercises/practice/strain/test-strain.bat +++ b/exercises/practice/strain/test-strain.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% strain-check strain strain-toplevel +cd "testlib" +@call runt.bat %options% ..\strain-check ..\strain ..\strain-toplevel +cd .. diff --git a/exercises/practice/strain/runt b/exercises/practice/strain/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/strain/runt rename to exercises/practice/strain/testlib/runt diff --git a/exercises/practice/strain/runt.bat b/exercises/practice/strain/testlib/runt.bat similarity index 100% rename from exercises/practice/strain/runt.bat rename to exercises/practice/strain/testlib/runt.bat diff --git a/exercises/practice/strain/testlib/strain-funcs.rexx b/exercises/practice/strain/testlib/strain-funcs.rexx new file mode 100644 index 0000000..2812698 --- /dev/null +++ b/exercises/practice/strain/testlib/strain-funcs.rexx @@ -0,0 +1,8 @@ +/* strain - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/strain/t1.rexx b/exercises/practice/strain/testlib/t1.rexx similarity index 100% rename from exercises/practice/strain/t1.rexx rename to exercises/practice/strain/testlib/t1.rexx diff --git a/exercises/practice/strain/t2.rexx b/exercises/practice/strain/testlib/t2.rexx similarity index 100% rename from exercises/practice/strain/t2.rexx rename to exercises/practice/strain/testlib/t2.rexx diff --git a/exercises/practice/strain/t3.rexx b/exercises/practice/strain/testlib/t3.rexx similarity index 100% rename from exercises/practice/strain/t3.rexx rename to exercises/practice/strain/testlib/t3.rexx diff --git a/exercises/practice/sublist/.meta/config.json b/exercises/practice/sublist/.meta/config.json index 5a0217b..0ec3e0d 100644 --- a/exercises/practice/sublist/.meta/config.json +++ b/exercises/practice/sublist/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["sublist.rexx"], + "solution": ["sublist.rexx", "sublist-toplevel.rexx"], "test": ["test-sublist"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/sublist/test-sublist b/exercises/practice/sublist/test-sublist index 1835f8c..7c8824c 100755 --- a/exercises/practice/sublist/test-sublist +++ b/exercises/practice/sublist/test-sublist @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina sublist-check sublist sublist-toplevel ; else ./runt "$@" sublist-check sublist sublist-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../sublist-check ../sublist ../sublist-toplevel ; else ./runt "$@" ../sublist-check ../sublist ../sublist-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/sublist/test-sublist.bat b/exercises/practice/sublist/test-sublist.bat index 0fcb818..e2b7d11 100644 --- a/exercises/practice/sublist/test-sublist.bat +++ b/exercises/practice/sublist/test-sublist.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% sublist-check sublist sublist-toplevel +cd "testlib" +@call runt.bat %options% ..\sublist-check ..\sublist ..\sublist-toplevel +cd .. diff --git a/exercises/practice/sublist/runt b/exercises/practice/sublist/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/sublist/runt rename to exercises/practice/sublist/testlib/runt diff --git a/exercises/practice/sublist/runt.bat b/exercises/practice/sublist/testlib/runt.bat similarity index 100% rename from exercises/practice/sublist/runt.bat rename to exercises/practice/sublist/testlib/runt.bat diff --git a/exercises/practice/sublist/testlib/sublist-funcs.rexx b/exercises/practice/sublist/testlib/sublist-funcs.rexx new file mode 100644 index 0000000..7d94134 --- /dev/null +++ b/exercises/practice/sublist/testlib/sublist-funcs.rexx @@ -0,0 +1,8 @@ +/* sublist - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/sublist/t1.rexx b/exercises/practice/sublist/testlib/t1.rexx similarity index 100% rename from exercises/practice/sublist/t1.rexx rename to exercises/practice/sublist/testlib/t1.rexx diff --git a/exercises/practice/sublist/t2.rexx b/exercises/practice/sublist/testlib/t2.rexx similarity index 100% rename from exercises/practice/sublist/t2.rexx rename to exercises/practice/sublist/testlib/t2.rexx diff --git a/exercises/practice/sublist/t3.rexx b/exercises/practice/sublist/testlib/t3.rexx similarity index 100% rename from exercises/practice/sublist/t3.rexx rename to exercises/practice/sublist/testlib/t3.rexx diff --git a/exercises/practice/sum-of-multiples/.meta/config.json b/exercises/practice/sum-of-multiples/.meta/config.json index 46b027a..cadfd95 100644 --- a/exercises/practice/sum-of-multiples/.meta/config.json +++ b/exercises/practice/sum-of-multiples/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["sum-of-multiples.rexx"], + "solution": ["sum-of-multiples.rexx", "sum-of-multiples-toplevel.rexx"], "test": ["test-sum-of-multiples"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/sum-of-multiples/test-sum-of-multiples b/exercises/practice/sum-of-multiples/test-sum-of-multiples index b56e511..9db7a88 100755 --- a/exercises/practice/sum-of-multiples/test-sum-of-multiples +++ b/exercises/practice/sum-of-multiples/test-sum-of-multiples @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina sum-of-multiples-check sum-of-multiples sum-of-multiples-toplevel ; else ./runt "$@" sum-of-multiples-check sum-of-multiples sum-of-multiples-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../sum-of-multiples-check ../sum-of-multiples ../sum-of-multiples-toplevel ; else ./runt "$@" ../sum-of-multiples-check ../sum-of-multiples ../sum-of-multiples-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/sum-of-multiples/test-sum-of-multiples.bat b/exercises/practice/sum-of-multiples/test-sum-of-multiples.bat index dfd22a7..10e91c8 100644 --- a/exercises/practice/sum-of-multiples/test-sum-of-multiples.bat +++ b/exercises/practice/sum-of-multiples/test-sum-of-multiples.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% sum-of-multiples-check sum-of-multiples sum-of-multiples-toplevel +cd "testlib" +@call runt.bat %options% ..\sum-of-multiples-check ..\sum-of-multiples ..\sum-of-multiples-toplevel +cd .. diff --git a/exercises/practice/sum-of-multiples/runt b/exercises/practice/sum-of-multiples/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/sum-of-multiples/runt rename to exercises/practice/sum-of-multiples/testlib/runt diff --git a/exercises/practice/sum-of-multiples/runt.bat b/exercises/practice/sum-of-multiples/testlib/runt.bat similarity index 100% rename from exercises/practice/sum-of-multiples/runt.bat rename to exercises/practice/sum-of-multiples/testlib/runt.bat diff --git a/exercises/practice/sum-of-multiples/testlib/sum-of-multiples-funcs.rexx b/exercises/practice/sum-of-multiples/testlib/sum-of-multiples-funcs.rexx new file mode 100644 index 0000000..e1a5516 --- /dev/null +++ b/exercises/practice/sum-of-multiples/testlib/sum-of-multiples-funcs.rexx @@ -0,0 +1,8 @@ +/* sum-of-multiples - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/sum-of-multiples/t1.rexx b/exercises/practice/sum-of-multiples/testlib/t1.rexx similarity index 100% rename from exercises/practice/sum-of-multiples/t1.rexx rename to exercises/practice/sum-of-multiples/testlib/t1.rexx diff --git a/exercises/practice/sum-of-multiples/t2.rexx b/exercises/practice/sum-of-multiples/testlib/t2.rexx similarity index 100% rename from exercises/practice/sum-of-multiples/t2.rexx rename to exercises/practice/sum-of-multiples/testlib/t2.rexx diff --git a/exercises/practice/sum-of-multiples/t3.rexx b/exercises/practice/sum-of-multiples/testlib/t3.rexx similarity index 100% rename from exercises/practice/sum-of-multiples/t3.rexx rename to exercises/practice/sum-of-multiples/testlib/t3.rexx diff --git a/exercises/practice/transpose/.meta/config.json b/exercises/practice/transpose/.meta/config.json index 8474ffc..3e9592f 100644 --- a/exercises/practice/transpose/.meta/config.json +++ b/exercises/practice/transpose/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["transpose.rexx"], + "solution": ["transpose.rexx", "transpose-toplevel.rexx"], "test": ["test-transpose"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/transpose/test-transpose b/exercises/practice/transpose/test-transpose index 76e5c16..38a94fa 100755 --- a/exercises/practice/transpose/test-transpose +++ b/exercises/practice/transpose/test-transpose @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina transpose-check transpose transpose-toplevel ; else ./runt "$@" transpose-check transpose transpose-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../transpose-check ../transpose ../transpose-toplevel ; else ./runt "$@" ../transpose-check ../transpose ../transpose-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/transpose/test-transpose.bat b/exercises/practice/transpose/test-transpose.bat index dabf016..935d604 100644 --- a/exercises/practice/transpose/test-transpose.bat +++ b/exercises/practice/transpose/test-transpose.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% transpose-check transpose transpose-toplevel +cd "testlib" +@call runt.bat %options% ..\transpose-check ..\transpose ..\transpose-toplevel +cd .. diff --git a/exercises/practice/transpose/runt b/exercises/practice/transpose/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/transpose/runt rename to exercises/practice/transpose/testlib/runt diff --git a/exercises/practice/transpose/runt.bat b/exercises/practice/transpose/testlib/runt.bat similarity index 100% rename from exercises/practice/transpose/runt.bat rename to exercises/practice/transpose/testlib/runt.bat diff --git a/exercises/practice/transpose/t1.rexx b/exercises/practice/transpose/testlib/t1.rexx similarity index 100% rename from exercises/practice/transpose/t1.rexx rename to exercises/practice/transpose/testlib/t1.rexx diff --git a/exercises/practice/transpose/t2.rexx b/exercises/practice/transpose/testlib/t2.rexx similarity index 100% rename from exercises/practice/transpose/t2.rexx rename to exercises/practice/transpose/testlib/t2.rexx diff --git a/exercises/practice/transpose/t3.rexx b/exercises/practice/transpose/testlib/t3.rexx similarity index 100% rename from exercises/practice/transpose/t3.rexx rename to exercises/practice/transpose/testlib/t3.rexx diff --git a/exercises/practice/transpose/testlib/transpose-funcs.rexx b/exercises/practice/transpose/testlib/transpose-funcs.rexx new file mode 100644 index 0000000..ce70ed6 --- /dev/null +++ b/exercises/practice/transpose/testlib/transpose-funcs.rexx @@ -0,0 +1,8 @@ +/* transpose - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/triangle/.meta/config.json b/exercises/practice/triangle/.meta/config.json index d8690f8..3bf5c30 100644 --- a/exercises/practice/triangle/.meta/config.json +++ b/exercises/practice/triangle/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["triangle.rexx"], + "solution": ["triangle.rexx", "triangle-toplevel.rexx"], "test": ["test-triangle"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/triangle/test-triangle b/exercises/practice/triangle/test-triangle index fcc30bf..b7e7b3d 100755 --- a/exercises/practice/triangle/test-triangle +++ b/exercises/practice/triangle/test-triangle @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina triangle-check triangle triangle-toplevel ; else ./runt "$@" triangle-check triangle triangle-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../triangle-check ../triangle ../triangle-toplevel ; else ./runt "$@" ../triangle-check ../triangle ../triangle-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/triangle/test-triangle.bat b/exercises/practice/triangle/test-triangle.bat index 0bcd84b..31c07dd 100644 --- a/exercises/practice/triangle/test-triangle.bat +++ b/exercises/practice/triangle/test-triangle.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% triangle-check triangle triangle-toplevel +cd "testlib" +@call runt.bat %options% ..\triangle-check ..\triangle ..\triangle-toplevel +cd .. diff --git a/exercises/practice/triangle/runt b/exercises/practice/triangle/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/triangle/runt rename to exercises/practice/triangle/testlib/runt diff --git a/exercises/practice/triangle/runt.bat b/exercises/practice/triangle/testlib/runt.bat similarity index 100% rename from exercises/practice/triangle/runt.bat rename to exercises/practice/triangle/testlib/runt.bat diff --git a/exercises/practice/triangle/t1.rexx b/exercises/practice/triangle/testlib/t1.rexx similarity index 100% rename from exercises/practice/triangle/t1.rexx rename to exercises/practice/triangle/testlib/t1.rexx diff --git a/exercises/practice/triangle/t2.rexx b/exercises/practice/triangle/testlib/t2.rexx similarity index 100% rename from exercises/practice/triangle/t2.rexx rename to exercises/practice/triangle/testlib/t2.rexx diff --git a/exercises/practice/triangle/t3.rexx b/exercises/practice/triangle/testlib/t3.rexx similarity index 100% rename from exercises/practice/triangle/t3.rexx rename to exercises/practice/triangle/testlib/t3.rexx diff --git a/exercises/practice/triangle/testlib/triangle-funcs.rexx b/exercises/practice/triangle/testlib/triangle-funcs.rexx new file mode 100644 index 0000000..76c83d5 --- /dev/null +++ b/exercises/practice/triangle/testlib/triangle-funcs.rexx @@ -0,0 +1,8 @@ +/* triangle - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/twelve-days/.meta/config.json b/exercises/practice/twelve-days/.meta/config.json index 254fb0b..0fac173 100644 --- a/exercises/practice/twelve-days/.meta/config.json +++ b/exercises/practice/twelve-days/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["twelve-days.rexx"], + "solution": ["twelve-days.rexx", "twelve-days-toplevel.rexx"], "test": ["test-twelve-days"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/twelve-days/test-twelve-days b/exercises/practice/twelve-days/test-twelve-days index 77b4852..a6446d3 100755 --- a/exercises/practice/twelve-days/test-twelve-days +++ b/exercises/practice/twelve-days/test-twelve-days @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina twelve-days-check twelve-days twelve-days-toplevel ; else ./runt "$@" twelve-days-check twelve-days twelve-days-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../twelve-days-check ../twelve-days ../twelve-days-toplevel ; else ./runt "$@" ../twelve-days-check ../twelve-days ../twelve-days-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/twelve-days/test-twelve-days.bat b/exercises/practice/twelve-days/test-twelve-days.bat index fd026d1..278647d 100644 --- a/exercises/practice/twelve-days/test-twelve-days.bat +++ b/exercises/practice/twelve-days/test-twelve-days.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% twelve-days-check twelve-days twelve-days-toplevel +cd "testlib" +@call runt.bat %options% ..\twelve-days-check ..\twelve-days ..\twelve-days-toplevel +cd .. diff --git a/exercises/practice/twelve-days/runt b/exercises/practice/twelve-days/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/twelve-days/runt rename to exercises/practice/twelve-days/testlib/runt diff --git a/exercises/practice/twelve-days/runt.bat b/exercises/practice/twelve-days/testlib/runt.bat similarity index 100% rename from exercises/practice/twelve-days/runt.bat rename to exercises/practice/twelve-days/testlib/runt.bat diff --git a/exercises/practice/twelve-days/t1.rexx b/exercises/practice/twelve-days/testlib/t1.rexx similarity index 100% rename from exercises/practice/twelve-days/t1.rexx rename to exercises/practice/twelve-days/testlib/t1.rexx diff --git a/exercises/practice/twelve-days/t2.rexx b/exercises/practice/twelve-days/testlib/t2.rexx similarity index 100% rename from exercises/practice/twelve-days/t2.rexx rename to exercises/practice/twelve-days/testlib/t2.rexx diff --git a/exercises/practice/twelve-days/t3.rexx b/exercises/practice/twelve-days/testlib/t3.rexx similarity index 100% rename from exercises/practice/twelve-days/t3.rexx rename to exercises/practice/twelve-days/testlib/t3.rexx diff --git a/exercises/practice/twelve-days/testlib/twelve-days-funcs.rexx b/exercises/practice/twelve-days/testlib/twelve-days-funcs.rexx new file mode 100644 index 0000000..d829482 --- /dev/null +++ b/exercises/practice/twelve-days/testlib/twelve-days-funcs.rexx @@ -0,0 +1,8 @@ +/* twelve-days - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/two-fer/.meta/config.json b/exercises/practice/two-fer/.meta/config.json index 77fc6b4..960bd36 100644 --- a/exercises/practice/two-fer/.meta/config.json +++ b/exercises/practice/two-fer/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["two-fer.rexx"], + "solution": ["two-fer.rexx", "two-fer-toplevel.rexx"], "test": ["test-two-fer"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/two-fer/test-two-fer b/exercises/practice/two-fer/test-two-fer index b7acdbd..2ec4b07 100755 --- a/exercises/practice/two-fer/test-two-fer +++ b/exercises/practice/two-fer/test-two-fer @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina two-fer-check two-fer two-fer-toplevel ; else ./runt "$@" two-fer-check two-fer two-fer-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../two-fer-check ../two-fer ../two-fer-toplevel ; else ./runt "$@" ../two-fer-check ../two-fer ../two-fer-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/two-fer/test-two-fer.bat b/exercises/practice/two-fer/test-two-fer.bat index fdd6a2b..7649821 100644 --- a/exercises/practice/two-fer/test-two-fer.bat +++ b/exercises/practice/two-fer/test-two-fer.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% two-fer-check two-fer two-fer-toplevel +cd "testlib" +@call runt.bat %options% ..\two-fer-check ..\two-fer ..\two-fer-toplevel +cd .. diff --git a/exercises/practice/two-fer/runt b/exercises/practice/two-fer/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/two-fer/runt rename to exercises/practice/two-fer/testlib/runt diff --git a/exercises/practice/two-fer/runt.bat b/exercises/practice/two-fer/testlib/runt.bat similarity index 100% rename from exercises/practice/two-fer/runt.bat rename to exercises/practice/two-fer/testlib/runt.bat diff --git a/exercises/practice/two-fer/t1.rexx b/exercises/practice/two-fer/testlib/t1.rexx similarity index 100% rename from exercises/practice/two-fer/t1.rexx rename to exercises/practice/two-fer/testlib/t1.rexx diff --git a/exercises/practice/two-fer/t2.rexx b/exercises/practice/two-fer/testlib/t2.rexx similarity index 100% rename from exercises/practice/two-fer/t2.rexx rename to exercises/practice/two-fer/testlib/t2.rexx diff --git a/exercises/practice/two-fer/t3.rexx b/exercises/practice/two-fer/testlib/t3.rexx similarity index 100% rename from exercises/practice/two-fer/t3.rexx rename to exercises/practice/two-fer/testlib/t3.rexx diff --git a/exercises/practice/two-fer/testlib/two-fer-funcs.rexx b/exercises/practice/two-fer/testlib/two-fer-funcs.rexx new file mode 100644 index 0000000..442c883 --- /dev/null +++ b/exercises/practice/two-fer/testlib/two-fer-funcs.rexx @@ -0,0 +1,8 @@ +/* two-fer - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ + diff --git a/exercises/practice/word-count/.meta/config.json b/exercises/practice/word-count/.meta/config.json index 6b8931d..f9720b5 100644 --- a/exercises/practice/word-count/.meta/config.json +++ b/exercises/practice/word-count/.meta/config.json @@ -1,7 +1,7 @@ { "authors": ["ajborla"], "files": { - "solution": ["word-count.rexx"], + "solution": ["word-count.rexx", "word-count-toplevel.rexx"], "test": ["test-word-count"], "example": [".meta/example.rexx"] }, diff --git a/exercises/practice/word-count/test-word-count b/exercises/practice/word-count/test-word-count index 1051498..60ce7b6 100755 --- a/exercises/practice/word-count/test-word-count +++ b/exercises/practice/word-count/test-word-count @@ -1,2 +1,4 @@ #!/usr/bin/env bash -if [ $# -eq 0 ] ; then ./runt --regina word-count-check word-count word-count-toplevel ; else ./runt "$@" word-count-check word-count word-count-toplevel ; fi +cd "testlib" 2>&1 >/dev/null +if [ $# -eq 0 ] ; then ./runt --regina ../word-count-check ../word-count ../word-count-toplevel ; else ./runt "$@" ../word-count-check ../word-count ../word-count-toplevel ; fi +cd - 2>&1 >/dev/null diff --git a/exercises/practice/word-count/test-word-count.bat b/exercises/practice/word-count/test-word-count.bat index 8a55baf..3b3f29d 100644 --- a/exercises/practice/word-count/test-word-count.bat +++ b/exercises/practice/word-count/test-word-count.bat @@ -1,3 +1,5 @@ @set options=%* @if "%1"=="" @set options=--regina -@runt.bat %options% word-count-check word-count word-count-toplevel +cd "testlib" +@call runt.bat %options% ..\word-count-check ..\word-count ..\word-count-toplevel +cd .. diff --git a/exercises/practice/word-count/runt b/exercises/practice/word-count/testlib/runt old mode 100755 new mode 100644 similarity index 100% rename from exercises/practice/word-count/runt rename to exercises/practice/word-count/testlib/runt diff --git a/exercises/practice/word-count/runt.bat b/exercises/practice/word-count/testlib/runt.bat similarity index 100% rename from exercises/practice/word-count/runt.bat rename to exercises/practice/word-count/testlib/runt.bat diff --git a/exercises/practice/word-count/t1.rexx b/exercises/practice/word-count/testlib/t1.rexx similarity index 100% rename from exercises/practice/word-count/t1.rexx rename to exercises/practice/word-count/testlib/t1.rexx diff --git a/exercises/practice/word-count/t2.rexx b/exercises/practice/word-count/testlib/t2.rexx similarity index 100% rename from exercises/practice/word-count/t2.rexx rename to exercises/practice/word-count/testlib/t2.rexx diff --git a/exercises/practice/word-count/t3.rexx b/exercises/practice/word-count/testlib/t3.rexx similarity index 100% rename from exercises/practice/word-count/t3.rexx rename to exercises/practice/word-count/testlib/t3.rexx diff --git a/exercises/practice/word-count/testlib/word-count-funcs.rexx b/exercises/practice/word-count/testlib/word-count-funcs.rexx new file mode 100644 index 0000000..d0070cc --- /dev/null +++ b/exercises/practice/word-count/testlib/word-count-funcs.rexx @@ -0,0 +1,8 @@ +/* word-count - Additional Test Functions */ + +/* + + Include any test-callable, non-user-visible functions in this file. + +*/ +