mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
test SwCanvas: ++case cover
This commit is contained in:
parent
f3fac71a12
commit
83d860b150
1 changed files with 2 additions and 1 deletions
|
@ -62,6 +62,7 @@ TEST_CASE("Target Buffer", "[tvgSwCanvas]")
|
|||
REQUIRE(canvas->target(nullptr, 100, 100, 100, SwCanvas::Colorspace::ARGB8888) == Result::InvalidArguments);
|
||||
REQUIRE(canvas->target(buffer, 0, 100, 100, SwCanvas::Colorspace::ARGB8888) == Result::InvalidArguments);
|
||||
REQUIRE(canvas->target(buffer, 100, 0, 100, SwCanvas::Colorspace::ARGB8888) == Result::InvalidArguments);
|
||||
REQUIRE(canvas->target(buffer, 100, 200, 100, SwCanvas::Colorspace::ARGB8888) == Result::InvalidArguments);
|
||||
REQUIRE(canvas->target(buffer, 100, 100, 0, SwCanvas::Colorspace::ARGB8888) == Result::InvalidArguments);
|
||||
REQUIRE(canvas->target(buffer, 100, 100, 100, (SwCanvas::Colorspace)-1) == Result::InvalidArguments);
|
||||
|
||||
|
@ -91,4 +92,4 @@ TEST_CASE("Memory Pool", "[tvgSwCanvas]")
|
|||
REQUIRE(canvas2->mempool(SwCanvas::MempoolPolicy::Individual) == Result::InsufficientCondition);
|
||||
|
||||
Initializer::term(CanvasEngine::Sw);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue