aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-01 16:39:09 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-01 16:39:09 -0400
commite74e0155f85817f94195bdd3bc5436fe857e91b0 (patch)
tree15f7064550a785fe28b6c19f5dbd3db382dae155 /test
parentb0875e1fa0f13935d6ac06a24dc6300a821f7652 (diff)
Remove test for character width
Diffstat (limited to 'test')
-rw-r--r--test/text.tm20
1 files changed, 11 insertions, 9 deletions
diff --git a/test/text.tm b/test/text.tm
index 812ecd3f..9634f17d 100644
--- a/test/text.tm
+++ b/test/text.tm
@@ -294,15 +294,17 @@ func main()
>> amelie.width()
= 6
- cowboy := "🤠"
- >> cowboy.width()
- = 2
- >> cowboy.left_pad(4)
- = " 🤠"
- >> cowboy.right_pad(4)
- = "🤠 "
- >> cowboy.middle_pad(4)
- = " 🤠 "
+
+ # Unicode character width is somewhat platform dependent:
+ # cowboy := "🤠"
+ # >> cowboy.width()
+ # = 2
+ # >> cowboy.left_pad(4)
+ # = " 🤠"
+ # >> cowboy.right_pad(4)
+ # = "🤠 "
+ # >> cowboy.middle_pad(4)
+ # = " 🤠 "
>> " one, ".trim(" ,")
= "one"