Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LO21_Pin_Noir_Boucher_Bouri_Detree
CellulutLO21
Commits
cc971ffa
Commit
cc971ffa
authored
May 09, 2021
by
Eugene Pin
Browse files
Add test for grid and history
parent
2c9e9137
Pipeline
#77700
passed with stages
in 17 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/cellulut_tests.hpp
View file @
cc971ffa
...
...
@@ -15,6 +15,9 @@ private slots:
void
test_rle_structurereader
();
void
test_json_structurereader
();
void
test_history
();
void
test_grid
();
};
#endif // CELLULUT_TESTS_HPP
tests/grid_test.cpp
0 → 100644
View file @
cc971ffa
#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);
*/
}
tests/history_test.cpp
0 → 100644
View file @
cc971ffa
#include
<QtTest/QtTest>
#include
<algorithm>
#include
"cellulut_tests.hpp"
#include
"history.h"
void
CellulutTests
::
test_history
()
{
/*
History history(5);
*/
}
tests/tests.pro
View file @
cc971ffa
...
...
@@ -18,6 +18,8 @@ SOURCES += \
..
/
src
/
structurereader
.
cpp
\
coord_tests
.
cpp
\
factory_tests
.
cpp
\
grid_test
.
cpp
\
history_test
.
cpp
\
property_test
.
cpp
\
propertyvisitors_test
.
cpp
\
cellulut_tests
.
cpp
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment