2024-06-23 12:49:58 -05:00
|
|
|
|
;;;; activity-servist/tests/signatures: Testing activity-servist/signatures.
|
2024-06-10 22:16:54 -05:00
|
|
|
|
|
2024-06-21 18:15:47 -05:00
|
|
|
|
;; Copyright © 2024 Jaidyn Levesque <jadedctrl@posteo.at>
|
2024-06-10 22:16:54 -05:00
|
|
|
|
;;
|
|
|
|
|
;; This program is free software: you can redistribute it and/or
|
|
|
|
|
;; modify it under the terms of the GNU Affero General Public License
|
|
|
|
|
;; as published by the Free Software Foundation, either version 3 of
|
|
|
|
|
;; the License, or (at your option) any later version.
|
|
|
|
|
;;
|
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU Affero General Public License for more details.
|
|
|
|
|
;;
|
|
|
|
|
;; You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
2024-06-23 12:49:58 -05:00
|
|
|
|
(defpackage :activity-servist/tests/signatures
|
2024-06-22 15:07:58 -05:00
|
|
|
|
(:use :cl :lisp-unit2)
|
2024-06-23 12:49:58 -05:00
|
|
|
|
(:nicknames "AS/T/S")
|
2024-06-22 17:44:08 -05:00
|
|
|
|
(:export :run :run-with-summary))
|
2024-06-10 22:16:54 -05:00
|
|
|
|
|
2024-06-23 12:49:58 -05:00
|
|
|
|
(in-package :activity-servist/tests/signatures)
|
2024-06-10 22:16:54 -05:00
|
|
|
|
|
2024-06-22 15:07:58 -05:00
|
|
|
|
(defun run ()
|
|
|
|
|
"Run all SIGNATURES tests."
|
2024-06-23 12:49:58 -05:00
|
|
|
|
(lisp-unit2:run-tests :package :activity-servist/tests/signatures))
|
2024-06-22 17:44:08 -05:00
|
|
|
|
|
|
|
|
|
(defun run-with-summary ()
|
|
|
|
|
"Run tests with summary for SIGNATURES."
|
|
|
|
|
(lisp-unit2:with-summary()
|
|
|
|
|
(run)))
|
2024-06-10 22:16:54 -05:00
|
|
|
|
|
2024-06-22 15:07:58 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; Test definitions
|
|
|
|
|
;;; ————————————————————————————————————————
|
2024-06-10 22:16:54 -05:00
|
|
|
|
(define-test string-sha256sum (:tags '(misc))
|
|
|
|
|
(assert-equal
|
|
|
|
|
"erws/VxJ7XO5xQBqpwHIUwG0P4q1Ek2D4N053+E2Ib8="
|
2024-06-23 12:49:58 -05:00
|
|
|
|
(as/s::string-sha256sum "This is a testing string~! ♥ ĉu ne?~")))
|