mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Link against SixtyFPS in the C++ unit tests
This commit is contained in:
parent
ca93d12cf8
commit
cff1e7751d
2 changed files with 14 additions and 7 deletions
|
@ -11,12 +11,19 @@ LICENSE END */
|
|||
#define CATCH_CONFIG_MAIN
|
||||
#include "catch2/catch.hpp"
|
||||
|
||||
SCENARIO("SixtyFPS can be shipped")
|
||||
{
|
||||
GIVEN("a boolean")
|
||||
{
|
||||
bool okay = true;
|
||||
#include <sixtyfps.h>
|
||||
|
||||
REQUIRE(okay);
|
||||
SCENARIO("SharedString API")
|
||||
{
|
||||
sixtyfps::SharedString str;
|
||||
|
||||
REQUIRE(str.empty());
|
||||
|
||||
SECTION("Construct from string_view")
|
||||
{
|
||||
std::string foo("Foo");
|
||||
std::string_view foo_view(foo);
|
||||
str = foo_view;
|
||||
REQUIRE(str == "Foo");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue