aboutsummaryrefslogtreecommitdiff
path: root/test/text.tm
diff options
context:
space:
mode:
Diffstat (limited to 'test/text.tm')
-rw-r--r--test/text.tm13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/text.tm b/test/text.tm
index a1b36d97..91edddb4 100644
--- a/test/text.tm
+++ b/test/text.tm
@@ -361,3 +361,16 @@ func main():
= 1
>> concat4 == final
= yes
+
+ >> "x":left_pad(5)
+ = " x"
+ >> "x":right_pad(5)
+ = "x "
+ >> "x":middle_pad(5)
+ = " x "
+ >> "1234":left_pad(8, "XYZ")
+ = "XYZX1234" : Text
+ >> "1234":right_pad(8, "XYZ")
+ = "1234XYZX" : Text
+ >> "1234":middle_pad(9, "XYZ")
+ = "XY1234XYZ" : Text