blob: d3ee37dccb427c25f6bc5a894745c554863e917a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
;;; Commentary:
;; Test that vcomponent parsing works at all.
;;; Code:
(define-module (test vcomponent)
:use-module (srfi srfi-64)
:use-module (srfi srfi-88)
:use-module ((vcomponent base) :select (prop))
:use-module ((vcomponent formats ical parse)
:select (parse-calendar)))
(define ev
(call-with-input-string
"BEGIN:DUMMY\nX-KEY:value\nEND:DUMMY"
parse-calendar))
(test-assert (eq? #f (prop ev 'MISSING)))
(test-assert (prop ev 'X-KEY))
(test-equal "value" (prop ev 'X-KEY))
|