changeset 101:fa7b1edfed60

tests: fix
author David Demelier <markand@malikania.fr>
date Sat, 02 Oct 2021 17:16:16 +0200
parents 2ecd05f81068
children f6e4a0d002a7
files CMakeLists.txt tests/libentt/main.cpp
diffstat 2 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Sat Oct 02 17:14:24 2021 +0200
+++ b/CMakeLists.txt	Sat Oct 02 17:16:16 2021 +0200
@@ -24,10 +24,7 @@
 
 add_subdirectory(tests/libduktape)
 add_subdirectory(tests/libentt)
-add_subdirectory(tests/libfmt)
 add_subdirectory(tests/libgreatest)
-add_subdirectory(tests/libgtest)
-add_subdirectory(tests/libhoedown)
 add_subdirectory(tests/libjson)
 add_subdirectory(tests/libmustache)
 add_subdirectory(tests/libpugixml)
--- a/tests/libentt/main.cpp	Sat Oct 02 17:14:24 2021 +0200
+++ b/tests/libentt/main.cpp	Sat Oct 02 17:16:16 2021 +0200
@@ -28,7 +28,7 @@
 	auto registry = entt::registry{};
 	auto entity = registry.create();
 
-	registry.assign<position>(entity, 10, 20);
+	registry.emplace<position>(entity, 10, 20);
 
 	return (registry.get<position>(entity).x == 10 &&
 	        registry.get<position>(entity).y == 20) ? 0 : 1;