diff --git a/brmsaptool.scm b/brmsaptool.scm new file mode 100644 index 0000000..49004cd --- /dev/null +++ b/brmsaptool.scm @@ -0,0 +1,36 @@ +;; +;; brmsaptool.scm +;; +;; Brmlab members management tool. +;; +;; ISC License +;; +;; Copyright 2023 Brmlab, z.s. +;; Dominik Pantůček +;; +;; Permission to use, copy, modify, and/or distribute this software +;; for any purpose with or without fee is hereby granted, provided +;; that the above copyright notice and this permission notice appear +;; in all copies. +;; +;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL +;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED +;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE +;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR +;; CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +;; OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, +;; NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +;; CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +;; + +(import testing + listing + dictionary) + +;; Print banner +(print "brmsaptool 0.1 (c) 2023 Brmlab, z.s.") +(newline) + +;; Run tests +(listing-tests!) +(dictionary-tests!) diff --git a/dictionary.scm b/dictionary.scm index bc1656a..5613e12 100644 --- a/dictionary.scm +++ b/dictionary.scm @@ -30,7 +30,7 @@ dict-has-key? dict-ref dict-remove dict-set dict-keys - dict-tests! + dictionary-tests! ) (import scheme @@ -90,7 +90,7 @@ (map car d)) ;; Performs self-tests of the dictionary module. - (define (dict-tests!) + (define (dictionary-tests!) (run-tests dict (test-true make-dict (null? (make-dict))) @@ -104,6 +104,3 @@ )) ) - -(import dictionary) -(dict-tests!)