Skip to content

Fix acronym test template #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 0 additions & 144 deletions exercises/practice/acronym/test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -23,150 +23,6 @@ let tests = [
ae "HC" (acronym "Halley's Comet");
"underscore emphasis" >::
ae "TRNT" (acronym "The Road _Not_ Taken");
"basic" >::
ae "PNG" (acronym "Portable Network Graphics");
"lowercase words" >::
ae "ROR" (acronym "Ruby on Rails");
"punctuation" >::
ae "FIFO" (acronym "First In, First Out");
"all caps word" >::
ae "GIMP" (acronym "GNU Image Manipulation Program");
"punctuation without whitespace" >::
ae "CMOS" (acronym "Complementary metal-oxide semiconductor");
"very long abbreviation" >::
ae "ROTFLSHTMDCOALM" (acronym "Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me");
"consecutive delimiters" >::
ae "SIMUFTA" (acronym "Something - I made up from thin air");
"apostrophes" >::
ae "HC" (acronym "Halley's Comet");
"underscore emphasis" >::
ae "TRNT" (acronym "The Road _Not_ Taken");
"basic" >::
ae "PNG" (acronym "Portable Network Graphics");
"lowercase words" >::
ae "ROR" (acronym "Ruby on Rails");
"punctuation" >::
ae "FIFO" (acronym "First In, First Out");
"all caps word" >::
ae "GIMP" (acronym "GNU Image Manipulation Program");
"punctuation without whitespace" >::
ae "CMOS" (acronym "Complementary metal-oxide semiconductor");
"very long abbreviation" >::
ae "ROTFLSHTMDCOALM" (acronym "Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me");
"consecutive delimiters" >::
ae "SIMUFTA" (acronym "Something - I made up from thin air");
"apostrophes" >::
ae "HC" (acronym "Halley's Comet");
"underscore emphasis" >::
ae "TRNT" (acronym "The Road _Not_ Taken");
"basic" >::
ae "PNG" (acronym "Portable Network Graphics");
"lowercase words" >::
ae "ROR" (acronym "Ruby on Rails");
"punctuation" >::
ae "FIFO" (acronym "First In, First Out");
"all caps word" >::
ae "GIMP" (acronym "GNU Image Manipulation Program");
"punctuation without whitespace" >::
ae "CMOS" (acronym "Complementary metal-oxide semiconductor");
"very long abbreviation" >::
ae "ROTFLSHTMDCOALM" (acronym "Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me");
"consecutive delimiters" >::
ae "SIMUFTA" (acronym "Something - I made up from thin air");
"apostrophes" >::
ae "HC" (acronym "Halley's Comet");
"underscore emphasis" >::
ae "TRNT" (acronym "The Road _Not_ Taken");
"basic" >::
ae "PNG" (acronym "Portable Network Graphics");
"lowercase words" >::
ae "ROR" (acronym "Ruby on Rails");
"punctuation" >::
ae "FIFO" (acronym "First In, First Out");
"all caps word" >::
ae "GIMP" (acronym "GNU Image Manipulation Program");
"punctuation without whitespace" >::
ae "CMOS" (acronym "Complementary metal-oxide semiconductor");
"very long abbreviation" >::
ae "ROTFLSHTMDCOALM" (acronym "Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me");
"consecutive delimiters" >::
ae "SIMUFTA" (acronym "Something - I made up from thin air");
"apostrophes" >::
ae "HC" (acronym "Halley's Comet");
"underscore emphasis" >::
ae "TRNT" (acronym "The Road _Not_ Taken");
"basic" >::
ae "PNG" (acronym "Portable Network Graphics");
"lowercase words" >::
ae "ROR" (acronym "Ruby on Rails");
"punctuation" >::
ae "FIFO" (acronym "First In, First Out");
"all caps word" >::
ae "GIMP" (acronym "GNU Image Manipulation Program");
"punctuation without whitespace" >::
ae "CMOS" (acronym "Complementary metal-oxide semiconductor");
"very long abbreviation" >::
ae "ROTFLSHTMDCOALM" (acronym "Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me");
"consecutive delimiters" >::
ae "SIMUFTA" (acronym "Something - I made up from thin air");
"apostrophes" >::
ae "HC" (acronym "Halley's Comet");
"underscore emphasis" >::
ae "TRNT" (acronym "The Road _Not_ Taken");
"basic" >::
ae "PNG" (acronym "Portable Network Graphics");
"lowercase words" >::
ae "ROR" (acronym "Ruby on Rails");
"punctuation" >::
ae "FIFO" (acronym "First In, First Out");
"all caps word" >::
ae "GIMP" (acronym "GNU Image Manipulation Program");
"punctuation without whitespace" >::
ae "CMOS" (acronym "Complementary metal-oxide semiconductor");
"very long abbreviation" >::
ae "ROTFLSHTMDCOALM" (acronym "Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me");
"consecutive delimiters" >::
ae "SIMUFTA" (acronym "Something - I made up from thin air");
"apostrophes" >::
ae "HC" (acronym "Halley's Comet");
"underscore emphasis" >::
ae "TRNT" (acronym "The Road _Not_ Taken");
"basic" >::
ae "PNG" (acronym "Portable Network Graphics");
"lowercase words" >::
ae "ROR" (acronym "Ruby on Rails");
"punctuation" >::
ae "FIFO" (acronym "First In, First Out");
"all caps word" >::
ae "GIMP" (acronym "GNU Image Manipulation Program");
"punctuation without whitespace" >::
ae "CMOS" (acronym "Complementary metal-oxide semiconductor");
"very long abbreviation" >::
ae "ROTFLSHTMDCOALM" (acronym "Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me");
"consecutive delimiters" >::
ae "SIMUFTA" (acronym "Something - I made up from thin air");
"apostrophes" >::
ae "HC" (acronym "Halley's Comet");
"underscore emphasis" >::
ae "TRNT" (acronym "The Road _Not_ Taken");
"basic" >::
ae "PNG" (acronym "Portable Network Graphics");
"lowercase words" >::
ae "ROR" (acronym "Ruby on Rails");
"punctuation" >::
ae "FIFO" (acronym "First In, First Out");
"all caps word" >::
ae "GIMP" (acronym "GNU Image Manipulation Program");
"punctuation without whitespace" >::
ae "CMOS" (acronym "Complementary metal-oxide semiconductor");
"very long abbreviation" >::
ae "ROTFLSHTMDCOALM" (acronym "Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me");
"consecutive delimiters" >::
ae "SIMUFTA" (acronym "Something - I made up from thin air");
"apostrophes" >::
ae "HC" (acronym "Halley's Comet");
"underscore emphasis" >::
ae "TRNT" (acronym "The Road _Not_ Taken");
]

let () =
Expand Down
6 changes: 2 additions & 4 deletions templates/acronym/test.ml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ let ae exp got _test_ctxt =

let tests = [
{{#cases}}
{{#cases}}
"{{description}}" >::
{{#input}}ae {{expected}} (acronym {{phrase}}){{/input}};
{{/cases}}
"{{description}}" >::
{{#input}}ae {{expected}} (acronym {{phrase}}){{/input}};
{{/cases}}
]

Expand Down