gbranden pushed a commit to branch master
in repository groff.

commit 19e6016e8926e8c8ea3c7d53604eb9358b684bdc
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Jul 31 15:29:49 2024 -0500

    [groff]: Fix test to avoid wrong implication.
    
    We're not testing or expecting saturating arithmetic (in general) _yet_.
    
    This commit can be straight-up reverted when I do land saturating
    arithmetic.
---
 src/roff/groff/tests/arithmetic-works.sh | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/roff/groff/tests/arithmetic-works.sh 
b/src/roff/groff/tests/arithmetic-works.sh
index c188ca867..291b930cd 100755
--- a/src/roff/groff/tests/arithmetic-works.sh
+++ b/src/roff/groff/tests/arithmetic-works.sh
@@ -27,7 +27,7 @@ wail () {
   fail=yes
 }
 
-# Unit-test saturating arithmetic.
+# Unit-test arithmetic.
 
 # Start with a couple of cases that proved fragile when developing it.
 #
@@ -104,12 +104,12 @@ input='.
 output=$(echo "$input" | "$groff" -T ascii)
 echo "$output"
 
-# saturating: 2147483647
+# 2147483647
 echo "checking assignment of huge value to register" >&2
 echo "$output" \
   | grep -Fqx '1: 99999999999999999999 -> 1410065407' || wail
 
-# saturating: -2147483648
+# -2147483648
 echo "checking assignment of huge negative value to register" >&2
 echo "$output" \
   | grep -Fqx '2: (-99999999999999999999) -> -1410065407' || wail
@@ -117,18 +117,18 @@ echo "$output" \
 echo "checking assignment of 2^31 - 1 to register" >&2
 echo "$output" | grep -Fqx '3: assign 2147483647 -> 2147483647' || wail
 
-# saturating: -2147483648
-echo "checking saturating incrementation of register" >&2
+# -2147483648
+echo "checking incrementation of register" >&2
 echo "$output" | grep -Fqx '4: incr 2147483647 -> -2147483648' || wail
 
 echo "checking negation of positive register" >&2
 echo "$output" | grep -Fqx '5: (-1)*2147483647 -> -2147483647' || wail
 
-echo "checking saturating decrementation of register" >&2
+echo "checking decrementation of register" >&2
 echo "$output" | grep -Fqx '6: decr -2147483648 -> -2147483648' || wail
 
-# saturating: 2147483647
-echo "checking negation of negatively saturated register" >&2
+# 2147483647
+echo "checking negation of negatively register" >&2
 echo "$output" | grep -Fqx '7: (-1)*(-2147483648) -> 0' \
   || wail
 

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to