From b92d2c98ae7c26c299674ade66c0e12579d1f0ce Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 6 Feb 2024 08:30:46 +0100 Subject: [PATCH] test: minor changes --- test/entt/core/memory.cpp | 18 +++++++++--------- test/entt/core/type_info.cpp | 4 ++-- test/entt/entity/entity.cpp | 8 ++++---- test/entt/entity/registry.cpp | 14 +++++++------- test/entt/graph/flow.cpp | 4 ++-- test/entt/locator/locator.cpp | 2 +- test/entt/meta/meta_context.cpp | 4 ++-- test/entt/meta/meta_utility.cpp | 22 +++++++++++----------- test/entt/resource/resource_loader.cpp | 4 ++-- test/example/reserved_bits.cpp | 2 +- test/lib/dispatcher/plugin/main.cpp | 2 +- test/lib/dispatcher/plugin/plugin.cpp | 2 +- test/lib/emitter/plugin/main.cpp | 2 +- test/lib/emitter/plugin/plugin.cpp | 2 +- test/lib/locator/plugin/main.cpp | 6 +++--- test/lib/locator/shared/main.cpp | 8 ++++---- test/lib/meta/plugin/main.cpp | 6 +++--- test/lib/meta/plugin/plugin.cpp | 2 +- test/lib/meta/plugin_std/main.cpp | 6 +++--- test/lib/meta/plugin_std/plugin.cpp | 2 +- test/lib/meta/shared/main.cpp | 8 ++++---- 21 files changed, 64 insertions(+), 64 deletions(-) diff --git a/test/entt/core/memory.cpp b/test/entt/core/memory.cpp index 078bfbf67..a148a6c8f 100644 --- a/test/entt/core/memory.cpp +++ b/test/entt/core/memory.cpp @@ -131,7 +131,7 @@ TEST(AllocateUnique, UsesAllocatorConstruction) { #endif TEST(UsesAllocatorConstructionArgs, NoUsesAllocatorConstruction) { - const auto value = 42; + const auto value = 4; const auto args = entt::uses_allocator_construction_args(std::allocator{}, value); ASSERT_EQ(std::tuple_size_v, 1u); @@ -140,7 +140,7 @@ TEST(UsesAllocatorConstructionArgs, NoUsesAllocatorConstruction) { } TEST(UsesAllocatorConstructionArgs, LeadingAllocatorConvention) { - const auto value = 42; + const auto value = 4; const auto args = entt::uses_allocator_construction_args>(std::allocator{}, value, 'c'); ASSERT_EQ(std::tuple_size_v, 4u); @@ -149,7 +149,7 @@ TEST(UsesAllocatorConstructionArgs, LeadingAllocatorConvention) { } TEST(UsesAllocatorConstructionArgs, TrailingAllocatorConvention) { - const auto size = 42u; + const auto size = 4u; const auto args = entt::uses_allocator_construction_args>(std::allocator{}, size); ASSERT_EQ(std::tuple_size_v, 2u); @@ -158,7 +158,7 @@ TEST(UsesAllocatorConstructionArgs, TrailingAllocatorConvention) { } TEST(UsesAllocatorConstructionArgs, PairPiecewiseConstruct) { - const auto size = 42u; + const auto size = 4u; const auto tup = std::make_tuple(size); const auto args = entt::uses_allocator_construction_args>>(std::allocator{}, std::piecewise_construct, std::make_tuple(3), tup); @@ -175,7 +175,7 @@ TEST(UsesAllocatorConstructionArgs, PairNoArgs) { } TEST(UsesAllocatorConstructionArgs, PairValues) { - const auto size = 42u; + const auto size = 4u; const auto args = entt::uses_allocator_construction_args>>(std::allocator{}, 3, size); ASSERT_EQ(std::tuple_size_v, 3u); @@ -184,24 +184,24 @@ TEST(UsesAllocatorConstructionArgs, PairValues) { } TEST(UsesAllocatorConstructionArgs, PairConstLValueReference) { - const auto value = std::make_pair(3, 42u); + const auto value = std::make_pair(3, 4u); const auto args = entt::uses_allocator_construction_args>>(std::allocator{}, value); ASSERT_EQ(std::tuple_size_v, 3u); testing::StaticAssertTypeEq, std::tuple &>>>(); ASSERT_EQ(std::get<0>(std::get<1>(args)), 3); - ASSERT_EQ(std::get<0>(std::get<2>(args)), 42u); + ASSERT_EQ(std::get<0>(std::get<2>(args)), 4u); } TEST(UsesAllocatorConstructionArgs, PairRValueReference) { - [[maybe_unused]] const auto args = entt::uses_allocator_construction_args>>(std::allocator{}, std::make_pair(3, 42u)); + [[maybe_unused]] const auto args = entt::uses_allocator_construction_args>>(std::allocator{}, std::make_pair(3, 4u)); ASSERT_EQ(std::tuple_size_v, 3u); testing::StaticAssertTypeEq, std::tuple &>>>(); } TEST(MakeObjUsingAllocator, Functionalities) { - const auto size = 42u; + const auto size = 4u; test::throwing_allocator allocator{}; allocator.throw_counter(0u); diff --git a/test/entt/core/type_info.cpp b/test/entt/core/type_info.cpp index 45bb9ced0..8f99b7ae4 100644 --- a/test/entt/core/type_info.cpp +++ b/test/entt/core/type_info.cpp @@ -87,10 +87,10 @@ TEST(TypeInfo, Order) { } TEST(TypeId, Functionalities) { - const int value = 42; + const int value = 4; ASSERT_EQ(entt::type_id(value), entt::type_id()); - ASSERT_EQ(entt::type_id(42), entt::type_id()); + ASSERT_EQ(entt::type_id(4), entt::type_id()); ASSERT_EQ(entt::type_id(), entt::type_id()); ASSERT_EQ(entt::type_id(), entt::type_id()); diff --git a/test/entt/entity/entity.cpp b/test/entt/entity/entity.cpp index 5f5439086..05e493754 100644 --- a/test/entt/entity/entity.cpp +++ b/test/entt/entity/entity.cpp @@ -34,14 +34,14 @@ TYPED_TEST(Entity, Traits) { constexpr entity_type tombstone{entt::tombstone}; constexpr entity_type null{entt::null}; - const entity_type entity = traits_type::construct(42u, 1u); + const entity_type entity = traits_type::construct(4u, 1u); const entity_type other = traits_type::construct(3u, 0u); ASSERT_EQ(entt::to_integral(entity), entt::to_integral(entity)); ASSERT_NE(entt::to_integral(entity), entt::to_integral(entt::null)); ASSERT_NE(entt::to_integral(entity), entt::to_integral(entity_type{})); - ASSERT_EQ(entt::to_entity(entity), 42u); + ASSERT_EQ(entt::to_entity(entity), 4u); ASSERT_EQ(entt::to_version(entity), 1u); ASSERT_EQ(entt::to_entity(other), 3u); ASSERT_EQ(entt::to_version(other), 0u); @@ -107,7 +107,7 @@ TYPED_TEST(Entity, Null) { ASSERT_TRUE(entt::null == entt::null); ASSERT_FALSE(entt::null != entt::null); - const entity_type entity{42u}; + const entity_type entity{4u}; ASSERT_EQ(traits_type::combine(entt::null, entt::to_integral(entity)), (traits_type::construct(entt::to_entity(null), entt::to_version(entity)))); ASSERT_EQ(traits_type::combine(entt::null, entt::to_integral(null)), null); @@ -130,7 +130,7 @@ TYPED_TEST(Entity, Tombstone) { ASSERT_TRUE(entt::tombstone == entt::tombstone); ASSERT_FALSE(entt::tombstone != entt::tombstone); - const entity_type entity{42u}; + const entity_type entity{4u}; ASSERT_EQ(traits_type::combine(entt::to_integral(entity), entt::tombstone), (traits_type::construct(entt::to_entity(entity), entt::to_version(tombstone)))); ASSERT_EQ(traits_type::combine(entt::tombstone, entt::to_integral(tombstone)), tombstone); diff --git a/test/entt/entity/registry.cpp b/test/entt/entity/registry.cpp index cc1a749ba..fa192e336 100644 --- a/test/entt/entity/registry.cpp +++ b/test/entt/entity/registry.cpp @@ -101,8 +101,8 @@ TEST(Registry, Functionalities) { ASSERT_EQ(registry.storage().size(), 0u); ASSERT_EQ(registry.storage().free_list(), 0u); - ASSERT_NO_THROW(registry.storage().reserve(42)); - ASSERT_EQ(registry.storage().capacity(), 42u); + ASSERT_NO_THROW(registry.storage().reserve(4)); + ASSERT_EQ(registry.storage().capacity(), 4u); ASSERT_TRUE(registry.storage().empty()); ASSERT_EQ(registry.storage().size(), 0u); @@ -138,7 +138,7 @@ TEST(Registry, Functionalities) { ASSERT_EQ(registry.try_get(e0), nullptr); ASSERT_EQ(registry.try_get(e1), nullptr); - ASSERT_EQ(registry.emplace(e0, 42), 42); + ASSERT_EQ(registry.emplace(e0, 4), 4); ASSERT_EQ(registry.emplace(e0, 'c'), 'c'); ASSERT_NO_THROW(registry.erase(e1)); ASSERT_NO_THROW(registry.erase(e1)); @@ -154,17 +154,17 @@ TEST(Registry, Functionalities) { registry.emplace_or_replace(e2, registry.get(e0)); ASSERT_TRUE((registry.all_of(e2))); - ASSERT_EQ(registry.get(e0), 42); + ASSERT_EQ(registry.get(e0), 4); ASSERT_EQ(registry.get(e0), 'c'); ASSERT_NE(registry.try_get(e0), nullptr); ASSERT_NE(registry.try_get(e0), nullptr); ASSERT_EQ(registry.try_get(e0), nullptr); - ASSERT_EQ(*registry.try_get(e0), 42); + ASSERT_EQ(*registry.try_get(e0), 4); ASSERT_EQ(*registry.try_get(e0), 'c'); - ASSERT_EQ(std::get<0>(registry.get(e0)), 42); - ASSERT_EQ(*std::get<0>(registry.try_get(e0)), 42); + ASSERT_EQ(std::get<0>(registry.get(e0)), 4); + ASSERT_EQ(*std::get<0>(registry.try_get(e0)), 4); ASSERT_EQ(std::get<1>(static_cast(registry).get(e0)), 'c'); ASSERT_EQ(*std::get<1>(static_cast(registry).try_get(e0)), 'c'); diff --git a/test/entt/graph/flow.cpp b/test/entt/graph/flow.cpp index f16c97bc0..4c5081019 100644 --- a/test/entt/graph/flow.cpp +++ b/test/entt/graph/flow.cpp @@ -287,8 +287,8 @@ TEST(Flow, Sync) { ENTT_DEBUG_TEST(FlowDeathTest, NoBind) { entt::flow flow{}; - ASSERT_DEATH(flow.ro(42), ""); - ASSERT_DEATH(flow.rw(42), ""); + ASSERT_DEATH(flow.ro(4), ""); + ASSERT_DEATH(flow.rw(4), ""); flow.bind(0); diff --git a/test/entt/locator/locator.cpp b/test/entt/locator/locator.cpp index 329a39e72..a134ceb52 100644 --- a/test/entt/locator/locator.cpp +++ b/test/entt/locator/locator.cpp @@ -86,5 +86,5 @@ ENTT_DEBUG_TEST_F(ServiceLocatorDeathTest, UninitializedValue) { entt::locator::reset(); - ASSERT_DEATH(entt::locator::value().invoke(42), ""); + ASSERT_DEATH(entt::locator::value().invoke(4), ""); } diff --git a/test/entt/meta/meta_context.cpp b/test/entt/meta/meta_context.cpp index c0fb5df84..d868af250 100644 --- a/test/entt/meta/meta_context.cpp +++ b/test/entt/meta/meta_context.cpp @@ -144,8 +144,8 @@ public: protected: static constexpr int global_marker = 1; - static constexpr int local_marker = 42; - static constexpr int bucket_value = 99; + static constexpr int local_marker = 4; + static constexpr int bucket_value = 2; static constexpr int prop_value = 3; private: diff --git a/test/entt/meta/meta_utility.cpp b/test/entt/meta/meta_utility.cpp index 914359cd8..f76803089 100644 --- a/test/entt/meta/meta_utility.cpp +++ b/test/entt/meta/meta_utility.cpp @@ -127,10 +127,10 @@ TEST_F(MetaUtility, MetaSetter) { clazz instance{}; ASSERT_FALSE((entt::meta_setter(instance, instance))); - ASSERT_FALSE((entt::meta_setter(std::as_const(instance), 42))); - ASSERT_FALSE((entt::meta_setter(invalid, 42))); - ASSERT_TRUE((entt::meta_setter(instance, 42))); - ASSERT_EQ(instance.member, 42); + ASSERT_FALSE((entt::meta_setter(std::as_const(instance), 4))); + ASSERT_FALSE((entt::meta_setter(invalid, 4))); + ASSERT_TRUE((entt::meta_setter(instance, 4))); + ASSERT_EQ(instance.member, 4); ASSERT_FALSE((entt::meta_setter(instance, instance))); ASSERT_FALSE((entt::meta_setter(std::as_const(instance), 3))); @@ -139,12 +139,12 @@ TEST_F(MetaUtility, MetaSetter) { ASSERT_EQ(instance.member, 3); ASSERT_FALSE((entt::meta_setter(instance, instance))); - ASSERT_FALSE((entt::meta_setter(invalid, 99))); - ASSERT_TRUE((entt::meta_setter(instance, 99))); - ASSERT_EQ(instance.member, 99); + ASSERT_FALSE((entt::meta_setter(invalid, 8))); + ASSERT_TRUE((entt::meta_setter(instance, 8))); + ASSERT_EQ(instance.member, 8); - ASSERT_FALSE((entt::meta_setter(instance, 99))); - ASSERT_FALSE((entt::meta_setter(invalid, 99))); + ASSERT_FALSE((entt::meta_setter(instance, 8))); + ASSERT_FALSE((entt::meta_setter(invalid, 8))); ASSERT_EQ(instance.cmember, 0); ASSERT_FALSE((entt::meta_setter(instance, instance))); @@ -184,8 +184,8 @@ TEST_F(MetaUtility, MetaGetter) { ASSERT_EQ((entt::meta_getter(invalid)).cast(), 0); ASSERT_EQ((entt::meta_getter(instance)).cast(), 0); - ASSERT_EQ((entt::meta_getter(invalid)).cast(), 42); - ASSERT_EQ((entt::meta_getter(instance)).cast(), 42); + ASSERT_EQ((entt::meta_getter(invalid)).cast(), 4); + ASSERT_EQ((entt::meta_getter(instance)).cast(), 4); } TEST_F(MetaUtility, MetaInvokeWithCandidate) { diff --git a/test/entt/resource/resource_loader.cpp b/test/entt/resource/resource_loader.cpp index a5173abac..a13d7b234 100644 --- a/test/entt/resource/resource_loader.cpp +++ b/test/entt/resource/resource_loader.cpp @@ -4,10 +4,10 @@ TEST(ResourceLoader, Functionalities) { using loader_type = entt::resource_loader; - const auto resource = loader_type{}(42); + const auto resource = loader_type{}(4); testing::StaticAssertTypeEq>(); ASSERT_TRUE(resource); - ASSERT_EQ(*resource, 42); + ASSERT_EQ(*resource, 4); } diff --git a/test/example/reserved_bits.cpp b/test/example/reserved_bits.cpp index bd30caeb1..472b87b6d 100644 --- a/test/example/reserved_bits.cpp +++ b/test/example/reserved_bits.cpp @@ -38,7 +38,7 @@ TEST(Example, DisabledEntity) { entt::basic_registry registry{}; auto view = registry.view(); - const my_entity entity = registry.create(entt::basic_registry::traits_type::construct(42u, 12u)); + const my_entity entity = registry.create(entt::basic_registry::traits_type::construct(4u, 1u)); const my_entity other = registry.create(entt::basic_registry::traits_type::construct(3u, 0u)); registry.emplace(entity); diff --git a/test/lib/dispatcher/plugin/main.cpp b/test/lib/dispatcher/plugin/main.cpp index 67de4e038..7276db256 100644 --- a/test/lib/dispatcher/plugin/main.cpp +++ b/test/lib/dispatcher/plugin/main.cpp @@ -28,7 +28,7 @@ TEST(Lib, Dispatcher) { ctx.userdata = &dispatcher; cr_plugin_update(ctx); - ASSERT_EQ(listener.value, 42); + ASSERT_EQ(listener.value, 4); dispatcher = {}; cr_plugin_close(ctx); diff --git a/test/lib/dispatcher/plugin/plugin.cpp b/test/lib/dispatcher/plugin/plugin.cpp index 3b2a285ac..1341653f0 100644 --- a/test/lib/dispatcher/plugin/plugin.cpp +++ b/test/lib/dispatcher/plugin/plugin.cpp @@ -6,7 +6,7 @@ CR_EXPORT int cr_main(cr_plugin *ctx, cr_op operation) { switch(operation) { case CR_STEP: static_cast(ctx->userdata)->trigger(); - static_cast(ctx->userdata)->trigger(message{42}); + static_cast(ctx->userdata)->trigger(message{4}); break; case CR_CLOSE: case CR_LOAD: diff --git a/test/lib/emitter/plugin/main.cpp b/test/lib/emitter/plugin/main.cpp index 285c7096e..f9121c47b 100644 --- a/test/lib/emitter/plugin/main.cpp +++ b/test/lib/emitter/plugin/main.cpp @@ -21,7 +21,7 @@ TEST(Lib, Emitter) { ctx.userdata = &emitter; cr_plugin_update(ctx); - ASSERT_EQ(value, 42); + ASSERT_EQ(value, 4); emitter = {}; cr_plugin_close(ctx); diff --git a/test/lib/emitter/plugin/plugin.cpp b/test/lib/emitter/plugin/plugin.cpp index 6946872ee..2db74d6d9 100644 --- a/test/lib/emitter/plugin/plugin.cpp +++ b/test/lib/emitter/plugin/plugin.cpp @@ -5,7 +5,7 @@ CR_EXPORT int cr_main(cr_plugin *ctx, cr_op operation) { switch(operation) { case CR_STEP: static_cast(ctx->userdata)->publish(event{}); - static_cast(ctx->userdata)->publish(message{42}); + static_cast(ctx->userdata)->publish(message{4}); static_cast(ctx->userdata)->publish(message{3}); break; case CR_CLOSE: diff --git a/test/lib/locator/plugin/main.cpp b/test/lib/locator/plugin/main.cpp index 12940fb47..c77e27542 100644 --- a/test/lib/locator/plugin/main.cpp +++ b/test/lib/locator/plugin/main.cpp @@ -7,9 +7,9 @@ #include "types.h" TEST(Lib, Locator) { - entt::locator::emplace().value = 42; + entt::locator::emplace().value = 4; - ASSERT_EQ(entt::locator::value().value, 42); + ASSERT_EQ(entt::locator::value().value, 4); userdata ud{entt::locator::handle(), 3}; @@ -22,7 +22,7 @@ TEST(Lib, Locator) { ASSERT_EQ(entt::locator::value().value, ud.value); // service updates do not propagate across boundaries - entt::locator::emplace().value = 42; + entt::locator::emplace().value = 4; cr_plugin_update(ctx); ASSERT_NE(entt::locator::value().value, ud.value); diff --git a/test/lib/locator/shared/main.cpp b/test/lib/locator/shared/main.cpp index 3c34f5b63..6302d1652 100644 --- a/test/lib/locator/shared/main.cpp +++ b/test/lib/locator/shared/main.cpp @@ -7,9 +7,9 @@ ENTT_API void set_up(const entt::locator::node_type &); ENTT_API void use_service(int); TEST(Lib, Locator) { - entt::locator::emplace().value = 42; + entt::locator::emplace().value = 4; - ASSERT_EQ(entt::locator::value().value, 42); + ASSERT_EQ(entt::locator::value().value, 4); set_up(entt::locator::handle()); use_service(3); @@ -17,8 +17,8 @@ TEST(Lib, Locator) { ASSERT_EQ(entt::locator::value().value, 3); // service updates do not propagate across boundaries - entt::locator::emplace().value = 42; + entt::locator::emplace().value = 4; use_service(3); - ASSERT_EQ(entt::locator::value().value, 42); + ASSERT_EQ(entt::locator::value().value, 4); } diff --git a/test/lib/meta/plugin/main.cpp b/test/lib/meta/plugin/main.cpp index 9b0b995c6..e46f0ba11 100644 --- a/test/lib/meta/plugin/main.cpp +++ b/test/lib/meta/plugin/main.cpp @@ -28,14 +28,14 @@ TEST(Lib, Meta) { ASSERT_TRUE(entt::resolve("position"_hs)); ASSERT_TRUE(entt::resolve("velocity"_hs)); - auto pos = entt::resolve("position"_hs).construct(42., 3.); + auto pos = entt::resolve("position"_hs).construct(4., 3.); auto vel = entt::resolve("velocity"_hs).construct(); ASSERT_TRUE(pos && vel); ASSERT_EQ(pos.type().data("x"_hs).type(), entt::resolve()); ASSERT_NE(pos.type().data("y"_hs).get(pos).try_cast(), nullptr); - ASSERT_EQ(pos.type().data("x"_hs).get(pos).cast(), 42); + ASSERT_EQ(pos.type().data("x"_hs).get(pos).cast(), 4); ASSERT_EQ(pos.type().data("y"_hs).get(pos).cast(), 3); ASSERT_EQ(vel.type().data("dx"_hs).type(), entt::resolve()); @@ -44,7 +44,7 @@ TEST(Lib, Meta) { ASSERT_EQ(vel.type().data("dy"_hs).get(vel).cast(), 0.); ASSERT_EQ(ud.any.type(), entt::resolve()); - ASSERT_EQ(ud.any.cast(), 42); + ASSERT_EQ(ud.any.cast(), 4); // these objects have been initialized from a different context pos.emplace(); diff --git a/test/lib/meta/plugin/plugin.cpp b/test/lib/meta/plugin/plugin.cpp index f3b813303..73d70fbcf 100644 --- a/test/lib/meta/plugin/plugin.cpp +++ b/test/lib/meta/plugin/plugin.cpp @@ -39,7 +39,7 @@ CR_EXPORT int cr_main(cr_plugin *ctx, cr_op operation) { set_up(); break; case CR_STEP: - static_cast(ctx->userdata)->any = 42; + static_cast(ctx->userdata)->any = 4; break; case CR_UNLOAD: case CR_CLOSE: diff --git a/test/lib/meta/plugin_std/main.cpp b/test/lib/meta/plugin_std/main.cpp index 753a81505..0097e83bc 100644 --- a/test/lib/meta/plugin_std/main.cpp +++ b/test/lib/meta/plugin_std/main.cpp @@ -29,14 +29,14 @@ TEST(Lib, Meta) { ASSERT_TRUE(entt::resolve("position"_hs)); ASSERT_TRUE(entt::resolve("velocity"_hs)); - auto pos = entt::resolve("position"_hs).construct(42., 3.); + auto pos = entt::resolve("position"_hs).construct(4., 3.); auto vel = entt::resolve("velocity"_hs).construct(); ASSERT_TRUE(pos && vel); ASSERT_EQ(pos.type().data("x"_hs).type(), entt::resolve()); ASSERT_NE(pos.type().data("y"_hs).get(pos).try_cast(), nullptr); - ASSERT_EQ(pos.type().data("x"_hs).get(pos).cast(), 42); + ASSERT_EQ(pos.type().data("x"_hs).get(pos).cast(), 4); ASSERT_EQ(pos.type().data("y"_hs).get(pos).cast(), 3); ASSERT_EQ(vel.type().data("dx"_hs).type(), entt::resolve()); @@ -45,7 +45,7 @@ TEST(Lib, Meta) { ASSERT_EQ(vel.type().data("dy"_hs).get(vel).cast(), 0.); ASSERT_EQ(ud.any.type(), entt::resolve()); - ASSERT_EQ(ud.any.cast(), 42); + ASSERT_EQ(ud.any.cast(), 4); // these objects have been initialized from a different context pos.emplace(); diff --git a/test/lib/meta/plugin_std/plugin.cpp b/test/lib/meta/plugin_std/plugin.cpp index f3b813303..73d70fbcf 100644 --- a/test/lib/meta/plugin_std/plugin.cpp +++ b/test/lib/meta/plugin_std/plugin.cpp @@ -39,7 +39,7 @@ CR_EXPORT int cr_main(cr_plugin *ctx, cr_op operation) { set_up(); break; case CR_STEP: - static_cast(ctx->userdata)->any = 42; + static_cast(ctx->userdata)->any = 4; break; case CR_UNLOAD: case CR_CLOSE: diff --git a/test/lib/meta/shared/main.cpp b/test/lib/meta/shared/main.cpp index f0eb4ddc2..04a1735f3 100644 --- a/test/lib/meta/shared/main.cpp +++ b/test/lib/meta/shared/main.cpp @@ -29,14 +29,14 @@ TEST(Lib, Meta) { ASSERT_EQ(entt::resolve(), entt::resolve("position"_hs)); ASSERT_EQ(entt::resolve(), entt::resolve("velocity"_hs)); - auto pos = entt::resolve("position"_hs).construct(42., 3.); + auto pos = entt::resolve("position"_hs).construct(4., 3.); auto vel = entt::resolve("velocity"_hs).construct(); ASSERT_TRUE(pos && vel); ASSERT_EQ(pos.type().data("x"_hs).type(), entt::resolve()); ASSERT_NE(pos.type().data("y"_hs).get(pos).try_cast(), nullptr); - ASSERT_EQ(pos.type().data("x"_hs).get(pos).cast(), 42); + ASSERT_EQ(pos.type().data("x"_hs).get(pos).cast(), 4); ASSERT_EQ(pos.type().data("y"_hs).get(pos).cast(), 3); ASSERT_EQ(vel.type().data("dx"_hs).type(), entt::resolve()); @@ -47,8 +47,8 @@ TEST(Lib, Meta) { pos.reset(); vel.reset(); - ASSERT_EQ(wrap_int(42).type(), entt::resolve()); - ASSERT_EQ(wrap_int(42).cast(), 42); + ASSERT_EQ(wrap_int(4).type(), entt::resolve()); + ASSERT_EQ(wrap_int(4).cast(), 4); tear_down();