X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=tests.lisp;h=d78aba3f890c5fbbe445f61e86bb075a73cae23f;hp=b555555c170c45c182922c8a46decfd23e700238;hb=9861627be14c8df1d16a25fb062d718051a636b7;hpb=78b62107690123d8d7a1a400e4a1d744408a05b1 diff --git a/tests.lisp b/tests.lisp index b555555..d78aba3 100644 --- a/tests.lisp +++ b/tests.lisp @@ -9,7 +9,7 @@ ;;;; ;;;; $Id$ ;;;; -;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg +;;;; This file is Copyright (c) 2000-2006 by Kevin M. Rosenberg ;;;; ;;;; ************************************************************************* @@ -64,6 +64,22 @@ (deftest :sdstl.4 (string-delimited-string-to-list "ab|cd|ef" "ab") ("" "|cd|ef")) +(deftest :hexstr.1 (binary-sequence-to-hex-string ()) + "") + +(deftest :hexstr.2 (binary-sequence-to-hex-string #()) + "") + +(deftest :hexstr.3 (binary-sequence-to-hex-string #(165)) + "a5" +) + +(deftest :hexstr.4 (binary-sequence-to-hex-string (list 165)) + "a5") + +(deftest :hexstr.5 (binary-sequence-to-hex-string #(165 86)) + "a556") + (deftest :apsl.1 (append-sublists '((a b) (c d))) (a b c d)) (deftest :apsl.2 (append-sublists nil) nil) (deftest :apsl.3 (append-sublists '((a b))) (a b)) @@ -396,7 +412,15 @@ (deftest :unique.2 (unique-slot-values nil 'a) nil) - + +(deftest :nwp.1 + (numbers-within-percentage 1. 1.1 9) + nil) + +(deftest :nwp.2 + (numbers-within-percentage 1. 1.1 11) + t) + ;;; MOP Testing