Testing module

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-04-29 22:49:33 +03:00
1 parent 4fc129fb7e
commit e7186f17f0
42 files changed
+1816 -413

No files matched your search

@@ -0,0 +1,28 @@
#include <Void/Testing/Assert.hpp>
#include <Void/Testing/Fixture.hpp>
#include <Void/Testing/Test.hpp>
#include <vector>
class VectorFixture : public Void::Testing::Fixture
{
public:
std::vector<int> vec;
void setup() override { vec = {1, 2, 3}; }
void teardown() override { vec.clear(); }
Void::Testing::Test size()
{
Void::Testing::expect_eq(vec.size(), 3u);
}
// @tag slow
Void::Testing::Test push_back()
{
vec.push_back(4);
Void::Testing::expect_eq(vec.size(), 4u);
Void::Testing::expect_eq(vec.back(), 4);
}
};