X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftest-oodml.lisp;h=f934e5e7db407db244e5015e70ee38d84894dc42;hb=e34a3ace07250c5c55b3f6598459ef7b6d292bdb;hp=2ae3005c55e16e73b5fd7473b233408313103f36;hpb=692ff4990d0cd04685531f524801b16d21cfbb49;p=clsql.git diff --git a/tests/test-oodml.lisp b/tests/test-oodml.lisp index 2ae3005..f934e5e 100644 --- a/tests/test-oodml.lisp +++ b/tests/test-oodml.lisp @@ -105,6 +105,16 @@ (employee-addresses employee2)) ((t t 2 2 2))) + (deftest :oodml/select/11 + (values (mapcar #'(lambda (x) (slot-value x 'emplid)) + (clsql:select 'employee :order-by '(([emplid] :asc)) + :flatp t)) + (mapcar #'(lambda (x) (slot-value x 'emplid)) + (clsql:select 'employee :order-by '(([emplid] :desc)) + :flatp t))) + (1 2 3 4 5 6 7 8 9 10) + (10 9 8 7 6 5 4 3 2 1)) + ;; test retrieval is deferred (deftest :oodm/retrieval/1 (every #'(lambda (e) (not (slot-boundp e 'company)))