Skip to content

Commit dc9a5af

Browse files
sesamemuchorpottsoh
authored andcommitted
Update canonical-data.json (#1287)
A solution on the C track only worked because all the acronyms were shorter than 8 letters. Specifically, the student allocated a buffer the size of a char pointer, instead of a buffer n characters long.
1 parent 041d841 commit dc9a5af

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

exercises/acronym/canonical-data.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exercise": "acronym",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"cases": [
55
{
66
"description": "Abbreviate a phrase",
@@ -44,6 +44,14 @@
4444
"phrase": "Complementary metal-oxide semiconductor"
4545
},
4646
"expected": "CMOS"
47+
},
48+
{
49+
"description": "very long abbreviation",
50+
"property": "abbreviate",
51+
"input": {
52+
"phrase": "Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me"
53+
},
54+
"expected": "ROTFLSHTMDCOALM"
4755
}
4856
]
4957
}

0 commit comments

Comments
 (0)