X-Git-Url: https://git.jsancho.org/?p=bongodb.git;a=blobdiff_plain;f=tests%2Fsample.scm;h=aeccc600e751a7684fc369767c6504c0184aa4cc;hp=bd2cc6ef407a1de2acae76b126a25b661aff0edb;hb=ad684286a189372fef4946c4fc2d78c75685bd19;hpb=a5972febd232c4afd64499826c7faab85a10ee03 diff --git a/tests/sample.scm b/tests/sample.scm index bd2cc6e..aeccc60 100644 --- a/tests/sample.scm +++ b/tests/sample.scm @@ -25,10 +25,10 @@ (test-assert (collection? col)) ; Insert -(set! col (insert col - '((a . 1) (b . 2)) - '((a . 10) (b . 20)) - '((a . 1) (c . "hello world")))) +(insert col + '((a . 1) (b . 2)) + '((a . 10) (b . 20)) + '((a . 1) (c . "hello world"))) (test-eqv 3 (count col)) ; Search @@ -41,7 +41,7 @@ (test-eqv 2 (length (find col ($not ($exists 'c))))) ; Update -(set! col (update col ($exists 'c) ($set 'c "test"))) +(update col ($exists 'c) ($set 'c "test")) (test-eqv 1 (length (find col ($eq 'c "test")))) (test-end "bongodb")