From e658f2c3499901cf7e7750ca3d5be0e6e6953e8c Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Mon, 7 Mar 2022 08:14:04 +0000 Subject: GC redundant convenience wasy of assigning primitive field values. --- document/src/tests/fieldvalue/fieldvalue_test.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'document/src/tests/fieldvalue') diff --git a/document/src/tests/fieldvalue/fieldvalue_test.cpp b/document/src/tests/fieldvalue/fieldvalue_test.cpp index b70fd0d18a8..d8712768000 100644 --- a/document/src/tests/fieldvalue/fieldvalue_test.cpp +++ b/document/src/tests/fieldvalue/fieldvalue_test.cpp @@ -1,15 +1,15 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. // Unit tests for fieldvalue. -#include -LOG_SETUP("fieldvalue_test"); - #include #include #include #include +#include +LOG_SETUP("fieldvalue_test"); + using namespace document; namespace { @@ -18,14 +18,6 @@ TEST("require that StringFieldValue can be assigned primitives") { StringFieldValue val; val = "foo"; EXPECT_EQUAL("foo", val.getValue()); - val = 1; - EXPECT_EQUAL("1", val.getValue()); - val = static_cast(2); - EXPECT_EQUAL("2", val.getValue()); - val = 3.0f; - EXPECT_EQUAL("3", val.getValue()); - val = 4.0; - EXPECT_EQUAL("4", val.getValue()); } TEST("require that FieldValues does not change their storage size.") { -- cgit v1.2.3