summaryrefslogtreecommitdiff
path: root/test/sensorIMUTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/sensorIMUTest.cpp')
-rw-r--r--test/sensorIMUTest.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/test/sensorIMUTest.cpp b/test/sensorIMUTest.cpp
new file mode 100644
index 0000000..d16930e
--- /dev/null
+++ b/test/sensorIMUTest.cpp
@@ -0,0 +1,50 @@
+#include <iostream>
+#include <vector>
+#include <gtest/gtest.h>
+#include "../include/sensorIMU.hpp"
+#include "../include/rocketUtils.hpp"
+
+class IMUSensorTest : public ::testing::Test {
+
+ protected:
+
+ IMUSensorTest() {
+
+ imu = new IMUSensor();
+ }
+
+ //~IMUSensorTest() {}
+
+ IMUSensor *imu;
+};
+
+
+/**
+ * @brief Test a
+ *
+ * **/
+TEST_F(IMUSensorTest, init) {
+
+ Vehicle rocket;
+
+ imu->init((void*)&rocket);
+
+ // ASSERT Statements.....
+}
+
+
+/**
+ * @brief Test a
+ *
+ * **/
+TEST_F(IMUSensorTest, getData) {
+
+ Vehicle rocket;
+
+ imu->getData((void*)&rocket);
+
+ // ASSERT Statements.....
+}
+
+
+// TODO: FIGURE OUT WHY MAKING 'rocket' a POINTER CAUSES A SEGFAULT