aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/dummy/main.cpp18
-rw-r--r--tests/ice40/main.cpp18
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/dummy/main.cpp b/tests/dummy/main.cpp
new file mode 100644
index 00000000..b8d22138
--- /dev/null
+++ b/tests/dummy/main.cpp
@@ -0,0 +1,18 @@
+#include "gtest/gtest.h"
+
+#include <vector>
+
+int main(int argc, char **argv) {
+ ::testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+}
+
+TEST(example, sum_zero) {
+ auto result = 0;
+ ASSERT_EQ(result, 0);
+}
+
+TEST(example, sum_five) {
+ auto result = 15;
+ ASSERT_EQ(result, 15);
+}
diff --git a/tests/ice40/main.cpp b/tests/ice40/main.cpp
new file mode 100644
index 00000000..b8d22138
--- /dev/null
+++ b/tests/ice40/main.cpp
@@ -0,0 +1,18 @@
+#include "gtest/gtest.h"
+
+#include <vector>
+
+int main(int argc, char **argv) {
+ ::testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+}
+
+TEST(example, sum_zero) {
+ auto result = 0;
+ ASSERT_EQ(result, 0);
+}
+
+TEST(example, sum_five) {
+ auto result = 15;
+ ASSERT_EQ(result, 15);
+}