-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from joshua-jerred/gfs-merge
GFS Updates
- Loading branch information
Showing
11 changed files
with
111 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Boost_erSeat
updated
12 files
+1 −0 | include/BoosterSeat/filesystem.hpp | |
+62 −5 | include/BoosterSeat/timer.hpp | |
+1 −0 | tests/CMakeLists.txt | |
+14 −14 | tests/filesystem_test.cpp | |
+2 −2 | tests/filters_test.cpp | |
+3 −3 | tests/geo_test.cpp | |
+5 −5 | tests/process_test.cpp | |
+2 −2 | tests/random_test.cpp | |
+3 −3 | tests/rolling_average_test.cpp | |
+8 −8 | tests/stopwatch_test.cpp | |
+6 −6 | tests/time_class_test.cpp | |
+54 −0 | tests/timer_test.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/// =*============================= SignalEasel ==============================*= | ||
/// A C++ library for audio modulation/demodulation into analog & digital modes. | ||
/// Detailed documentation can be found here: https://signaleasel.joshuajer.red | ||
/// | ||
/// @author Joshua Jerred | ||
/// @date 2024-10-18 | ||
/// | ||
/// @copyright Copyright 2024 Joshua Jerred. All rights reserved. | ||
/// @license This project is licensed under the GNU GPL v3.0 license. | ||
/// =*========================================================================*= | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
#include "gtest/gtest.h" | ||
|
||
#include "src/utilities.hpp" | ||
|
||
TEST(utilities_test, isCallSignValid) { | ||
// -- Test Valid Call Signs -- | ||
// From https://en.wikipedia.org/wiki/Amateur_radio_call_signs | ||
std::vector<std::string> valid_call_signs = { | ||
"K4X", "B2AA", "N2ASD", "A22A", "I20000X", "4X4AAA", "3DA0RS", "HL1AA"}; | ||
|
||
for (const auto &call_sign : valid_call_signs) { | ||
EXPECT_TRUE(signal_easel::isCallSignValid(call_sign)) | ||
<< call_sign << " should be considered valid"; | ||
} | ||
|
||
// -- Test Invalid Call Signs -- | ||
std::vector<std::string> invalid_call_signs = {"K4", "BAA", "TOOLONGOFCALL", | ||
"NON-ALPHANUMERIC", "1234"}; | ||
|
||
for (const auto &call_sign : invalid_call_signs) { | ||
EXPECT_FALSE(signal_easel::isCallSignValid(call_sign)) | ||
<< call_sign << " should be considered invalid"; | ||
} | ||
} |