Skip to content

Commit

Permalink
[ci] More test & build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Sep 23, 2023
1 parent bc4592b commit 63f2eb4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions cmake/OssiaDeps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ if(OSSIA_SUBMODULE_AUTOUPDATE)
SmallFunction
span
spdlog
tuplet
unordered_dense
verdigris
weakjack
Expand Down
4 changes: 2 additions & 2 deletions src/ossia-pd/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ std::string string_from_path(const std::vector<std::string>& vs)
auto rit = vs.rbegin();
for(; rit != vs.rend(); ++rit)
{
fmt::format_to(b, "/{}", *rit);
fmt::format_to(fmt::appender(b), "/{}", *rit);
}
if(vs.empty())
fmt::format_to(b, "/");
fmt::format_to(fmt::appender(b), "/");

return {b.data(), b.size()};
}
Expand Down
8 changes: 4 additions & 4 deletions tests/Editor/DomainTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,12 +663,12 @@ TEST_CASE("test_get_min_max", "test_get_min_max")
set_max(d, int{25});
REQUIRE(get_max(d) == int{25});

// No value
// Converted
set_min(d, float{7});
REQUIRE(get_min(d) == value{});
REQUIRE(get_min(d) == int{7});

set_max(d, float{42});
REQUIRE(get_max(d) == value{});
set_max(d, float{42.2f});
REQUIRE(get_max(d) == int{42});
}

{ // Generic domain
Expand Down

0 comments on commit 63f2eb4

Please sign in to comment.