-
Notifications
You must be signed in to change notification settings - Fork 1
/
platform.clj
52 lines (36 loc) · 1.7 KB
/
platform.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
(ns cljdoc-exerciser.platform
"Clojure namespace - test when there are differences between platforms.")
(defn same "Docstring matches for all platforms, but links to sources should be different" [same])
(defn docs-differ "Clojure specific docstring here" [same])
(defn args-differ "Docstrings same, but arglists differ" [clj])
(defn args-differ-bigger "Docstring same, but arglists differ
And... with more text.
Just to see how that will render."
([a b c])
([x y]))
(defn docs-and-args-differ "Clojure specific docstring here, args differ too" [clj])
(defn docs-and-args-differ-bigger "Clojure specific docstring here, args differ too
With additional text to see how
that renders."
([a b c])
([x y]))
(defn docs-clj-only "Here we have docs for Clojure
But none for ClojureScript" [a])
(defn docs-cljs-only [a])
(defn clj-only "This fn appears only in Clojure" [a])
(defprotocol ProtoAllSame
"Protocol with matching everything"
(proto1-same1 [a b] "docstring for proto1-same1")
(proto1-same2 [a] [a b] [a b c] "docstring for proto1-same2"))
(defprotocol ProtoDocsDiffer
"Protocol with Clojure specific docstring"
(proto2-same1 [a b] "docstring for proto2-same1")
(proto2-same2 [a] [a b] [a b c] "docstring for proto2-same2") )
(defprotocol ProtoDocsAndMembersDiffer
"Protocol with Clojure specific docstring"
(proto3-clj-only [a b] "docstring for proto3-clj-only")
(proto3-docs-and-args-differ [a] [a b] "a clojure specific
docstring here")
(proto3-docstrings-differ [a b] "clojure specific docstring for proto3-docstrings-differ")
(proto3-args-differ [a b] "dosctrings same, arglists differ for proto3-args-differ")
(proto3-same [a] [a b] [a b c] "docstring for proto3-same"))