[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] pspp/tests formats/float-format.sh ChangeLog
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] pspp/tests formats/float-format.sh ChangeLog |
Date: |
Wed, 18 Jul 2007 02:44:30 +0000 |
CVSROOT: /cvsroot/pspp
Module name: pspp
Changes by: Ben Pfaff <blp> 07/07/18 02:44:30
Modified files:
tests/formats : float-format.sh
tests : ChangeLog
Log message:
Drop the tests that depend on parsing "-0" from a syntax file. Also
make float-format.sh error messages easier to read, by changing the
sed command so that error line numbers are easier to match to the test
input.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/tests/formats/float-format.sh?cvsroot=pspp&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/pspp/tests/ChangeLog?cvsroot=pspp&r1=1.93&r2=1.94
Patches:
Index: formats/float-format.sh
===================================================================
RCS file: /cvsroot/pspp/pspp/tests/formats/float-format.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- formats/float-format.sh 28 Oct 2006 04:01:55 -0000 1.1
+++ formats/float-format.sh 18 Jul 2007 02:44:29 -0000 1.2
@@ -51,12 +51,10 @@
cd $TEMPDIR
activity="create test program"
-sed -n \
- -e 's/#.*//' \
+sed -e 's/#.*//' \
-e 's/^[ ]*//' \
-e 's/[ ]*$//' \
- -e '/^$/d' \
- -e 's/^\(.*\)$/DEBUG FLOAT FORMAT \1./p' \
+ -e 's/^\(..*\)$/DEBUG FLOAT FORMAT \1./' \
> $TEMPDIR/float-format.pspp <<'EOF'
# Each of the tests below checks that conversion between
# floating-point formats works correctly. Comparisons that use ==
@@ -78,7 +76,6 @@
# IEEE special values.
0 == isb(x'00000000')
--0 == isb(x'80000000')
x('Infinity') == isb(x'7f800000')
x('-Infinity') == isb(x'ff800000')
x('NaN:') => isb(x'7f800001') # NaN requires nonzero fraction.
@@ -122,7 +119,7 @@
0.5 == zs(x'40800000') == isb(x'3f000000')
x('.4p-4') == zs(x'3f400000') == isb(x'3c800000')
0 == zs(x'00000000') == isb(x'00000000')
- -0 == zs(x'80000000') == isb(x'80000000')
+ zs(x'80000000') == isb(x'80000000')
-15 == zs(x'c1f00000') == isb(x'c1700000')
# x('.ffffffp252') == zs(x'7fffffff')
x('.3b4p8') == zs(x'423b4000')
Index: ChangeLog
===================================================================
RCS file: /cvsroot/pspp/pspp/tests/ChangeLog,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -b -r1.93 -r1.94
--- ChangeLog 12 Jul 2007 05:06:22 -0000 1.93
+++ ChangeLog 18 Jul 2007 02:44:30 -0000 1.94
@@ -1,3 +1,10 @@
+2007-07-17 Ben Pfaff <address@hidden>
+
+ * formats/float-format.h: Drop the tests that depend on parsing
+ "-0" from a syntax file. Also make float-format.sh error messages
+ easier to read, by changing the sed command so that error line
+ numbers are easier to match to the test input.
+
2007-07-11 Ben Pfaff <address@hidden>
* tests/xforms/expressions.sh: Remove unused file. Fixes bug
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] pspp/tests formats/float-format.sh ChangeLog,
Ben Pfaff <=