From 0aa7a30bb0f04fb33aedf30df9586ff1b4e619cb Mon Sep 17 00:00:00 2001
From: Eric Lenz <elenz@iat.tu-darmstadt.de>
Date: Mon, 16 Oct 2023 12:22:39 +0200
Subject: [PATCH] add test case to check if argument y is used

---
 src/controller.test.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/controller.test.cpp b/src/controller.test.cpp
index fbd690f..228c355 100644
--- a/src/controller.test.cpp
+++ b/src/controller.test.cpp
@@ -6,6 +6,7 @@ extern "C" {
 TEST_CASE("PI_Regler") {
     REQUIRE(controller(8, 0, 500) == 16);
     REQUIRE(controller(-2, 0, 500) == -4);
+    REQUIRE(controller(0, 2, 500) == -4);
 }
 
 TEST_CASE("limits") {
-- 
GitLab