Skip to content
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
10 changes: 5 additions & 5 deletions exercises/practice/acronym/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
17 changes: 17 additions & 0 deletions exercises/practice/acronym/.meta/test_template.tera
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
6 changes: 6 additions & 0 deletions exercises/practice/acronym/tests/acronym.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}