#!/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")