]> Kevux Git Server - fll/commit
Progress: Add "works" unit tests for several FSS object and content reads.
authorKevin Day <kevin@kevux.org>
Wed, 24 Jan 2024 05:57:55 +0000 (23:57 -0600)
committerKevin Day <kevin@kevux.org>
Wed, 24 Jan 2024 05:57:55 +0000 (23:57 -0600)
commit70cbbe34121dc5679961df711e70724f13104489
tree824433e94cc63d8cbc5336052ec7c29f7d4473fa
parentba257a8b8385ec8dedfc9bc9bb596e420ca552f8
Progress: Add "works" unit tests for several FSS object and content reads.

This is a follow up to the commit cb7fc88118cefd6756e1ae7aab83891d887cfb4c.

Writing these unit tests exposed some bugs, such as:
- The one solve in commit ba257a8b8385ec8dedfc9bc9bb596e420ca552f8.
- The FSS extended read is not handling unterminated single quote correctly.

An unterminated single quote in an extended requires that the quotes be treated as normal text, as per the standard.
This means that the quote should be broken up into unquoted content.
This is not the case and is considered a bug.
For example, consider the following line:
  a " b c d.

That line is currently being interpreted by extended read as a single content called:
  [0] = " b c d.

Instead, this should end up being 4 contents:
  [0] = "
  [1] = b
  [2] = c
  [3] = d.

The unit tests files that I created here should expect this and therefore the extended read tests currently fail.

I am also adding the basic list tests but I did not get to implementing the basic list content read tests yet.
The test data files exist but I need to review them and write the appropriate code.

The extended list and the embedded list tests are not yet written.
39 files changed:
level_1/fl_fss/data/tests/contents/basic-all_read.txt
level_1/fl_fss/data/tests/contents/basic_list-all_read-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/basic_list-all_read-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/basic_list-all_read-10.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/basic_list-all_read-11.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/basic_list-all_read-12.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/basic_list-all_read-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/basic_list-all_read-3.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/basic_list-all_read-4.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/basic_list-all_read-5.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/basic_list-all_read-6.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/basic_list-all_read-7.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/basic_list-all_read-8.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/basic_list-all_read-9.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/extended-all_read-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/extended-all_read-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/extended-all_read-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/extended-all_read-3.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/extended-all_read-4.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/contents/extended-all_read-5.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/objects/basic-all_read.txt
level_1/fl_fss/data/tests/objects/basic_list-all_read.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/objects/extended-all_read.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/strings/basic-all_read.txt
level_1/fl_fss/data/tests/strings/basic_list-all_read.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/strings/extended-all_read.txt [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/data-fss.c
level_1/fl_fss/tests/unit/c/data-fss.h
level_1/fl_fss/tests/unit/c/test-fss-basic_content_read.c
level_1/fl_fss/tests/unit/c/test-fss-basic_content_read.h
level_1/fl_fss/tests/unit/c/test-fss-basic_list_object_read.c
level_1/fl_fss/tests/unit/c/test-fss-basic_list_object_read.h
level_1/fl_fss/tests/unit/c/test-fss-basic_object_read.c
level_1/fl_fss/tests/unit/c/test-fss-basic_object_read.h
level_1/fl_fss/tests/unit/c/test-fss-extended_content_read.c
level_1/fl_fss/tests/unit/c/test-fss-extended_content_read.h
level_1/fl_fss/tests/unit/c/test-fss-extended_object_read.c
level_1/fl_fss/tests/unit/c/test-fss-extended_object_read.h
level_1/fl_fss/tests/unit/c/test-fss.c