Skip to content

Commit 9843b66

Browse files
DeusDataouzsrcm
andcommitted
test(plsql): pin the CREATE TYPE AS OBJECT limitation via parse_incomplete
Assert positively that the fixture's tree contains ERROR/MISSING nodes (parse_incomplete), so a future grammar upgrade that fixes AS OBJECT turns this RED and prompts claiming the Class def instead of pinning its absence vacuously. Co-authored-by: Oğuz <oguzhan.saricam@gmail.com> Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent 97ecfe7 commit 9843b66

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎tests/test_extraction.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,11 @@ TEST(plsql_create_type_as_object_limitation) {
12091209
"/\n";
12101210
CBMFileResult *r = extract(src, CBM_LANG_PLSQL, "t", "address.tps");
12111211
ASSERT_NOT_NULL(r);
1212-
/* Must not crash; Class extraction is best-effort and may be absent. */
1212+
/* Pin the limitation positively: the tree contains ERROR/MISSING nodes.
1213+
* When a grammar upgrade clears this, this assertion goes RED — then
1214+
* expect the Class def here instead of the absence below. */
1215+
ASSERT(r->parse_incomplete);
1216+
/* Must not crash; Class extraction is best-effort and currently absent. */
12131217
ASSERT(!has_def(r, "Class", "address_t"));
12141218
cbm_free_result(r);
12151219
PASS();

0 commit comments

Comments
 (0)