Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/games/factor Make this test actually *work*...
details: https://anonhg.NetBSD.org/src/rev/8e77931fcbab
branches: trunk
changeset: 552675:8e77931fcbab
user: mycroft <mycroft%NetBSD.org@localhost>
date: Tue Sep 30 03:29:08 2003 +0000
description:
Make this test actually *work*...
diffstat:
regress/games/factor/factor.sh | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 37ce6edba535 -r 8e77931fcbab regress/games/factor/factor.sh
--- a/regress/games/factor/factor.sh Tue Sep 30 00:39:19 2003 +0000
+++ b/regress/games/factor/factor.sh Tue Sep 30 03:29:08 2003 +0000
@@ -1,8 +1,8 @@
#!/bin/ksh
function test_factor {
- echo "Testing: `eval factor $1`"
- res=`eval factor $1 2>&1`
+ echo "Testing: \`/usr/games/factor $1\`"
+ res=`/usr/games/factor $1 2>&1`
if [ "$res" != "$2" ]; then
echo "Expected \"$2\", got \"$res\" from factor: `eval echo $1`"
exit 1
@@ -14,5 +14,6 @@
# Test overflow cases
test_factor '8675309' '8675309: 8675309'
+test_factor '6172538568' '6172538568: 2 2 2 3 7 17 2161253'
exit 0
Home |
Main Index |
Thread Index |
Old Index