diff --git a/exercises/practice/acronym/.docs/instructions.md b/exercises/practice/acronym/.docs/instructions.md index c62fc3e85..133bd2cbb 100644 --- a/exercises/practice/acronym/.docs/instructions.md +++ b/exercises/practice/acronym/.docs/instructions.md @@ -10,8 +10,8 @@ Punctuation is handled as follows: hyphens are word separators (like whitespace) For example: -|Input|Output| -|-|-| -|As Soon As Possible|ASAP| -|Liquid-crystal display|LCD| -|Thank George It's Friday!|TGIF| +| Input | Output | +| ------------------------- | ------ | +| As Soon As Possible | ASAP | +| Liquid-crystal display | LCD | +| Thank George It's Friday! | TGIF | diff --git a/exercises/practice/acronym/.meta/test_template.tera b/exercises/practice/acronym/.meta/test_template.tera index c8de609e1..24212ac48 100644 --- a/exercises/practice/acronym/.meta/test_template.tera +++ b/exercises/practice/acronym/.meta/test_template.tera @@ -10,3 +10,20 @@ fn {{ test.description | slugify | replace(from="-", to="_") }}() { assert_eq!(output, expected); } {% endfor -%} + +{# + This test makes the exercise noticeably harder. + + Upstreaming this test is not a good option, + as most other languages would exclude it due to the added difficulty. + Removing the test from the Rust track is also not a good option, + because it creates confusion regarding existing community solutions. + + While deviations from problem-specifications should generally be avoided, + it seems like the best choice to stick with it in this case. +#} +#[test] +#[ignore] +fn camelcase() { + assert_eq!(acronym::abbreviate("HyperText Markup Language"), "HTML"); +} diff --git a/exercises/practice/acronym/tests/acronym.rs b/exercises/practice/acronym/tests/acronym.rs index e90d943a1..971b76887 100644 --- a/exercises/practice/acronym/tests/acronym.rs +++ b/exercises/practice/acronym/tests/acronym.rs @@ -77,3 +77,9 @@ fn underscore_emphasis() { let expected = "TRNT"; assert_eq!(output, expected); } + +#[test] +#[ignore] +fn camelcase() { + assert_eq!(acronym::abbreviate("HyperText Markup Language"), "HTML"); +}