From f633717e9f21536108a1d94eaa22b40c399be43d Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Wed, 17 May 2023 13:56:33 +0900 Subject: [PATCH] test shape: add stroke order test --- test/testShape.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/testShape.cpp b/test/testShape.cpp index c51b1ffe..a2d5d3d0 100644 --- a/test/testShape.cpp +++ b/test/testShape.cpp @@ -141,6 +141,10 @@ TEST_CASE("Stroking", "[tvgShape]") auto shape = Shape::gen(); REQUIRE(shape); + //Stroke Order Before Stroke Setting + REQUIRE(shape->order(true) == Result::Success); + REQUIRE(shape->order(false) == Result::Success); + //Stroke Width REQUIRE(shape->stroke(0) == Result::Success); REQUIRE(shape->strokeWidth() == 0); @@ -186,6 +190,10 @@ TEST_CASE("Stroking", "[tvgShape]") REQUIRE(shape->stroke(StrokeJoin::Miter) == Result::Success); REQUIRE(shape->stroke(StrokeJoin::Round) == Result::Success); REQUIRE(shape->strokeJoin() == StrokeJoin::Round); + + //Stroke Order After Stroke Setting + REQUIRE(shape->order(true) == Result::Success); + REQUIRE(shape->order(false) == Result::Success); } TEST_CASE("Shape Filling", "[tvgShape]")