Back

parse-ical (clj)

(source)

function

(parse-ical r)

Examples

tick
(ns tick.alpha.ical-test
  (:require
   [tick.alpha.ical :as ical]
   [clojure.java.io :as io]
   [clojure.test :refer [deftest is testing]]))

(deftest ^:tick.test/slow parse-icalendar-test
  (let [result (ical/parse-ical (io/reader (io/resource "gb.ics")))]
    (is (= 231 (-> result first :subobjects count)))))
juxt/tick
(ns tick.alpha.ical-test
  (:require
   [tick.alpha.ical :as ical]
   [clojure.java.io :as io]
   [clojure.test :refer [deftest is testing]]))

(deftest ^:tick.test/slow parse-icalendar-test
  (let [result (ical/parse-ical (io/reader (io/resource "gb.ics")))]
    (is (= 231 (-> result first :subobjects count)))))