]> Kevux Git Server - fll/commit
Bugfix: Empty Objects are preserving leading white space when in original mode and...
authorKevin Day <Kevin@kevux.org>
Sat, 5 Oct 2024 03:01:27 +0000 (22:01 -0500)
committerKevin Day <Kevin@kevux.org>
Sat, 5 Oct 2024 03:01:27 +0000 (22:01 -0500)
commit801e99f51a1b9a1a797caa4f5b8601c8bc10d0b8
tree301c3dd442b641e6d9912ea3881b9de5b7e76935
parente812b480f8b0d8b73beac549a82ab5bc65062443
Bugfix: Empty Objects are preserving leading white space when in original mode and update runtime tests.

This (unfortunately) adds more logic to processing the case when `--original` is used and the Object is empty.

This makes me wonder if I have to implement the opener range.
I was not happy about adding the `close` for memory and space reasons.
Adding this would introduce more inefficiencies.

I may end up having to add support for processing different types of structures if I want to support the simple Object and Content without the `open` and `close` positions as well as with those positions.
The focus in this commit is only on fixing the printing and does not introduce any of the behavior that I described here.

Update the runtime tests for all of the FSS Read programs.
Some of the tests were missing or were incorrect such that this bug slipped by without detection.
The FSS Payload Read tests now have the (missing) NULL characters added to them.
16 files changed:
level_3/fss_basic_list_read/c/private-print.c
level_3/fss_basic_list_read/tests/runtime/fss_0002/expect/test-0003-object_space-object_and_content-original.expect
level_3/fss_basic_list_read/tests/runtime/fss_0002/expect/test-0003-object_space-object_and_content-select-0-original.expect
level_3/fss_basic_list_read/tests/runtime/script/generate.sh
level_3/fss_basic_read/tests/runtime/script/generate.sh
level_3/fss_embedded_list_read/tests/runtime/fss_0008/expect/test-0003-object_space-object_and_content-select-0-original.expect
level_3/fss_embedded_list_read/tests/runtime/script/generate.sh
level_3/fss_extended_list_read/c/private-print.c
level_3/fss_extended_list_read/tests/runtime/fss_0003/expect/test-0003-object_space-object_and_content-original.expect
level_3/fss_extended_list_read/tests/runtime/fss_0003/expect/test-0003-object_space-object_and_content-select-0-original.expect
level_3/fss_extended_list_read/tests/runtime/script/generate.sh
level_3/fss_extended_read/tests/runtime/script/generate.sh
level_3/fss_payload_read/c/private-print.c
level_3/fss_payload_read/tests/runtime/fss_000e/expect/test-0003-object_space-object_and_content-original.expect
level_3/fss_payload_read/tests/runtime/fss_000e/expect/test-0003-object_space-object_and_content-select-0-original.expect
level_3/fss_payload_read/tests/runtime/script/generate.sh