From 97678a2e964b1bc981a7f862a43516459162c1f3 Mon Sep 17 00:00:00 2001 From: Scott Owens Date: Wed, 8 Feb 2006 18:15:33 +0000 Subject: [PATCH] Added some tests svn: r2175 original commit: 2dcb1412b56d8508f62ab7ccfa45933dd798e7b8 --- collects/parser-tools/private-lex/util.ss | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/collects/parser-tools/private-lex/util.ss b/collects/parser-tools/private-lex/util.ss index 739f436..931c54d 100644 --- a/collects/parser-tools/private-lex/util.ss +++ b/collects/parser-tools/private-lex/util.ss @@ -37,9 +37,12 @@ (hash-table-put! table key new) new)))))) (test-block ((cache (make-cache))) - ((cache '(1 2) (lambda () 9)) 9) - ((cache '(2 1) (lambda () 8)) 8) - ((cache '(1 2) (lambda () 1)) 9)) + ((cache '(s 1 2) (lambda () 9)) 9) + ((cache '(s 2 1) (lambda () 8)) 8) + ((cache '(s 1 2) (lambda () 1)) 9) + ((cache (cons 's (cons 0 (cons +inf.0 10))) (lambda () 22)) 22) + ((cache (cons 's (cons 0 (cons +inf.0 10))) (lambda () 1)) 22)) + ;; make-counter : -> -> nat