aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Text.lines.3
diff options
context:
space:
mode:
Diffstat (limited to 'man/man3/tomo-Text.lines.3')
-rw-r--r--man/man3/tomo-Text.lines.317
1 files changed, 6 insertions, 11 deletions
diff --git a/man/man3/tomo-Text.lines.3 b/man/man3/tomo-Text.lines.3
index 855abbd8..60aa4430 100644
--- a/man/man3/tomo-Text.lines.3
+++ b/man/man3/tomo-Text.lines.3
@@ -2,7 +2,7 @@
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
-.TH Text.lines 3 2025-04-30 "Tomo man-pages"
+.TH Text.lines 3 2025-09-21 "Tomo man-pages"
.SH NAME
Text.lines \- get list of lines
.SH LIBRARY
@@ -29,14 +29,9 @@ A list of substrings resulting from the split.
.SH EXAMPLES
.EX
->> "one\[rs]ntwo\[rs]nthree".lines()
-= ["one", "two", "three"]
->> "one\[rs]ntwo\[rs]nthree\[rs]n".lines()
-= ["one", "two", "three"]
->> "one\[rs]ntwo\[rs]nthree\[rs]n\[rs]n".lines()
-= ["one", "two", "three", ""]
->> "one\[rs]r\[rs]ntwo\[rs]r\[rs]nthree\[rs]r\[rs]n".lines()
-= ["one", "two", "three"]
->> "".lines()
-= []
+assert "one\[rs]ntwo\[rs]nthree".lines() == ["one", "two", "three"]
+assert "one\[rs]ntwo\[rs]nthree\[rs]n".lines() == ["one", "two", "three"]
+assert "one\[rs]ntwo\[rs]nthree\[rs]n\[rs]n".lines() == ["one", "two", "three", ""]
+assert "one\[rs]r\[rs]ntwo\[rs]r\[rs]nthree\[rs]r\[rs]n".lines() == ["one", "two", "three"]
+assert "".lines() == []
.EE