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