diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-10-16 14:57:08 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-10-16 14:57:08 +0200 |
commit | 9b28572aefbfecbb9caf96a54bdb4a817edbad61 (patch) | |
tree | 9f863869b8b2102aea4674cf4005322a1c856b7b /tests/formats/ical.scm | |
parent | Add test for object equivalence. (diff) | |
download | calp-9b28572aefbfecbb9caf96a54bdb4a817edbad61.tar.gz calp-9b28572aefbfecbb9caf96a54bdb4a817edbad61.tar.xz |
Rewrote the data format tests.
Diffstat (limited to '')
-rw-r--r-- | tests/formats/ical.scm | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/formats/ical.scm b/tests/formats/ical.scm deleted file mode 100644 index 5747e2ea..00000000 --- a/tests/formats/ical.scm +++ /dev/null @@ -1,24 +0,0 @@ -(define-module (ical) - :use-module (srfi srfi-88) - :use-module ((hnh util) :select (sort*)) - :use-module (hnh util path) - :use-module ((rnrs io ports) :select (get-string-all)) - :use-module ((vcomponent formats ical) :prefix #{ics:}#) - :export (sanitize-string - serialize - deserialize - component-str)) - -;; Technically not back into source, since order of children isn't -;; stable. That's also why we just check that all lines are present, -;; regardless of order. -(define (sanitize-string str) - (sort* (string-split str #\newline) - string<)) - -(define serialize ics:serialize) -(define deserialize ics:deserialize) - -(define component-str - (call-with-input-file (path-append (getenv "here") "event.ics") - get-string-all)) |