1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/local/bin/csi -q
;; Copyright 2007-2008, Matthew Welland.
;;
;; This program is made available under the GNU GPL version 2.0 or
;; greater. See the accompanying file COPYING for details.
;;
;; This program is distributed WITHOUT ANY WARRANTY; without even the
;; implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
;; PURPOSE.
(use test md5 dbi)
(load "./requirements.scm")
(load "./misc-stml.scm")
(load "./formdat.scm")
(load "./stml.scm")
(load "./session.scm")
(load "./sqltbl.scm")
|
|
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/local/bin/csi -q
;; Copyright 2007-2008, Matthew Welland.
;;
;; This program is made available under the GNU GPL version 2.0 or
;; greater. See the accompanying file COPYING for details.
;;
;; This program is distributed WITHOUT ANY WARRANTY; without even the
;; implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
;; PURPOSE.
(use test md5)
(require-library dbi)
(load "./requirements.scm")
(load "./misc-stml.scm")
(load "./formdat.scm")
(load "./stml.scm")
(load "./session.scm")
(load "./sqltbl.scm")
|
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
(test "misc:non-zero-string \"\"" #f (misc:non-zero-string ""))
(test "misc:non-zero-string #f" #f (misc:non-zero-string #f))
(test "misc:non-zero-string 'blah" #f (misc:non-zero-string 'blah))
;; forms
(define form #f)
(test "make <formdat>" #t (let ((f (make <formdat>)))
(set! form f)
#t))
(test "formdat: set!/get" "Yep!" (begin
(formdat:set! form "blah" "Yep!")
(formdat:get form "blah")))
(test "s:string->pgint" 123 (s:any->pgint "123"))
|
|
|
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
(test "misc:non-zero-string \"\"" #f (misc:non-zero-string ""))
(test "misc:non-zero-string #f" #f (misc:non-zero-string #f))
(test "misc:non-zero-string 'blah" #f (misc:non-zero-string 'blah))
;; forms
(define form #f)
(test "make <formdat>" #t (let ((f (make-formdat:formdat)))
(set! form f)
#t))
(test "formdat: set!/get" "Yep!" (begin
(formdat:set! form "blah" "Yep!")
(formdat:get form "blah")))
(test "s:string->pgint" 123 (s:any->pgint "123"))
|