From 2f79da027729c6f84427cb2cbfb5a63d52006004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 24 Aug 2021 19:38:42 +0200 Subject: Warnings are errors when running tests. Should prevent warnings from slipping through the cracks. --- tests/vcomponent-control.scm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/vcomponent-control.scm') diff --git a/tests/vcomponent-control.scm b/tests/vcomponent-control.scm index 2ee4c243..a1300a8c 100644 --- a/tests/vcomponent-control.scm +++ b/tests/vcomponent-control.scm @@ -10,20 +10,20 @@ (define ev (call-with-input-string "BEGIN:DUMMY -KEY:value +X-KEY:value END:DUMMY" parse-calendar)) ;; Test that temoraries are set and restored -(test-equal "value" (prop ev 'KEY)) -(with-replaced-properties (ev (KEY "other")) - (test-equal "other" (prop ev 'KEY))) -(test-equal "value" (prop ev 'KEY)) +(test-equal "value" (prop ev 'X-KEY)) +(with-replaced-properties (ev (X-KEY "other")) + (test-equal "other" (prop ev 'X-KEY))) +(test-equal "value" (prop ev 'X-KEY)) ;; Test that they are restored on non-local exit (catch #t (lambda () - (with-replaced-properties (ev (KEY "other")) + (with-replaced-properties (ev (X-KEY "other")) (throw 'any))) (lambda _ - (test-equal "value" (prop ev 'KEY)))) + (test-equal "value" (prop ev 'X-KEY)))) -- cgit v1.2.3