Start work on the new tool.

This commit is contained in:
Dominik Pantůček 2023-03-13 19:55:46 +01:00
parent bacd387957
commit ecb1fb6264
2 changed files with 38 additions and 5 deletions

36
brmsaptool.scm Normal file
View file

@ -0,0 +1,36 @@
;;
;; brmsaptool.scm
;;
;; Brmlab members management tool.
;;
;; ISC License
;;
;; Copyright 2023 Brmlab, z.s.
;; Dominik Pantůček <dominik.pantucek@trustica.cz>
;;
;; 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!)

View file

@ -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!)