From 8db57d6dc5cf5c83cffd393a37ca37bc1a67f1af Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 25 Jun 2024 15:23:51 +1000 Subject: Unbreak the tests build --- src/drivers/test/test_battery.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/drivers/test/test_battery.cpp (limited to 'src/drivers/test/test_battery.cpp') diff --git a/src/drivers/test/test_battery.cpp b/src/drivers/test/test_battery.cpp deleted file mode 100644 index 690eb2b7..00000000 --- a/src/drivers/test/test_battery.cpp +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2023 jacqueline - * - * SPDX-License-Identifier: GPL-3.0-only - */ - -#include "battery.hpp" - -#include - -#include "catch2/catch.hpp" - -namespace drivers { - -TEST_CASE("battery measurement", "[integration]") { - Battery battery; - - SECTION("voltage is within range") { - uint32_t mv = battery.Millivolts(); - REQUIRE(mv <= 2200); // Plugged in, no battery. - REQUIRE(mv >= 1000); - } -} - -} // namespace drivers -- cgit v1.2.3