[Commit] nickle/test orderofoptest.5c,1.5,1.6
Keith Packard
commit at keithp.com
Wed Jul 28 17:23:35 PDT 2004
- Previous message: [Commit] nickle/examples Makefile.am, 1.1, 1.2 mutextest.5c, 1.7,
1.8 skiplist.5c, NONE, 1.1 skiplisttest.5c, NONE, 1.1
- Next message: [Commit] tess ChangeLog,1.18,1.19 kbentley.5c,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: keithp
Update of /local/src/CVS/nickle/test
In directory home.keithp.com:/tmp/cvs-serv4806/test
Modified Files:
orderofoptest.5c
Log Message:
2004-07-28 Keith Packard <keithp at keithp.com>
* configure.in:
* main.c: (main):
Unlimit stack so that GC can recurse forever
* examples/Makefile.am:
* examples/mutextest.5c:
* examples/skiplist.5c:
* examples/skiplisttest.5c:
Add skiplists
* gram.y:
Fix precedence of ** so that ++x**2 works
* hash.c: (HashEqual):
Make sure hash element in table is valid before comparing
* lex.l:
Track newlines in files better.
* test/orderofoptest.5c:
Add comments about x value for each test.
Index: orderofoptest.5c
===================================================================
RCS file: /local/src/CVS/nickle/test/orderofoptest.5c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- orderofoptest.5c 23 Apr 2004 16:48:12 -0000 1.5
+++ orderofoptest.5c 29 Jul 2004 00:23:33 -0000 1.6
@@ -19,16 +19,16 @@
int x = 10;
-check(++x%x, 0);
-check(x%++x, 11);
-check(-++x, -13);
-check((++x)!, 87178291200);
-check(++x**2, 225);
-check(2**++x, 65536);
-check(++x*2, 34);
-check(2*++x, 36);
-check(++x/2, 9.5);
-check(2/++x, 0.1);
+check(++x%x, 0); /* 11 */
+check(x%++x, 11); /* 12 */
+check(-++x, -13); /* 13 */
+check((++x)!, 87178291200); /* 14 */
+check(++x**2, 225); /* 15 */
+check(2**++x, 65536); /* 16 */
+check(++x*2, 34); /* 17 */
+check(2*++x, 36); /* 18 */
+check(++x/2, 9.5); /* 19 */
+check(2/++x, 0.1); /* 20 */
check(++x//2, 10); /* 21 */
check(2//++x, 0); /* 22 */
check(++x%2, 1); /* 23 */
- Previous message: [Commit] nickle/examples Makefile.am, 1.1, 1.2 mutextest.5c, 1.7,
1.8 skiplist.5c, NONE, 1.1 skiplisttest.5c, NONE, 1.1
- Next message: [Commit] tess ChangeLog,1.18,1.19 kbentley.5c,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commit
mailing list