Small tests refactoring.

This commit is contained in:
Dominik Pantůček 2023-05-22 20:28:13 +02:00
parent aa6a9ac705
commit 1e59177e15
3 changed files with 8 additions and 8 deletions

View file

@ -157,7 +157,7 @@
;; Performs self-tests of this module.
(define (mbase-dir-tests!)
(run-tests
members-base
mbase-dir
(test-equal? files+symlinks->files-dictionary
(files+symlinks->files-dictionary
'(joe (2803 . joe)))

View file

@ -52,21 +52,21 @@
(define (run-all-tests!)
(listing-tests!)
(lset-tests!)
(ldict-tests!)
(bdict-tests!)
(cal-month-tests!)
(cal-period-tests!)
(cal-day-tests!)
(primes-tests!)
(brmember-tests!)
(mbase-dir-tests!)
(util-list-tests!)
(ansi-tests!)
(command-line-tests!)
(mbase-dir-tests!)
(primes-tests!)
(brmember-tests!)
(table-tests!)
(csv-simple-tests!)
(lset-tests!)
(parser-tests!)
(string-tests!)
(bdict-tests!))
(string-tests!))
)

View file

@ -236,7 +236,7 @@
;; Performs self-tests of the dictionary module.
(define (ldict-tests!)
(run-tests
dict
ldict
(test-equal? make-ldict (make-ldict) `(,TAG-LDICT (,eq?)))
(test-exn ldict-ref (ldict-ref (make-ldict) 'nonexistent))
(test-true ldict-ref (ldict-ref (make-ldict) 'nonexistent #t))