mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-24 14:01:15 -03:00
Make test error when number is invalid nicer
This would print the default "Argument is invalid" error string, which is *true* but not super obvious, because `test` doesn't always perform numeric conversion, and that's the bit that failed here.
This commit is contained in:
@@ -37,7 +37,7 @@ function t
|
||||
end
|
||||
|
||||
t foo
|
||||
# CHECKERR: Invalid argument: 'foo'
|
||||
# CHECKERR: Argument is not a number: 'foo'
|
||||
# CHECKERR: {{.*}}test.fish (line {{\d+}}):
|
||||
# CHECKERR: test $argv[1] -eq 5
|
||||
# CHECKERR: ^
|
||||
|
||||
Reference in New Issue
Block a user