(use String) (load "Test.carp") (load "Array.carp") (use Test) (deftest test (assert-equal test &[\s \v \e \d \รค \n \g] &(chars "svedรคng") "chars works as expected") (assert-equal test "svedรคng" &(from-chars &[\s \v \e \d \รค \n \g]) "from-chars works as expected") (assert-equal test &[\๐Ÿ˜€ \๐Ÿ˜€ \๐Ÿ˜€] &(chars "๐Ÿ˜€๐Ÿ˜€๐Ÿ˜€") "chars splits emoji") (assert-equal test "๐Ÿ˜€๐Ÿ˜€๐Ÿ˜€" &(from-chars &[\๐Ÿ˜€ \๐Ÿ˜€ \๐Ÿ˜€]) "from-chars joins emoji") )