summaryrefslogtreecommitdiff
path: root/src/drivers/test/test_gpio_expander.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-06-25 15:23:51 +1000
committerjacqueline <me@jacqueline.id.au>2024-06-25 15:23:51 +1000
commit8db57d6dc5cf5c83cffd393a37ca37bc1a67f1af (patch)
tree3aab9a7757013b8915e3b048ba7d6e6e430d4ae3 /src/drivers/test/test_gpio_expander.cpp
parent2d04e13cc6498cb4b28a07ae1ce878a295b3cee4 (diff)
downloadtangara-fw-8db57d6dc5cf5c83cffd393a37ca37bc1a67f1af.tar.gz
Unbreak the tests build
Diffstat (limited to 'src/drivers/test/test_gpio_expander.cpp')
-rw-r--r--src/drivers/test/test_gpio_expander.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/drivers/test/test_gpio_expander.cpp b/src/drivers/test/test_gpio_expander.cpp
deleted file mode 100644
index 7c323313..00000000
--- a/src/drivers/test/test_gpio_expander.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright 2023 jacqueline <me@jacqueline.id.au>
- *
- * SPDX-License-Identifier: GPL-3.0-only
- */
-
-#include "drivers/gpios.hpp"
-
-#include "catch2/catch.hpp"
-
-#include "drivers/i2c.hpp"
-#include "i2c_fixture.hpp"
-
-namespace drivers {
-
-TEST_CASE("gpio expander", "[integration]") {
- I2CFixture i2c;
- IGpios expander;
- SECTION("with() writes when ") {
- // Initial value.
- expander.Read();
- REQUIRE(expander.get_input(IGpios::KEY_DOWN) == true);
-
- expander.with([&](auto& gpio) { gpio.set_pin(IGpios::KEY_DOWN, false); });
-
- expander.Read();
- REQUIRE(expander.get_input(IGpios::KEY_DOWN) == false);
- }
-}
-
-} // namespace drivers