-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathgenerate_tests.json
59 lines (59 loc) · 1.52 KB
/
generate_tests.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"comments": {
"omit": [
"These are exercises where the test script has been created manually",
"in order to make some educational point."
],
"include .property in input json": [
"These are exercises where the canonical data uses more than one 'property' value."
],
"runner code": [
"These are exercises that are either demonstrating aspects of modules,",
"or are doing things with different properties.",
"The odd indentation is meant to make the tests pretty."
]
},
"omit": [
"diamond",
"food-chain",
"gigasecond",
"luhn",
"minesweeper",
"nth-prime"
],
"include .property in input json": [
"allergies",
"atbash-cipher",
"difference-of-squares",
"grade-school",
"resistor-color",
"run-length-encoding",
"zebra-puzzle"
],
"runner code": {
"rna-transcription": [
"jq -r '",
" include \"./rna-transcription\";",
" .dna | toRna",
"'"
],
"collatz-conjecture": [
"jq -r '",
" import \"./collatz-conjecture\" as Collatz;",
" .number | Collatz::steps",
"'"
],
"run-length-encoding": [
"jq -r '",
" include \"./run-length-encoding\";",
" if .property == \"encode\" then",
" .input.string | encode",
" elif .property == \"decode\" then",
" .input.string | decode",
" else",
" .input.string | encode | decode",
" end",
" '"
]
}
}