forked from rnewman/clj-conneg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.clj
31 lines (25 loc) · 816 Bytes
/
tests.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(use 'clojure.test)
(use 'com.twinql.clojure.conneg)
(deftest test-acceptable-type
(are [x y out] (= out (acceptable-type x y))
["text" "plain"]
["text" "plain"]
["text" "plain"]
["text" "*"]
["text" "*"]
["text" "*"]
["*" "*"]
["text" "plain"]
["text" "plain"]
["text" "*"]
["text" "plain"]
["text" "plain"]
["text" "plain"]
["text" "*"]
["text" "plain"]
["*" "*"]
["*" "*"]
["*" "*"]
["text" "plain"]
["image" "*"]
nil))