Skip to content

Commit aaa8412

Browse files
authored
Simple Cipher: Corrected a test. (#731)
- The last line of the "Can generate a random key" test was incorrect.
1 parent 89b64e7 commit aaa8412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/practice/simple-cipher/simple_cipher.bats

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ load bats-extra
1212
assert_success
1313
key=$output
1414
assert [ "${#key}" -ge 100 ] # at least 100 chars
15-
[[ $key != [^[:lower:]] ]] # only lowercase letters
15+
[[ "$key" =~ ^[[:lower:]]+$ ]] # only lowercase letters
1616
}
1717

1818
@test "Can encode random" {

0 commit comments

Comments
 (0)