OSSP CVS Repository

ossp - Difference in ossp-pkg/ui64/ui64_test.c versions 1.2 and 1.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/ui64/ui64_test.c 1.2 -> 1.3

--- ui64_test.c  2003/03/23 18:07:16     1.2
+++ ui64_test.c  2004/01/09 11:24:21     1.3
@@ -56,7 +56,7 @@
         n = ui64_i2n(x);
         if (n != table[i].num) {
             ts_test_fail(TS_CTX, "input %d, "
-                         "expected output %d, got output %d", 
+                         "expected output %d, got output %d",
                          table[i].num, table[i].num, n);
         }
     }
@@ -92,9 +92,9 @@
         cp = ui64_i2s(x, buf, sizeof(buf), table[i].in_base);
         if (strcasecmp(table[i].in_str, cp) != 0) {
             ts_test_fail(TS_CTX, "input \"%s\" (%d), "
-                         "expected output \"%s\" (%d), got output \"%s\" (%d)", 
-                         table[i].in_str, table[i].in_base, 
-                         table[i].in_str, table[i].in_base, 
+                         "expected output \"%s\" (%d), got output \"%s\" (%d)",
+                         table[i].in_str, table[i].in_base,
+                         table[i].in_str, table[i].in_base,
                          cp, table[i].in_base);
         }
 
@@ -103,9 +103,9 @@
         cp = ui64_i2s(x, buf, sizeof(buf), table[i].out_base);
         if (strcasecmp(table[i].out_str, cp) != 0) {
             ts_test_fail(TS_CTX, "input \"%s\" (%d), "
-                         "expected output \"%s\" (%d), got output \"%s\" (%d)", 
-                         table[i].out_str, table[i].out_base, 
-                         table[i].out_str, table[i].out_base, 
+                         "expected output \"%s\" (%d), got output \"%s\" (%d)",
+                         table[i].out_str, table[i].out_base,
+                         table[i].out_str, table[i].out_base,
                          cp, table[i].out_base);
         }
 
@@ -114,9 +114,9 @@
         cp = ui64_i2s(x, buf, sizeof(buf), table[i].out_base);
         if (strcasecmp(table[i].out_str, cp) != 0) {
             ts_test_fail(TS_CTX, "input \"%s\" (%d), "
-                         "expected output \"%s\" (%d), got output \"%s\" (%d)", 
-                         table[i].in_str, table[i].in_base, 
-                         table[i].out_str, table[i].out_base, 
+                         "expected output \"%s\" (%d), got output \"%s\" (%d)",
+                         table[i].in_str, table[i].in_base,
+                         table[i].out_str, table[i].out_base,
                          cp, table[i].out_base);
         }
     }
@@ -131,11 +131,11 @@
     char ov_a[128];
     char *ov_s;
     struct {
-        char *a1; 
+        char *a1;
         char *op;
-        char *a2; 
-        char *re; 
-        char *ov; 
+        char *a2;
+        char *re;
+        char *ov;
     } table[] = {
         /* addition */
         { "0", "+", "0", "0", "0" },
@@ -199,7 +199,7 @@
         if (   strcasecmp(re_s, table[i].re) != 0
             || strcasecmp(ov_s, table[i].ov) != 0) {
             ts_test_fail(TS_CTX, "%s %s %s = (expected) %s [%s] != %s [%s] (got)",
-                          table[i].a1, table[i].op, table[i].a2, 
+                          table[i].a1, table[i].op, table[i].a2,
                           table[i].re, table[i].ov, re_s, ov_s);
         }
     }
@@ -215,11 +215,11 @@
     char ov_a[128];
     char *ov_s;
     struct {
-        char *a1; 
+        char *a1;
         char *op;
-        int a2; 
-        char *re; 
-        char *ov; 
+        int a2;
+        char *re;
+        char *ov;
     } table[] = {
         /* rotate left */
         { "0", "<", 0, "0", "0" },
@@ -252,7 +252,7 @@
         if (   strcasecmp(re_s, table[i].re) != 0
             || strcasecmp(ov_s, table[i].ov) != 0) {
             ts_test_fail(TS_CTX, "%s %s %d = (expected) %s [%s] != %s [%s] (got)",
-                          table[i].a1, table[i].op, table[i].a2, 
+                          table[i].a1, table[i].op, table[i].a2,
                           table[i].re, table[i].ov, re_s, ov_s);
         }
     }

CVSTrac 2.0.1