Ajout des cas de tests pour les TP non-graphiques. Cleanage en tous genres.
[GPU.git] / WCudaMSE / Student_Cuda / src / cpp / test / junit / 04_MonteCarlo / TestMonteCarlo.cpp
diff --git a/WCudaMSE/Student_Cuda/src/cpp/test/junit/04_MonteCarlo/TestMonteCarlo.cpp b/WCudaMSE/Student_Cuda/src/cpp/test/junit/04_MonteCarlo/TestMonteCarlo.cpp
new file mode 100755 (executable)
index 0000000..bf28f8d
--- /dev/null
@@ -0,0 +1,14 @@
+#include "TestMonteCarlo.h"
+
+#include "MonteCarlo.h"
+
+TestMonteCarlo::TestMonteCarlo(int deviceId) :
+    deviceId(deviceId)
+    {
+    TEST_ADD(TestMonteCarlo::testMonteCarlo);
+    }
+
+void TestMonteCarlo::testMonteCarlo(void)
+    {
+    TEST_ASSERT(monteCarlo());
+    }