From b6d12e309b207c25de7873f658aa0f88ea77080c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 30 Dec 2019 02:11:38 +0100 Subject: Reworked tests. --- tests/prop.scm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'tests/prop.scm') diff --git a/tests/prop.scm b/tests/prop.scm index 15ccb355..a302d790 100644 --- a/tests/prop.scm +++ b/tests/prop.scm @@ -1,9 +1,12 @@ -(use-modules (vcomponent) - (util)) +(((vcomponent base) prop attr* properties) + ((vcomponent parse) parse-calendar) + ((util) sort*)) -(define v (make-vcomponent - (string-append (getenv "TESTPATH") - "/prop.ics"))) +(define v (call-with-input-string + "BEGIN:VCOMPONENT +KEY;A=1;B=2:Some text +END:VCOMPONENT" + parse-calendar)) (test-equal '("1") (prop (attr* v 'KEY) 'A)) (test-equal '("2") (prop (attr* v 'KEY) 'B)) -- cgit v1.2.3