aboutsummaryrefslogtreecommitdiff
path: root/tests/prop.scm
blob: 249dd21b09533a013402df10025829e701ac199c (plain)
1
2
3
4
5
6
7
8
9
10
11
(use-modules (vcalendar))

(define v (make-vcomponent
           (string-append (getenv "TESTPATH")
                          "/prop.ics")))

(test-equal '("1") (prop (attr* v 'KEY) 'A))
(test-equal '("2") (prop (attr* v 'KEY) 'B))
(test-equal #f (prop (attr* v 'KEY) 'C))

(test-equal '(A B) (map car (properties (attr* v 'KEY))))