mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
new upstream
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@10080 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# tests/factor.test - test functionality of factor.
|
||||
#
|
||||
# Copyright (c) 1999, 2003 Joseph Samuel Myers.
|
||||
# Copyright (c) 1999, 2003, 2004 Joseph Samuel Myers.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@@ -56,14 +56,34 @@ EOF
|
||||
compare test.out tests/factor.123456
|
||||
rm -f test.out
|
||||
|
||||
testno 5
|
||||
factor/factor 8675309 >test.out 2>&1 || failtest
|
||||
compare test.out tests/factor.8675309
|
||||
rm -f test.out
|
||||
|
||||
if grep -q HAVE_OPENSSL include/bsd-games.h; then
|
||||
testno 5
|
||||
testno 6
|
||||
factor/factor 6172538568 >test.out 2>&1 || failtest
|
||||
compare test.out tests/factor.6172538568
|
||||
rm -f test.out
|
||||
|
||||
testno 7
|
||||
factor/factor 987654321987654 >test.out 2>&1 || failtest
|
||||
compare test.out tests/factor.987654321987654
|
||||
rm -f test.out
|
||||
|
||||
testno 6
|
||||
testno 8
|
||||
factor/factor 987654321987654321987 >test.out 2>&1 || failtest
|
||||
compare test.out tests/factor.987654321987654321987
|
||||
rm -f test.out
|
||||
|
||||
testno 9
|
||||
factor/factor 99999999999991 >test.out 2>&1 || failtest
|
||||
compare test.out tests/factor.99999999999991
|
||||
rm -f test.out
|
||||
|
||||
testno 10
|
||||
factor/factor 2147483647111311 >test.out 2>&1 || failtest
|
||||
compare test.out tests/factor.2147483647111311
|
||||
rm -f test.out
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user