Skip to content

Commit f271dca

Browse files
committed
Add extra indentation test cases for records and protocols
1 parent 083f554 commit f271dca

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
(defrecord Thing [a]
2+
FileNameMap
3+
(getContentTypeFor [_ file-name]
4+
(str a "-" file-name))
5+
Object
6+
(toString [_]
7+
"My very own thing!!"))
8+
9+
(defrecord TheNameOfTheRecord
10+
[a pretty long argument list]
11+
SomeType
12+
(assoc [_ x]
13+
(.assoc pretty x 10)))
14+
15+
(extend-protocol MyProtocol
16+
goog.date.Date
17+
(-to-date-time [x]
18+
(goog.date.UtcDateTime. (.getYear x)
19+
(.getMonth x)
20+
(.getDate x))))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
(defrecord Thing [a]
2+
FileNameMap
3+
(getContentTypeFor [_ file-name]
4+
(str a "-" file-name))
5+
Object
6+
(toString [_]
7+
"My very own thing!!"))
8+
9+
(defrecord TheNameOfTheRecord
10+
[a pretty long argument list]
11+
SomeType
12+
(assoc [_ x]
13+
(.assoc pretty x 10)))
14+
15+
(extend-protocol MyProtocol
16+
goog.date.Date
17+
(-to-date-time [x]
18+
(goog.date.UtcDateTime. (.getYear x)
19+
(.getMonth x)
20+
(.getDate x))))

0 commit comments

Comments
 (0)