From 32c97ed3f9e0ceb5ec71b2182325d82a6cb0a1e5 Mon Sep 17 00:00:00 2001 From: Vladislav Ivanishin Date: Wed, 25 Jan 2023 15:24:28 +0300 Subject: [PATCH] Inspector: add a failing EXPECT_THAT invocation --- runtime/tooling/inspector/tests/types_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runtime/tooling/inspector/tests/types_test.cpp b/runtime/tooling/inspector/tests/types_test.cpp index f0ac09b68..250c17384 100644 --- a/runtime/tooling/inspector/tests/types_test.cpp +++ b/runtime/tooling/inspector/tests/types_test.cpp @@ -260,6 +260,11 @@ TEST(RemoteObjectTest, StringifiesToJson) JsonProperties(JsonProperty {"type", "bigint"}, JsonProperty {"unserializableValue", "-20000000000000001"})); + /* This should fail (the test is wrong). */ + EXPECT_THAT(ToJson(RemoteObject::Number(INT64_MAX)), + JsonProperties(JsonProperty {"type", "bigint"}, + JsonProperty {"unserializableValue", "9223372036854775808"})); + EXPECT_THAT(ToJson(RemoteObject::Number(INT64_MIN)), JsonProperties(JsonProperty {"type", "bigint"}, JsonProperty {"unserializableValue", "-9223372036854775808"})); -- Gitee