Skip to content

Commit

Permalink
Add uuid field to test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Sep 12, 2020
1 parent 0c25a71 commit 8883538
Show file tree
Hide file tree
Showing 115 changed files with 1,689 additions and 29 deletions.
9 changes: 9 additions & 0 deletions exercises/acronym/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"description": "Abbreviate a phrase",
"cases": [
{
"uuid": "1e22cceb-c5e4-4562-9afe-aef07ad1eaf4",
"description": "basic",
"property": "abbreviate",
"input": {
Expand All @@ -14,6 +15,7 @@
"expected": "PNG"
},
{
"uuid": "79ae3889-a5c0-4b01-baf0-232d31180c08",
"description": "lowercase words",
"property": "abbreviate",
"input": {
Expand All @@ -22,6 +24,7 @@
"expected": "ROR"
},
{
"uuid": "ec7000a7-3931-4a17-890e-33ca2073a548",
"description": "punctuation",
"property": "abbreviate",
"input": {
Expand All @@ -30,6 +33,7 @@
"expected": "FIFO"
},
{
"uuid": "32dd261c-0c92-469a-9c5c-b192e94a63b0",
"description": "all caps word",
"property": "abbreviate",
"input": {
Expand All @@ -38,6 +42,7 @@
"expected": "GIMP"
},
{
"uuid": "ae2ac9fa-a606-4d05-8244-3bcc4659c1d4",
"description": "punctuation without whitespace",
"property": "abbreviate",
"input": {
Expand All @@ -46,6 +51,7 @@
"expected": "CMOS"
},
{
"uuid": "0e4b1e7c-1a6d-48fb-81a7-bf65eb9e69f9",
"description": "very long abbreviation",
"property": "abbreviate",
"input": {
Expand All @@ -54,6 +60,7 @@
"expected": "ROTFLSHTMDCOALM"
},
{
"uuid": "6a078f49-c68d-4b7b-89af-33a1a98c28cc",
"description": "consecutive delimiters",
"property": "abbreviate",
"input": {
Expand All @@ -62,6 +69,7 @@
"expected": "SIMUFTA"
},
{
"uuid": "5118b4b1-4572-434c-8d57-5b762e57973e",
"description": "apostrophes",
"property": "abbreviate",
"input": {
Expand All @@ -70,6 +78,7 @@
"expected": "HC"
},
{
"uuid": "adc12eab-ec2d-414f-b48c-66a4fc06cdef",
"description": "underscore emphasis",
"property": "abbreviate",
"input": {
Expand Down
16 changes: 16 additions & 0 deletions exercises/affine-cipher/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"comments": [ "Test encoding from English to ciphertext with keys" ],
"cases": [
{
"uuid": "2ee1d9af-1c43-416c-b41b-cefd7d4d2b2a",
"description": "encode yes",
"property": "encode",
"input": {
Expand All @@ -24,6 +25,7 @@
"expected": "xbt"
},
{
"uuid": "785bade9-e98b-4d4f-a5b0-087ba3d7de4b",
"description": "encode no",
"property": "encode",
"input": {
Expand All @@ -36,6 +38,7 @@
"expected": "fu"
},
{
"uuid": "2854851c-48fb-40d8-9bf6-8f192ed25054",
"description": "encode OMG",
"property": "encode",
"input": {
Expand All @@ -48,6 +51,7 @@
"expected": "lvz"
},
{
"uuid": "bc0c1244-b544-49dd-9777-13a770be1bad",
"description": "encode O M G",
"property": "encode",
"input": {
Expand All @@ -60,6 +64,7 @@
"expected": "hjp"
},
{
"uuid": "381a1a20-b74a-46ce-9277-3778625c9e27",
"description": "encode mindblowingly",
"property": "encode",
"input": {
Expand All @@ -72,6 +77,7 @@
"expected": "rzcwa gnxzc dgt"
},
{
"uuid": "6686f4e2-753b-47d4-9715-876fdc59029d",
"description": "encode numbers",
"property": "encode",
"input": {
Expand All @@ -84,6 +90,7 @@
"expected": "jqgjc rw123 jqgjc rw"
},
{
"uuid": "ae23d5bd-30a8-44b6-afbe-23c8c0c7faa3",
"description": "encode deep thought",
"property": "encode",
"input": {
Expand All @@ -96,6 +103,7 @@
"expected": "iynia fdqfb ifje"
},
{
"uuid": "c93a8a4d-426c-42ef-9610-76ded6f7ef57",
"description": "encode all the letters",
"property": "encode",
"input": {
Expand All @@ -108,6 +116,7 @@
"expected": "swxtj npvyk lruol iejdc blaxk swxmh qzglf"
},
{
"uuid": "0673638a-4375-40bd-871c-fb6a2c28effb",
"description": "encode with a not coprime to m",
"property": "encode",
"input": {
Expand All @@ -126,6 +135,7 @@
"comments": [ "Test decoding from ciphertext to English with keys" ],
"cases": [
{
"uuid": "3f0ac7e2-ec0e-4a79-949e-95e414953438",
"description": "decode exercism",
"property": "decode",
"input": {
Expand All @@ -138,6 +148,7 @@
"expected": "exercism"
},
{
"uuid": "241ee64d-5a47-4092-a5d7-7939d259e077",
"description": "decode a sentence",
"property": "decode",
"input": {
Expand All @@ -150,6 +161,7 @@
"expected": "anobstacleisoftenasteppingstone"
},
{
"uuid": "33fb16a1-765a-496f-907f-12e644837f5e",
"description": "decode numbers",
"property": "decode",
"input": {
Expand All @@ -162,6 +174,7 @@
"expected": "testing123testing"
},
{
"uuid": "20bc9dce-c5ec-4db6-a3f1-845c776bcbf7",
"description": "decode all the letters",
"property": "decode",
"input": {
Expand All @@ -174,6 +187,7 @@
"expected": "thequickbrownfoxjumpsoverthelazydog"
},
{
"uuid": "623e78c0-922d-49c5-8702-227a3e8eaf81",
"description": "decode with no spaces in input",
"property": "decode",
"input": {
Expand All @@ -186,6 +200,7 @@
"expected": "thequickbrownfoxjumpsoverthelazydog"
},
{
"uuid": "58fd5c2a-1fd9-4563-a80a-71cff200f26f",
"description": "decode with too many spaces",
"property": "decode",
"input": {
Expand All @@ -198,6 +213,7 @@
"expected": "jollygreengiant"
},
{
"uuid": "b004626f-c186-4af9-a3f4-58f74cdb86d5",
"description": "decode with a not coprime to m",
"property": "decode",
"input": {
Expand Down
21 changes: 21 additions & 0 deletions exercises/all-your-base/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"cases": [
{
"uuid": "5ce422f9-7a4b-4f44-ad29-49c67cb32d2c",
"description": "single bit one to decimal",
"property": "rebase",
"input": {
Expand All @@ -24,6 +25,7 @@
"expected": [1]
},
{
"uuid": "0cc3fea8-bb79-46ac-a2ab-5a2c93051033",
"description": "binary to single decimal",
"property": "rebase",
"input": {
Expand All @@ -34,6 +36,7 @@
"expected": [5]
},
{
"uuid": "f12db0f9-0d3d-42c2-b3ba-e38cb375a2b8",
"description": "single decimal to binary",
"property": "rebase",
"input": {
Expand All @@ -44,6 +47,7 @@
"expected": [1, 0, 1]
},
{
"uuid": "2c45cf54-6da3-4748-9733-5a3c765d925b",
"description": "binary to multiple decimal",
"property": "rebase",
"input": {
Expand All @@ -54,6 +58,7 @@
"expected": [4, 2]
},
{
"uuid": "65ddb8b4-8899-4fcc-8618-181b2cf0002d",
"description": "decimal to binary",
"property": "rebase",
"input": {
Expand All @@ -64,6 +69,7 @@
"expected": [1, 0, 1, 0, 1, 0]
},
{
"uuid": "8d418419-02a7-4824-8b7a-352d33c6987e",
"description": "trinary to hexadecimal",
"property": "rebase",
"input": {
Expand All @@ -74,6 +80,7 @@
"expected": [2, 10]
},
{
"uuid": "d3901c80-8190-41b9-bd86-38d988efa956",
"description": "hexadecimal to trinary",
"property": "rebase",
"input": {
Expand All @@ -84,6 +91,7 @@
"expected": [1, 1, 2, 0]
},
{
"uuid": "5d42f85e-21ad-41bd-b9be-a3e8e4258bbf",
"description": "15-bit integer",
"property": "rebase",
"input": {
Expand All @@ -94,6 +102,7 @@
"expected": [6, 10, 45]
},
{
"uuid": "d68788f7-66dd-43f8-a543-f15b6d233f83",
"description": "empty list",
"property": "rebase",
"input": {
Expand All @@ -104,6 +113,7 @@
"expected": [0]
},
{
"uuid": "5e27e8da-5862-4c5f-b2a9-26c0382b6be7",
"description": "single zero",
"property": "rebase",
"input": {
Expand All @@ -114,6 +124,7 @@
"expected": [0]
},
{
"uuid": "2e1c2573-77e4-4b9c-8517-6c56c5bcfdf2",
"description": "multiple zeros",
"property": "rebase",
"input": {
Expand All @@ -124,6 +135,7 @@
"expected": [0]
},
{
"uuid": "3530cd9f-8d6d-43f5-bc6e-b30b1db9629b",
"description": "leading zeros",
"property": "rebase",
"input": {
Expand All @@ -134,6 +146,7 @@
"expected": [4, 2]
},
{
"uuid": "a6b476a1-1901-4f2a-92c4-4d91917ae023",
"description": "input base is one",
"property": "rebase",
"input": {
Expand All @@ -144,6 +157,7 @@
"expected": {"error": "input base must be >= 2"}
},
{
"uuid": "e21a693a-7a69-450b-b393-27415c26a016",
"description": "input base is zero",
"property": "rebase",
"input": {
Expand All @@ -154,6 +168,7 @@
"expected": {"error": "input base must be >= 2"}
},
{
"uuid": "54a23be5-d99e-41cc-88e0-a650ffe5fcc2",
"description": "input base is negative",
"property": "rebase",
"input": {
Expand All @@ -164,6 +179,7 @@
"expected": {"error": "input base must be >= 2"}
},
{
"uuid": "9eccf60c-dcc9-407b-95d8-c37b8be56bb6",
"description": "negative digit",
"property": "rebase",
"input": {
Expand All @@ -174,6 +190,7 @@
"expected": {"error": "all digits must satisfy 0 <= d < input base"}
},
{
"uuid": "232fa4a5-e761-4939-ba0c-ed046cd0676a",
"description": "invalid positive digit",
"property": "rebase",
"input": {
Expand All @@ -184,6 +201,7 @@
"expected": {"error": "all digits must satisfy 0 <= d < input base"}
},
{
"uuid": "14238f95-45da-41dc-95ce-18f860b30ad3",
"description": "output base is one",
"property": "rebase",
"input": {
Expand All @@ -194,6 +212,7 @@
"expected": {"error": "output base must be >= 2"}
},
{
"uuid": "73dac367-da5c-4a37-95fe-c87fad0a4047",
"description": "output base is zero",
"property": "rebase",
"input": {
Expand All @@ -204,6 +223,7 @@
"expected": {"error": "output base must be >= 2"}
},
{
"uuid": "13f81f42-ff53-4e24-89d9-37603a48ebd9",
"description": "output base is negative",
"property": "rebase",
"input": {
Expand All @@ -214,6 +234,7 @@
"expected": {"error": "output base must be >= 2"}
},
{
"uuid": "0e6c895d-8a5d-4868-a345-309d094cfe8d",
"description": "both bases are negative",
"property": "rebase",
"input": {
Expand Down
Loading

0 comments on commit 8883538

Please sign in to comment.