/usr/share/picolisp/test/src/db.l is in picolisp 3.1.5.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | # 08oct09abu
# (c) Software Lab. Alexander Burger
### id ###
(test *DB (id 1))
(test 1 (id *DB))
(let I (id 3 4)
(test (3 . 4) (id I T)) )
### lieu ###
(rollback)
(test NIL (lieu *DB))
(test *DB (val *DB) (lieu *DB))
### commit rollback ###
(let (X (new T) Y (new T))
(set X 1 Y 2)
(commit)
(test 1 (val X))
(test 2 (val Y))
(set X 111)
(set Y 222)
(test 111 (val X))
(test 222 (val Y))
(rollback)
(test 1 (val X))
(test 2 (val Y)) )
### mark ###
(test NIL (mark *DB))
(test NIL (mark *DB T))
(test T (mark *DB))
(test T (mark *DB 0))
(test NIL (mark *DB))
### dbck ###
(test NIL (dbck))
# vi:et:ts=3:sw=3
|