diff options
Diffstat (limited to 'test/runner')
| -rwxr-xr-x | test/runner | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/runner b/test/runner new file mode 100755 index 0000000..ad5b381 --- /dev/null +++ b/test/runner @@ -0,0 +1,24 @@ +#!/bin/sh +# -*- mode: scheme; -*- +exec guile --debug -s "$0" "$@" +!# + +(define-module (test-runner) + #:use-module (ice-9 match) + #:use-module (srfi srfi-64) + ) + +(test-begin "runner") + +(test-begin "vec-test") +(define v (make-vector 5 99)) +;; Require that an expression evaluate to true. +(test-assert (vector? v)) +;; Test that an expression is eqv? to some other expression. +(test-eqv 99 (vector-ref v 2)) +(vector-set! v 2 7) +(test-eqv 7 (vector-ref v 2)) +;; Finish the testsuite, and report results. +(test-end "vec-test") + +(test-end "runner") |
