From d0c2e6efa0e39713ee6f1186ef9db0e5bab25ca8 Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Fri, 29 Aug 2014 20:26:06 -0400 Subject: [PATCH] Add a test for unicode-3d style --- test/table/core_test.clj | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/table/core_test.clj b/test/table/core_test.clj index 9321e47..f48714e 100644 --- a/test/table/core_test.clj +++ b/test/table/core_test.clj @@ -15,7 +15,7 @@ +---+---+ | 3 | 4 | +---+---+ - ") "\n") + ") "\n") (with-out-str (table [["1" "2"] ["3" "4"]]))))) (deftest test-table-with-vecs-in-vec @@ -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