Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clfi
Browse files Browse the repository at this point in the history
mwestphal committed Dec 23, 2024
1 parent d9ee1ce commit 8ce8918
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion library/public/interactor.h
Original file line number Diff line number Diff line change
@@ -237,7 +237,8 @@ class F3D_EXPORT interactor
* The event loop will be triggered every deltaTime in seconds, and userCallBack will be called at
* the start of the event loop
*/
virtual interactor& start(double deltaTime = 1.0 / 30, std::function<void()> userCallBack = nullptr) = 0;
virtual interactor& start(
double deltaTime = 1.0 / 30, std::function<void()> userCallBack = nullptr) = 0;

/**
* Stop the interactor.
8 changes: 4 additions & 4 deletions library/testing/TestSDKOptions.cxx
Original file line number Diff line number Diff line change
@@ -197,11 +197,11 @@ int TestSDKOptions(int argc, char* argv[])
test.expect<f3d::options::inexistent_exception>(
"inexistent_exception exception on setAsString", [&]() { opt.setAsString("dummy", "2.13"); });

test.expect<f3d::options::inexistent_exception>(
"inexistent_exception exception on getAsString", [&]() { std::ignore = opt.getAsString("dummy"); });
test.expect<f3d::options::inexistent_exception>("inexistent_exception exception on getAsString",
[&]() { std::ignore = opt.getAsString("dummy"); });

test.expect<f3d::options::no_value_exception>(
"no_value_exception exception on getAsString", [&]() { std::ignore = opt.getAsString("render.point_size"); });
test.expect<f3d::options::no_value_exception>("no_value_exception exception on getAsString",
[&]() { std::ignore = opt.getAsString("render.point_size"); });

f3d::options opt6{};

3 changes: 2 additions & 1 deletion library/testing/TestSDKOptionsIO.cxx
Original file line number Diff line number Diff line change
@@ -23,7 +23,8 @@ class ParsingTest : public PseudoUnitTest
template<typename T, typename E>
void parse_expect(const std::string& label, const std::string& input)
{
PseudoUnitTest::expect<E>(label + " `" + input + "`", [&]() { std::ignore = f3d::options::parse<T>(input); });
PseudoUnitTest::expect<E>(
label + " `" + input + "`", [&]() { std::ignore = f3d::options::parse<T>(input); });
}
};

0 comments on commit 8ce8918

Please sign in to comment.