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. ;; Performs self-tests of this module.
(define (mbase-dir-tests!) (define (mbase-dir-tests!)
(run-tests (run-tests
members-base mbase-dir
(test-equal? files+symlinks->files-dictionary (test-equal? files+symlinks->files-dictionary
(files+symlinks->files-dictionary (files+symlinks->files-dictionary
'(joe (2803 . joe))) '(joe (2803 . joe)))

View file

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

View file

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