Soft'N'Design Software
/
projects
/
calc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9049369
)
correct a test
author
Laurent Mazet
<mazet@softndesign.org>
Fri, 27 Jan 2023 21:51:23 +0000
(22:51 +0100)
committer
Laurent Mazet
<mazet@softndesign.org>
Fri, 27 Jan 2023 21:51:23 +0000
(22:51 +0100)
calc.c
patch
|
blob
|
blame
|
history
diff --git
a/calc.c
b/calc.c
index 1a8dd679200f7b2847e365b9df8bba525d2d6f4f..826c58f49ffa83ee80605552510380624e1ba24e 100644
(file)
--- a/
calc.c
+++ b/
calc.c
@@
-291,7
+291,7
@@
int main (int argc, char *argv[])
// test: echo "-cos (0) + 1" | calc.exe | grep -q '=> -0'
// test: echo "-cos(0)+1" | calc.exe | grep -q '=> -0'
// test: echo "quit" | calc.exe | grep -q 'bye'
-// test: echo "help" | calc.exe | grep -q 'misc
ellaneous
'
+// test: echo "help" | calc.exe | grep -q 'misc
\.
'
// test: echo "1 + 2 *" | calc.exe | grep -q 'error'
// test: echo "* 1 - 2" | calc.exe | grep -q 'error'
// test: echo "2 + * 3" | calc.exe | grep -q 'error'