diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-20 11:00:16 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-20 11:00:16 +0000 |
| commit | 0c4db4fea1960571318444bd39593533b04b3716 (patch) | |
| tree | c0370d23f10225a6ee3dfe73590f38ca05877606 /tests/library/exp-string/notes.md | |
| parent | cf9af14fe749c52473fdf5a327c3e935e45bf0e7 (diff) | |
feat(library): add experimental string RIGHT function
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/library/exp-string/notes.md')
| -rw-r--r-- | tests/library/exp-string/notes.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/library/exp-string/notes.md b/tests/library/exp-string/notes.md index f44a2b3..ff25d0f 100644 --- a/tests/library/exp-string/notes.md +++ b/tests/library/exp-string/notes.md @@ -5,3 +5,7 @@ Review status: pending human review. Copies of hello are independent; assigning world to the copy gives helloworld when concatenated. Empty length is zero, and three NUL bytes retain length three. One hundred appended five-byte words grow 20000 bytes to 20500, preserved by BYVAL and RETURN. C++17 formatting gives 42 and 1.250000. Parsing 12.5 compares equal to 12.5. Trailing junk and negative counts emit the explicit library reasons at user lines 27 and 32, then are caught. Discarded numeric and Echo results must release their owned strings at statement end. The explicitly deleted heap object prints heap. This fixture covers compiler/library extensions, including numeric text formatting. LEFT keeps ABC, returns zero bytes for an empty source or nonpositive count, and clamps 20 to all eight letters. Taking four bytes from three NULs followed by hello retains all four bytes. + +RIGHT keeps FGH, returns zero bytes for an empty source or nonpositive count, and clamps 20 to all eight letters. Taking four bytes from hello followed by three NULs retains the final o and all three NULs. + +The added checks use separate procedures to keep generated temporary-object cleanup small enough for the ordinary runner timeout. |
