aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/reference
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-09-07 21:48:12 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-09-09 17:33:08 -0400
commit4c8bf098bdbcf8d348519fa36b91cd0312f479a3 (patch)
tree53779344b440dc6c7e197f5f793d35a2b695e8c9 /test/reference
parentocda: a reader for .ssp, and a round trip check (diff)
ocda: the eight slot arrays are fixed length
markedup_ancestors, collapsed_ancestors, the two dom status arrays and heading_ancestors_text were declared as int[] / string[] with a literal default: int[] markedup_ancestors = [ 0, 0, 0, 0, 0, 0, 0, 0, ]; which is one array, shared by every default constructed object: write into one by index and you write into all of them. They are now int[8] / string[8], where that is impossible. Output neutral confirmed by reference test. Provides a fix: Previously the parser always assigned these whole and with .dup so it never went through the shared array. This left a trap in previous code which caught the new .ssp reader, whose first version wrote by index and gave every object in a document the last one's ancestors. (assisted by Claude-Code)
Diffstat (limited to 'test/reference')
0 files changed, 0 insertions, 0 deletions