We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 537d6e3 commit 4b9aa14Copy full SHA for 4b9aa14
exercises/luhn/.meta/version
@@ -1 +1 @@
1
-1.6.1
+1.7.0
exercises/luhn/luhn_test.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
2
3
-# local version: 1.6.1.0
+# local version: 1.7.0.0
4
5
@test "single digit strings can not be valid" {
6
#[[ $BATS_RUN_SKIPPED == true ]] || skip
@@ -51,6 +51,13 @@
51
[[ $output == "false" ]]
52
}
53
54
+@test "invalid long number with an even remainder" {
55
+ [[ $BATS_RUN_SKIPPED == true ]] || skip
56
+ run bash luhn.sh "1 2345 6789 1234 5678 9012"
57
+ [[ $status -eq 0 ]]
58
+ [[ $output == "false" ]]
59
+}
60
+
61
@test "valid number with an even number of digits" {
62
[[ $BATS_RUN_SKIPPED == true ]] || skip
63
run bash luhn.sh "095 245 88"
0 commit comments