Skip to content

Commit

Permalink
Fix ckb version regex test
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Jan 10, 2024
1 parent a51fca4 commit 68a13f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/app-config/src/tests/cli.bats
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ _full_help() {
function short_version { #@test
run _short
assert_success
assert_output --regexp "^ckb [0-9.]+[-]?[a-z0-9]*$"
assert_output --regexp "^ckb [0-9.]+[-[a-z0-9]*]?$"
}

#@test "ckb --version" {
function long_version { #@test
run _long
assert_success
assert_output --regexp "^ckb [0-9.]+-.*\([0-9a-z-]+ [0-9]{4}-[0-9]{2}-[0-9]{2}\)$"
assert_output --regexp "^ckb [0-9.]+[-[a-z0-9]*]? \([0-9a-z-]+ [0-9]{4}-[0-9]{2}-[0-9]{2}\)$"
}

function help { #@test
Expand Down

0 comments on commit 68a13f8

Please sign in to comment.