projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r9230: fix loop tests
[clsql.git]
/
tests
/
test-oodml.lisp
diff --git
a/tests/test-oodml.lisp
b/tests/test-oodml.lisp
index 9969abde55dc504ac479eedd358a7eda907a9730..a3396e5ef3c95bcefdfd824dce8babfa7794c868 100644
(file)
--- a/
tests/test-oodml.lisp
+++ b/
tests/test-oodml.lisp
@@
-59,14
+59,6
@@
3)
(deftest :oodml/select/6
3)
(deftest :oodml/select/6
- (slot-value (caar (clsql:select 'employee :where [= 1 [emplid]])) 'married)
- t)
-
-(deftest :oodml/select/7
- (slot-value (caar (clsql:select 'employee :where [= 4 [emplid]])) 'married)
- nil)
-
-(deftest :oodml/select/8
(let ((a (caar (clsql:select 'address :where [= 1 [emplid]]))))
(values
(slot-value a 'street-number)
(let ((a (caar (clsql:select 'address :where [= 1 [emplid]]))))
(values
(slot-value a 'street-number)
@@
-75,7
+67,7
@@
(slot-value a 'postal-code)))
10 "Park Place" "Leningrad" 123)
(slot-value a 'postal-code)))
10 "Park Place" "Leningrad" 123)
-(deftest :oodml/select/
9
+(deftest :oodml/select/
7
(let ((a (caar (clsql:select 'address :where [= 2 [emplid]]))))
(values
(slot-value a 'street-number)
(let ((a (caar (clsql:select 'address :where [= 2 [emplid]]))))
(values
(slot-value a 'street-number)
@@
-84,10
+76,10
@@
(slot-value a 'postal-code)))
nil "" "no city" 0)
(slot-value a 'postal-code)))
nil "" "no city" 0)
-(deftest :oodml/select/
10
+(deftest :oodml/select/
8
(mapcar #'(lambda (e) (slot-value e 'married))
(clsql:select 'employee :flatp t :order-by [emplid]))
(mapcar #'(lambda (e) (slot-value e 'married))
(clsql:select 'employee :flatp t :order-by [emplid]))
- (
T T T NIL NIL NIL NIL NIL NIL NIL
))
+ (
t t t nil nil nil nil nil nil nil
))
;; tests update-records-from-instance
(deftest :oodml/update-records/1
;; tests update-records-from-instance
(deftest :oodml/update-records/1