Skip to content

Commit

Permalink
file patterns (#132)
Browse files Browse the repository at this point in the history
* Add file patterns

* Update files keys
  • Loading branch information
ErikSchierboom authored Apr 19, 2024
1 parent bfc10e9 commit 143bd57
Show file tree
Hide file tree
Showing 32 changed files with 145 additions and 31 deletions.
21 changes: 21 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,27 @@
"test_runner": {
"average_run_time": 2
},
"files": {
"solution": [
"src/%{kebab_slug}.cob"
],
"test": [
"tst/%{kebab_slug}/%{kebab_slug}.cut"
],
"example": [
".meta/proof.ci.cob"
],
"exemplar": [
".meta/exemplar.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"exercises": {
"practice": [
{
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/acronym/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Convert a phrase to its acronym.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/all-your-base/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Convert a number, represented as a sequence of digits in one base, to any other base."
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/allergies/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/armstrong-numbers/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Determine if a number is an Armstrong number.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/atbash-cipher/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Create an implementation of the atbash cipher, an ancient encryption system created in the Middle East.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/binary/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Convert a binary number, represented as a string (e.g. '101010'), to its decimal equivalent using first principles.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/bob/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Bob is a lackadaisical teenager. In conversation, his responses are very limited.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/circular-buffer/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "A circular buffer, cyclic buffer or ring buffer is a data structure that uses a single, fixed-size buffer as if it were connected end-to-end.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/collatz-conjecture/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Calculate the number of steps to reach 1 using the Collatz conjecture.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/complex-numbers/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "A complex number is a number in the form a + b * i where a and b are real and i satisfies i^2 = -1.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/darts/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Write a function that returns the earned points in a single toss of a Darts game.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/difference-of-squares/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Find the difference between the square of the sum and the sum of the squares of the first N natural numbers.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/hamming/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Calculate the Hamming difference between two DNA strands.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/hello-world/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "The classical introductory exercise. Just say \"Hello, World!\".",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/high-scores/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Manage a player's High Score list.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/isogram/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Determine if a word or phrase is an isogram.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/leap/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Determine whether a given year is a leap year.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/luhn/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Given a number determine whether or not it is valid per the Luhn formula.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/matching-brackets/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Bob is a lackadaisical teenager. In conversation, his responses are very limited.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/nucleotide-count/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Given a DNA string, compute how many times each nucleotide occurs in the string.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/pangram/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Determine if a sentence is a pangram.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/pascals-triangle/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Compute Pascal's triangle up to a given number of rows.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/raindrops/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Convert a number to a string, the content of which depends on the number's factors.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/reverse-string/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Reverse a given string.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/rna-transcription/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Given a DNA strand, return its RNA Complement Transcription.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/roman-numerals/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Convert modern Arabic numbers into Roman numerals.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/rotational-cipher/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Create an implementation of the rotational cipher, also sometimes called the Caesar cipher.",
Expand Down
5 changes: 4 additions & 1 deletion exercises/practice/sieve/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
".meta/proof.ci.cob"
],
"invalidator": [
"test.ps1",
"test.sh",
"test.ps1"
"bin/fetch-cobolcheck",
"bin/fetch-cobolcheck.ps1",
"config.properties"
]
},
"blurb": "Use the Sieve of Eratosthenes to find all the primes from 2 up to a given number.",
Expand Down
Loading

0 comments on commit 143bd57

Please sign in to comment.