summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/animations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hyprtester/src/tests/main/animations.cpp')
-rw-r--r--hyprtester/src/tests/main/animations.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/hyprtester/src/tests/main/animations.cpp b/hyprtester/src/tests/main/animations.cpp
index e464dcbd..2f918d2b 100644
--- a/hyprtester/src/tests/main/animations.cpp
+++ b/hyprtester/src/tests/main/animations.cpp
@@ -5,18 +5,11 @@
#include <hyprutils/os/Process.hpp>
#include <hyprutils/memory/WeakPtr.hpp>
-static int ret = 0;
-
using namespace Hyprutils::OS;
using namespace Hyprutils::Memory;
-static bool test() {
- NLog::log("{}Testing animations", Colors::GREEN);
-
+TEST_CASE(animationsTrivial) {
auto str = getFromSocket("/animations");
NLog::log("{}Testing bezier curve output from `hyprctl animations`", Colors::YELLOW);
- {EXPECT_CONTAINS(str, std::format("beziers:\n\n\tname: quick\n\t\tX0: 0.15\n\t\tY0: 0.00\n\t\tX1: 0.10\n\t\tY1: 1.00"))};
- return !ret;
+ ASSERT_CONTAINS(str, std::format("beziers:\n\n\tname: quick\n\t\tX0: 0.15\n\t\tY0: 0.00\n\t\tX1: 0.10\n\t\tY1: 1.00"));
}
-
-REGISTER_TEST_FN(test)