File tree Expand file tree Collapse file tree
exercises/practice/acronym/.meta Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33{% if loop.index != 1 -%}
44#[ignore]
55{% endif -%}
6- fn {{ test.description | replace(from=" ", to="_") }}() {
7- let input = " {{ test.input.phrase }}" ;
8- let output = acronym::abbreviate (input);
9- let expected = " {{ test.expected }}" ;
6+ fn {{ test.description | lower | replace(from=" ", to="_") }}() {
7+ let input = {{ test.input.phrase | json_encode() }} ;
8+ let output = {{ crate_name }}::{{ fn_names[0] }} (input);
9+ let expected = {{ test.expected | json_encode() }} ;
1010 assert_eq!(output, expected);
1111}
1212{% endfor -%}
Original file line number Diff line number Diff line change 44#[ignore]
55{% endif -%}
66fn {{ test.description | lower | replace(from=" ", to="_") }}() {
7- let input = {{ test.input }};
7+ let input = {{ test.input | json_encode() }};
88 let output = {{ crate_name }}::{{ fn_names[0] }}(input);
9- let expected = {{ test.expected }};
9+ let expected = {{ test.expected | json_encode() }};
1010 assert_eq!(output, expected);
1111}
1212{% endfor -%}
You can’t perform that action at this time.
0 commit comments