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: 10 additions & 0 deletions exercises/practice/pig-latin/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,13 @@ description = "position of y in a word determines if it is a consonant or a vowe

[44616581-5ce3-4a81-82d0-40c7ab13d2cf]
description = "phrases are translated -> a whole phrase"
include = false

[44616581-5ce3-4a81-82d0-40c7ab13d2d0]
description = "phrases are translated -> a whole phrase"
include = false
reimplements = "44616581-5ce3-4a81-82d0-40c7ab13d2cf"

[44616581-5ce3-4a81-82d0-40c7ab13d2d1]
description = "phrases are translated -> a whole phrase"
reimplements = "44616581-5ce3-4a81-82d0-40c7ab13d2d0"
7 changes: 4 additions & 3 deletions exercises/practice/pig-latin/test-pig-latin.bats
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bats
load bats-extra

# generated on 2026-06-30T15:57:51+00:00
# generated on 2026-11-04T19:33:58+00:00

@test "word beginning with a" {
# [[ $BATS_RUN_SKIPPED == "true" ]] || skip
Expand Down Expand Up @@ -159,7 +159,8 @@ load bats-extra

@test "a whole phrase" {
[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run gawk -f pig-latin.awk <<< "quick fast run"
run gawk -f pig-latin.awk <<< "why do squids enjoy xrays"
assert_success
assert_output "ickquay astfay unray"
assert_output "ywhay oday idssquay enjoyay xraysay"
}

Loading