mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-29 00:36:22 +00:00
Initial import of LogDarioSeq baseline
Establishes version control for the personal Logseq DB fork before starting the server-client architecture migration and domain features described in docs/agent-guide and the approved implementation plan. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
commit
40631362b3
2016 files changed
+543898
No files matched your search
@@ -0,0 +1,19 @@
|
||||
(ns logseq.tasks.util-test
|
||||
(:require [cljs.test :refer [deftest is]]
|
||||
[logseq.tasks.util :as util]))
|
||||
|
||||
(deftest display-width-handles-wide-and-combining-characters
|
||||
(is (= 5 (util/display-width "hello")))
|
||||
(is (= 4 (util/display-width "中文")))
|
||||
(is (= 4 (util/display-width "한국")))
|
||||
(is (= 1 (util/display-width "e\u0301"))))
|
||||
|
||||
(deftest render-table-right-aligns-columns-using-display-width
|
||||
(is (= (str "| :locale | :language |\n"
|
||||
"|---------+-----------|\n"
|
||||
"| :en | English |\n"
|
||||
"| :ja | 日本語 |\n"
|
||||
"| :ko | 한국 |\n")
|
||||
(util/render-table [{:locale :en :language "English"}
|
||||
{:locale :ja :language "日本語"}
|
||||
{:locale :ko :language "한국"}]))))
|
||||
Reference in new issue
Block a user