From f1fbf833c4b6449b957d67456afca426778511dd Mon Sep 17 00:00:00 2001 From: Martin Nilsson <mani@lysator.liu.se> Date: Mon, 15 Mar 2004 23:14:52 +0100 Subject: [PATCH] Test swap_word and swap_long Rev: lib/modules/testsuite.in:1.24 --- lib/modules/testsuite.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/modules/testsuite.in b/lib/modules/testsuite.in index e38fcefdfd..6105135e3c 100644 --- a/lib/modules/testsuite.in +++ b/lib/modules/testsuite.in @@ -1,4 +1,4 @@ -dnl $Id: testsuite.in,v 1.23 2003/11/21 16:17:56 grubba Exp $ +dnl $Id: testsuite.in,v 1.24 2004/03/15 22:14:52 nilsson Exp $ dnl - Array @@ -649,6 +649,11 @@ test_eq( Int.parity(4), 1 ) test_eq( Int.parity(6), 0 ) test_eq( Int.parity(7), 1 ) +test_eq( Int.swap_word(array_sscanf("\1\2", "%2c")[0]), + array_sscanf("\2\1", "%2c")[0]) +test_eq( Int.swap_long(array_sscanf("\1\2\3\4", "%4c")[0]), + array_sscanf("\4\3\2\1", "%4c")[0]) + dnl - Mapping dnl Mapping.delete dnl Mapping.Iterator -- GitLab