From 9b737c75a7ab66f17cd757dfc9dc489376359ae4 Mon Sep 17 00:00:00 2001 From: mjq2020 <74635395+mjq2020@users.noreply.github.com> Date: Fri, 14 Aug 2026 01:12:20 +0800 Subject: [PATCH] test: sync record member keyword fixtures --- test/inputs/json/priority/keywords.json | 18 +++++++++--------- test/inputs/schema/keyword-enum.schema | 3 +++ test/inputs/schema/keyword-unions.schema | 21 +++++++++++++++++++++ test/keywords.txt | 5 ++++- 4 files changed, 37 insertions(+), 10 deletions(-) diff --git a/test/inputs/json/priority/keywords.json b/test/inputs/json/priority/keywords.json index 44047bdc21..45ec9b67a4 100644 --- a/test/inputs/json/priority/keywords.json +++ b/test/inputs/json/priority/keywords.json @@ -64,10 +64,10 @@ "decimal": { "decimal": 123 }, "declare": { "declare": 123 }, "decltype": { "decltype": 123 }, - "decode_string": { "decode_string": 123 }, "dummy": 123 }, "obj2": { + "decode_string": { "decode_string": 123 }, "def": { "def": 123 }, "default": { "default": 123 }, "defer": { "defer": 123 }, @@ -131,11 +131,11 @@ "inout": { "inout": 123 }, "instanceof": { "instanceof": 123 }, "int": { "int": 123 }, - "interface": { "interface": 123 }, - "internal": { "internal": 123 }, "dummy": 123 }, "obj3": { + "interface": { "interface": 123 }, + "internal": { "internal": 123 }, "iterable": { "iterable": 123 }, "is": { "is": 123 }, "jdec": { "jdec": 123 }, @@ -198,12 +198,12 @@ "printf": { "printf": 123 }, "printMembers": { "printMembers": 123 }, "private": { "private": 123 }, - "protected": { "protected": 123 }, - "Protocol": { "Protocol": 123 }, - "protocol": { "protocol": 123 }, "dummy": 123 }, "obj4": { + "protected": { "protected": 123 }, + "Protocol": { "Protocol": 123 }, + "protocol": { "protocol": 123 }, "public": { "public": 123 }, "quicktype": { "quicktype": 123 }, "raise": { "raise": 123 }, @@ -265,12 +265,12 @@ "typename": { "typename": 123 }, "typeof": { "typeof": 123 }, "uint": { "uint": 123 }, - "ulong": { "ulong": 123 }, - "unchecked": { "unchecked": 123 }, - "undefined": { "undefined": 123 }, "dummy": 123 }, "obj5": { + "ulong": { "ulong": 123 }, + "unchecked": { "unchecked": 123 }, + "undefined": { "undefined": 123 }, "union": { "union": 123 }, "unowned": { "unowned": 123 }, "unsafe": { "unsafe": 123 }, diff --git a/test/inputs/schema/keyword-enum.schema b/test/inputs/schema/keyword-enum.schema index 80968e4fdc..0b8b63b770 100644 --- a/test/inputs/schema/keyword-enum.schema +++ b/test/inputs/schema/keyword-enum.schema @@ -47,6 +47,7 @@ "checked", "class", "Class", + "clone", "co_await", "co_return", "co_yield", @@ -83,6 +84,7 @@ "dynamic", "dynamic_cast", "elif", + "equalityContract", "else", "encode_quick_type", "enum", @@ -192,6 +194,7 @@ "prefix", "print", "printf", + "printMembers", "private", "protected", "Protocol", diff --git a/test/inputs/schema/keyword-unions.schema b/test/inputs/schema/keyword-unions.schema index f729f51448..6650029250 100644 --- a/test/inputs/schema/keyword-unions.schema +++ b/test/inputs/schema/keyword-unions.schema @@ -302,6 +302,13 @@ ], "title": "union_Class" }, + "clone": { + "oneOf": [ + { "type": "number" }, + { "type": "object", "additionalProperties": false, "title": "clone" } + ], + "title": "union_clone" + }, "co_await": { "oneOf": [ { "type": "number" }, @@ -554,6 +561,13 @@ ], "title": "union_elif" }, + "equalityContract": { + "oneOf": [ + { "type": "number" }, + { "type": "object", "additionalProperties": false, "title": "equalityContract" } + ], + "title": "union_equalityContract" + }, "else": { "oneOf": [ { "type": "number" }, @@ -1317,6 +1331,13 @@ ], "title": "union_printf" }, + "printMembers": { + "oneOf": [ + { "type": "number" }, + { "type": "object", "additionalProperties": false, "title": "printMembers" } + ], + "title": "union_printMembers" + }, "private": { "oneOf": [ { "type": "number" }, diff --git a/test/keywords.txt b/test/keywords.txt index 60e674f7e7..46a5776abf 100644 --- a/test/keywords.txt +++ b/test/keywords.txt @@ -41,6 +41,7 @@ char32_t checked class Class +clone co_await co_return co_yield @@ -77,6 +78,7 @@ double dynamic dynamic_cast elif +equalityContract else encode_quick_type enum @@ -186,6 +188,7 @@ precedence prefix print printf +printMembers private protected Protocol @@ -273,4 +276,4 @@ with xor xor_eq YES -yield \ No newline at end of file +yield