Add another pad() test.

This commit is contained in:
Dianne Skoll
2022-03-25 11:13:51 -04:00
parent 9488e7ca13
commit 6f6326d433
2 changed files with 6 additions and 0 deletions

View File

@@ -3930,6 +3930,11 @@ set a pad(11:33, " ", 12)
pad(11:33, " ", 12) => " 11:33"
set a pad(11:33, " ", 12, 1)
pad(11:33, " ", 12, 1) => "11:33 "
set a pad("foo", "0", $MaxStringLen+1)
$MaxStringLen => 65535
65535 + 1 => 65536
pad("foo", "0", 65536) => String too long
../tests/test.rem(799): String too long
# Don't want Remind to queue reminders
EXIT

View File

@@ -796,6 +796,7 @@ set a pad("foo", "quux", 14)
set a pad("foo", "quux", 14, 1)
set a pad(11:33, " ", 12)
set a pad(11:33, " ", 12, 1)
set a pad("foo", "0", $MaxStringLen+1)
# Don't want Remind to queue reminders
EXIT