data: allow omission of leading -> for union access

This commit is contained in:
Michael Davidsaver committed 2026-06-28 11:47:57 -07:00
1 parent 182b336b58
commit 23420900bd
3 files changed
+60 -48

No files matched your search

+3 -1
View File
@@ -94,6 +94,8 @@ void testAssignUnion()
val["->u16"] = 42;
testEq(val.as<std::string>(), "42");
val["u16"] = 43;
testEq(val.as<uint16_t>(), 43);
val["->s"] = "test";
testEq(val.as<std::string>(), "test");
@@ -562,7 +564,7 @@ void test_cache_sync()
MAIN(testdata)
{
testPlan(195);
testPlan(196);
testSetup();
testTraverse();
testAssign();