diff options
Diffstat (limited to 'src/drivers/test/test_battery.cpp')
| -rw-r--r-- | src/drivers/test/test_battery.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
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 <me@jacqueline.id.au> - * - * SPDX-License-Identifier: GPL-3.0-only - */ - -#include "battery.hpp" - -#include <cstdint> - -#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 |
