summaryrefslogtreecommitdiffstats
path: root/tests/018
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-11 07:33:39 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-11 07:33:39 -0700
commit1a583e55bddab7b2146a7a3bfb51e7fcda87608b (patch)
tree82874f023e2a02f4209b2525ea3f3e360b6192a8 /tests/018
parentf6e56f2b6475a44dca8233e821dd802cde7bb8c7 (diff)
downloadtxr-1a583e55bddab7b2146a7a3bfb51e7fcda87608b.tar.gz
txr-1a583e55bddab7b2146a7a3bfb51e7fcda87608b.tar.bz2
txr-1a583e55bddab7b2146a7a3bfb51e7fcda87608b.zip
pic: clarification and tests.
* tests/018/format.tl: Add tests which combine overflow flagging with +/-. The space generated by - contributes to overflow. * txr.1: Clarify overflow issue in documentation.
Diffstat (limited to 'tests/018')
-rw-r--r--tests/018/format.tl6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/018/format.tl b/tests/018/format.tl
index d1038c30..23f4cc63 100644
--- a/tests/018/format.tl
+++ b/tests/018/format.tl
@@ -109,6 +109,12 @@
(pic "#.#" 123) "123.0")
(mtest
+ (pic "-##!#" 12) " 12.0"
+ (pic "+##!#" 12) "+12.0"
+ (pic "-##!#" -123) "#####"
+ (pic "+##!#" 123) "#####")
+
+(mtest
(pic "X##.#Y<<<Z>>>W" 1 2 3) "X 1.0Y2 Z 3W"
(pic "~###.#~#<<<~#>>>~#" 1 2 3) "# 1.0#2 # 3#")