Commit cc971ffa authored by Eugene Pin's avatar Eugene Pin
Browse files

Add test for grid and history

parent 2c9e9137
Pipeline #77700 passed with stages
in 17 seconds
...@@ -15,6 +15,9 @@ private slots: ...@@ -15,6 +15,9 @@ private slots:
void test_rle_structurereader(); void test_rle_structurereader();
void test_json_structurereader(); void test_json_structurereader();
void test_history();
void test_grid();
}; };
#endif // CELLULUT_TESTS_HPP #endif // CELLULUT_TESTS_HPP
#include <QtTest/QtTest>
#include <algorithm>
#include "cellulut_tests.hpp"
#include "grid.h"
void CellulutTests::test_grid()
{
/*
Grid grid(2,2);
grid.set_cell(4,4,2);
unsigned int state = grid.get_state(4, 4);
QVERIFY(state == 2);
*/
}
#include <QtTest/QtTest>
#include <algorithm>
#include "cellulut_tests.hpp"
#include "history.h"
void CellulutTests::test_history()
{
/*
History history(5);
*/
}
...@@ -18,6 +18,8 @@ SOURCES += \ ...@@ -18,6 +18,8 @@ SOURCES += \
../src/structurereader.cpp \ ../src/structurereader.cpp \
coord_tests.cpp \ coord_tests.cpp \
factory_tests.cpp \ factory_tests.cpp \
grid_test.cpp \
history_test.cpp \
property_test.cpp \ property_test.cpp \
propertyvisitors_test.cpp \ propertyvisitors_test.cpp \
cellulut_tests.cpp \ cellulut_tests.cpp \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment