Skip to content

Commit a2b7d23

Browse files
committed
Update the templates to use boolean strings directly
1 parent 7f2bbf3 commit a2b7d23

11 files changed

Lines changed: 11 additions & 13 deletions

File tree

exercises/practice/allergies/.meta/template.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
run bash {{ solution }} {{ case["input"]["score"] }} allergic_to {{ case["input"]["item"] }}
77

88
assert_success
9-
assert_output "{{ case["expected"] | lower }}"
9+
assert_output "{{ case["expected"] }}"
1010
{%- else %}
1111
run bash {{ solution }} {{ case["input"]["score"] }} list
1212

exercises/practice/armstrong-numbers/.meta/template.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
{% if idx == 0 %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
55
run bash {{ solution }} {{ case["input"]["number"] }}
66
assert_success
7-
assert_output "{{ case["expected"] | lower }}"
7+
assert_output "{{ case["expected"] }}"
88
}
99
{% endfor %}

exercises/practice/isbn-verifier/.meta/template.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
{% if idx == 0 %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
55
run bash {{ solution }} '{{ case["input"]["isbn"] }}'
66
assert_success
7-
assert_output "{{ case["expected"] | lower }}"
7+
assert_output "{{ case["expected"] }}"
88
}
99
{% endfor %}

exercises/practice/isogram/.meta/template.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
{% if idx == 0 %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
55
run bash {{ solution }} '{{ case["input"]["phrase"] }}'
66
assert_success
7-
assert_output "{{ case["expected"] | lower }}"
7+
assert_output "{{ case["expected"] }}"
88
}
99
{% endfor %}

exercises/practice/leap/.meta/template.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
run bash {{ solution }} {{ case["input"]["year"] }}
66

77
assert_success
8-
assert_output "{{ case["expected"] | lower }}"
8+
assert_output "{{ case["expected"] }}"
99
}
1010
{% endfor %}
1111
@test 'No input should return an error' {

exercises/practice/luhn/.meta/template.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
{% if idx == 0 %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
55
run bash {{ solution }} "{{ case["input"]["value"] }}"
66
assert_success
7-
assert_output "{{ case["expected"] | lower }}"
7+
assert_output "{{ case["expected"] }}"
88
}
99
{% endfor %}

exercises/practice/matching-brackets/.meta/template.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
{% if idx == 0 %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
55
run bash {{ solution }} "{{ case["input"]["value"] }}"
66
assert_success
7-
assert_output "{{ case["expected"] | lower }}"
7+
assert_output "{{ case["expected"] }}"
88
}
99
{% endfor %}

exercises/practice/pangram/.meta/template.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
{% if idx == 0 %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
55
run bash {{ solution }} '{{ case["input"]["sentence"] }}'
66
assert_success
7-
assert_output "{{ case["expected"] | lower }}"
7+
assert_output "{{ case["expected"] }}"
88
}
99
{% endfor %}

exercises/practice/pythagorean-triplet/pythagorean_triplet.bats

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/usr/bin/env bats
22
load bats-extra
33

4-
# generated on 2026-06-29T06:52:43+00:00
5-
# local version: 2.0.0.0
4+
# generated on 2026-06-30T03:19:10+00:00
65

76
@test "triplets whose sum is 12" {
87
# [[ $BATS_RUN_SKIPPED == "true" ]] || skip

exercises/practice/satellite/satellite.bats

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/usr/bin/env bats
22
load bats-extra
33

4-
# generated on 2026-06-28T23:19:01+00:00
5-
# local version: 2.0.0.0
4+
# generated on 2026-06-30T03:19:10+00:00
65

76
@test "Empty tree" {
87
# [[ $BATS_RUN_SKIPPED == "true" ]] || skip

0 commit comments

Comments
 (0)