diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-06-25 15:23:51 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-06-25 15:23:51 +1000 |
| commit | 8db57d6dc5cf5c83cffd393a37ca37bc1a67f1af (patch) | |
| tree | 3aab9a7757013b8915e3b048ba7d6e6e430d4ae3 /src/drivers/test/test_battery.cpp | |
| parent | 2d04e13cc6498cb4b28a07ae1ce878a295b3cee4 (diff) | |
| download | tangara-fw-8db57d6dc5cf5c83cffd393a37ca37bc1a67f1af.tar.gz | |
Unbreak the tests build
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 |
