mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-21 07:41:51 +00:00
C++: cmake: move the build instruction for the tests in the tests dir
This commit is contained in:
parent
0d23478469
commit
8d0cdc6ec2
4 changed files with 55 additions and 51 deletions
|
@ -161,7 +161,7 @@ TEST_CASE("Image")
|
|||
REQUIRE(!img.path().has_value());
|
||||
}
|
||||
|
||||
img = Image::load_from_path(SOURCE_DIR "/../../logo/slint-logo-square-light-128x128.png");
|
||||
img = Image::load_from_path(SOURCE_DIR "/../../../logo/slint-logo-square-light-128x128.png");
|
||||
{
|
||||
auto size = img.size();
|
||||
REQUIRE(size.width == 128.);
|
||||
|
@ -170,7 +170,7 @@ TEST_CASE("Image")
|
|||
{
|
||||
auto actual_path = img.path();
|
||||
REQUIRE(actual_path.has_value());
|
||||
REQUIRE(*actual_path == SOURCE_DIR "/../../logo/slint-logo-square-light-128x128.png");
|
||||
REQUIRE(*actual_path == SOURCE_DIR "/../../../logo/slint-logo-square-light-128x128.png");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue