mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
fix(test): added missing big file
This commit is contained in:
parent
f0632c0fe0
commit
da4ca1352d
3 changed files with 32 additions and 16 deletions
|
|
@ -1,17 +1 @@
|
|||
#include "vendor/catch-2.13.10/catch.hpp"
|
||||
|
||||
class BigData;
|
||||
|
||||
// Fixture for repetitive handling of BigData objects.
|
||||
struct BigDataTest {
|
||||
using BigDataPtr = BigData*;
|
||||
|
||||
BigData* num;
|
||||
|
||||
BigDataTest();
|
||||
~BigDataTest();
|
||||
|
||||
BigData** operator &() { return # }
|
||||
operator BigDataPtr() const { return num; }
|
||||
BigData* operator->() const { return num; }
|
||||
};
|
||||
|
|
|
|||
9
test/big/BigDataTest.cpp
Normal file
9
test/big/BigDataTest.cpp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include "test/big/BigDataTest.hpp"
|
||||
|
||||
BigDataTest::BigDataTest() {
|
||||
SBigNew(&this->num);
|
||||
}
|
||||
|
||||
BigDataTest::~BigDataTest() {
|
||||
SBigDel(this->num);
|
||||
}
|
||||
23
test/big/BigDataTest.hpp
Normal file
23
test/big/BigDataTest.hpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef TEST_BIG_BIG_DATA_TEST_HPP
|
||||
#define TEST_BIG_BIG_DATA_TEST_HPP
|
||||
|
||||
#include "storm/Big.hpp"
|
||||
|
||||
class BigData;
|
||||
|
||||
// Fixture for repetitive handling of BigData objects.
|
||||
struct BigDataTest {
|
||||
using BigDataPtr = BigData*;
|
||||
|
||||
BigData* num;
|
||||
|
||||
BigDataTest();
|
||||
~BigDataTest();
|
||||
|
||||
BigData** operator &() { return # }
|
||||
operator BigDataPtr() const { return num; }
|
||||
BigData* operator->() const { return num; }
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue