Kaynağa Gözat

test: a few more

skypjack 7 ay önce
ebeveyn
işleme
a32e004c92
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 8 0
      test/entt/process/process.cpp

+ 8 - 0
test/entt/process/process.cpp

@@ -299,6 +299,14 @@ TEST(Process, ThenPeek) {
     ASSERT_TRUE(process.peek());
     ASSERT_TRUE(process.peek());
 }
 }
 
 
+TEST(Process, Handle) {
+    auto process = std::make_shared<test_process<int>>();
+    auto handle = process->shared_from_this();
+
+    ASSERT_TRUE(handle);
+    ASSERT_EQ(process.get(), handle.get());
+}
+
 TEST(Process, CustomAllocator) {
 TEST(Process, CustomAllocator) {
     const std::allocator<void> allocator{};
     const std::allocator<void> allocator{};
     entt::process process{allocator};
     entt::process process{allocator};