~aleteoryx/muditaos

ref: 5e8f773d475f6b76156ee7c3375bdc543b5a9ace muditaos/module-services/service-cellular/tests/unittest_simcard.cpp -rw-r--r-- 523 bytes
5e8f773d — Przemyslaw Brudny [EGD-6772] Fixed failing resize test 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#define CATCH_CONFIG_MAIN

#include <catch2/catch.hpp>
#include <service-cellular/SimCard.hpp>

TEST_CASE("SimCard functionality test")
{
    SECTION("pinToString from vector")
    {
        std::vector<unsigned int> v{1, 2, 3, 4};
        std::vector<unsigned int> empty;
        REQUIRE(SimCard::pinToString(v) == "1234");
        REQUIRE(SimCard::pinToString(empty).empty());
    }
}