From a9afb25248c00c7246a121c8c8569a5dccfaee68 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Tue, 9 Jan 2024 15:32:37 +0000 Subject: [PATCH] tbv2: update tuple test This test is a bit odd, but this change adds the full set of size/member checks for the hierarchy for TreeBuilder v2 and enables it. Closes #304 Test Plan: - CI --- test/integration/std_tuple.toml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/integration/std_tuple.toml b/test/integration/std_tuple.toml index 4d63064..1e64375 100644 --- a/test/integration/std_tuple.toml +++ b/test/integration/std_tuple.toml @@ -9,7 +9,6 @@ struct Bar { ''' [cases] [cases.uint64_uint64] - oil_skip = "std::tuple is not implemented for treebuilder v2" # https://github.com/facebookexperimental/object-introspection/issues/304 param_types = ["Bar&"] setup = ''' Foo f; @@ -35,3 +34,15 @@ struct Bar { } ] ''' + expect_json_v2 = '''[ + { "size":24, "staticSize":24, "exclusiveSize":0, "members":[ + {"size":24, "staticSize":24, "exclusiveSize":8, "members":[ + {"size":16, "staticSize":16, "exclusiveSize":0, "members": [ + {"size":16, "staticSize":16, "exclusiveSize":0, "members": [ + {"size":8, "staticSize":8, "exclusiveSize":8, "members":[]}, + {"size":8, "staticSize":8, "exclusiveSize":8, "members":[]} + ]} + ]} + ]} + ]} + ]'''