/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2021 - 2023 the ThorVG project. All rights reserved.
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
using namespace tvg;
+TEST_CASE("Shape Creation", "[tvgShape]")
+{
+ auto shape = Shape::gen();
+ REQUIRE(shape);
+
+ REQUIRE(shape->identifier() == Shape::identifier());
+ REQUIRE(shape->identifier() != Picture::identifier());
+ REQUIRE(shape->identifier() != Scene::identifier());
+}
TEST_CASE("Appending Commands", "[tvgShape]")
{
REQUIRE(shape->fillRule() == FillRule::Winding);
REQUIRE(shape->fill(FillRule::EvenOdd) == Result::Success);
REQUIRE(shape->fillRule() == FillRule::EvenOdd);
-}
\ No newline at end of file
+}