aboutsummaryrefslogtreecommitdiff
path: root/tests/i/contextual-conversions/notes.md
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-28 13:38:00 +0000
committer_ov4 <ov4@ov4.org>2026-10-28 13:38:00 +0000
commit96fd8bab8630f2abcc74cfc69fdbccc530579b9c (patch)
tree7b9a0c661ccc2657e397c041c937f337357ddd59 /tests/i/contextual-conversions/notes.md
parentb28384fed1ce638e8b00b72dba974e9fd7e55eb4 (diff)
feat(library): add contextual conversion return overloads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/i/contextual-conversions/notes.md')
-rw-r--r--tests/i/contextual-conversions/notes.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/i/contextual-conversions/notes.md b/tests/i/contextual-conversions/notes.md
new file mode 100644
index 0000000..efc6447
--- /dev/null
+++ b/tests/i/contextual-conversions/notes.md
@@ -0,0 +1,7 @@
+# Contextual conversions
+
+Human review: pending. Expected output was independently traced by AI, not captured from cpsc.
+
+Basis: the function table in reference/9618_w25_in_21.pdf permits REAL/INTEGER results from STR_TO_NUM and STRING/CHAR results from NUM_TO_STR. DEFAULT selection and truncation toward zero for INTEGER conversion are project rules.
+
+Trace: context-free numeric parsing returns REAL 23.45 and 7.0; INTEGER assignments truncate 23.45 and -23.45 to 23 and -23, and parse character '7' as 7. Default text formatting produces 7 and 7.0. CHAR assignment accepts the one-character integer representation. STRING assignment retains 12. The two longer CHAR results, invalid numeric text and INTEGER overflow throw at their caller lines and enter their respective catches.