Parcourir la source

test: minor changes

Michele Caini il y a 2 ans
Parent
commit
c75a4804da
1 fichiers modifiés avec 9 ajouts et 10 suppressions
  1. 9 10
      test/entt/process/scheduler.cpp

+ 9 - 10
test/entt/process/scheduler.cpp

@@ -79,19 +79,18 @@ TEST_F(Scheduler, Functionalities) {
 TEST_F(Scheduler, Then) {
 TEST_F(Scheduler, Then) {
     entt::scheduler scheduler;
     entt::scheduler scheduler;
 
 
-    // failing process with successor
-    scheduler.attach<succeeded_process>()
+    scheduler
+        // failing process with successor
+        .attach<succeeded_process>()
         .then<succeeded_process>()
         .then<succeeded_process>()
         .then<failed_process>()
         .then<failed_process>()
-        .then<succeeded_process>();
-
-    // failing process without successor
-    scheduler.attach<succeeded_process>()
         .then<succeeded_process>()
         .then<succeeded_process>()
-        .then<failed_process>();
-
-    // non-failing process
-    scheduler.attach<succeeded_process>()
+        // failing process without successor
+        .attach<succeeded_process>()
+        .then<succeeded_process>()
+        .then<failed_process>()
+        // non-failing process
+        .attach<succeeded_process>()
         .then<succeeded_process>();
         .then<succeeded_process>();
 
 
     ASSERT_EQ(succeeded_process::invoked, 0u);
     ASSERT_EQ(succeeded_process::invoked, 0u);