Skip to content

Commit

Permalink
Add a test for unicode-3d style
Browse files Browse the repository at this point in the history
  • Loading branch information
cldwalker committed Aug 30, 2014
1 parent 4c10510 commit d0c2e6e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/table/core_test.clj
Expand Up @@ -15,7 +15,7 @@
+---+---+
| 3 | 4 |
+---+---+
") "\n")
") "\n")
(with-out-str (table [["1" "2"] ["3" "4"]])))))

(deftest test-table-with-vecs-in-vec
Expand Down Expand Up @@ -216,6 +216,18 @@
")
(table-str [[1 2] [3 4]] :style :unicode))))

(deftest test-table-with-unicode-3d-style
(is (=
(unindent
"
┌───┬───╖
│ 1 │ 2 ║
├───┼───╢
│ 3 │ 4 ║
╘═══╧═══╝
")
(table-str [[1 2] [3 4]] :style :unicode-3d))))

(deftest test-table-with-markdown-style
(is (=
(str "\n" (unindent
Expand Down

0 comments on commit d0c2e6e

Please sign in to comment.