File: arrays.lisp

package info (click to toggle)
cl-metabang-bind 20230508.git0819642-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 244 kB
  • sloc: lisp: 1,607; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (6)
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
(in-package #:metabang-bind-test)

(deftestsuite test-arrays (metabang-bind-test)
  ())

(addtest (test-arrays)
  basic-access
  (ensure-same
   (bind ((#(a b c) #(1 2 3)))
     (list a b c))
   '(1 2 3) :test 'equal))

(addtest (test-arrays)
  two-dimensional
  (ensure-same
   (bind ((#2a((a b c) (d e f)) #2a((1 2 3) (4 5 6))))
     (list a b c d e f))
   '(1 2 3 4 5 6) :test 'equal))

(addtest (test-arrays)
  basic-access-nils
  (ensure-same
   (bind ((#(a nil c) #(1 2 3)))
     (list a c))
   '(1 3) :test 'equal))