mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-25 23:21:15 -03:00
math: Add length to missing operator error
This commit is contained in:
@@ -131,6 +131,11 @@ not math '2 + 2 4'
|
||||
# This regex to check whitespace - the error appears between the second 2 and the 4!
|
||||
# (right after the 2)
|
||||
# CHECKERR: {{^}} ^
|
||||
printf '<%s>\n' (math '2 + 2 4' 2>&1)
|
||||
# CHECK: <math: Error: Missing operator>
|
||||
# CHECK: <'2 + 2 4'>
|
||||
# CHECK: < ^~~~~^>
|
||||
|
||||
not math '(1 2)'
|
||||
# CHECKERR: math: Error: Missing operator
|
||||
# CHECKERR: '(1 2)'
|
||||
|
||||
Reference in New Issue
Block a user