Skip to content

Commit

Permalink
Format test/*.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ispeters committed Nov 3, 2023
1 parent 157f784 commit bae6aea
Show file tree
Hide file tree
Showing 46 changed files with 1,610 additions and 1,689 deletions.
10 changes: 3 additions & 7 deletions test/allocate_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
*/

#include <unifex/allocate.hpp>
#include <unifex/scheduler_concepts.hpp>
#include <unifex/single_thread_context.hpp>
#include <unifex/sync_wait.hpp>
#include <unifex/then.hpp>
#include <unifex/scheduler_concepts.hpp>

#include <array>
#include <cstdio>
Expand All @@ -33,8 +33,7 @@ TEST(Allocate, Smoke) {
auto thread = threadContext.get_scheduler();
int count = 0;

sync_wait(allocate(then(
schedule(thread), [&] { ++count; })));
sync_wait(allocate(then(schedule(thread), [&] { ++count; })));

EXPECT_EQ(count, 1);
}
Expand All @@ -45,10 +44,7 @@ TEST(Allocate, Pipeable) {
auto thread = threadContext.get_scheduler();
int count = 0;

schedule(thread)
| then([&] { ++count; })
| allocate()
| sync_wait();
schedule(thread) | then([&] { ++count; }) | allocate() | sync_wait();

EXPECT_EQ(count, 1);
}
Loading

0 comments on commit bae6aea

Please sign in to comment.