summaryrefslogtreecommitdiff
path: root/test/write_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/write_test.h')
-rw-r--r--test/write_test.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/write_test.h b/test/write_test.h
index a302891074..8b16b2a779 100644
--- a/test/write_test.h
+++ b/test/write_test.h
@@ -29,6 +29,8 @@
#include <fstream>
#include <sstream>
+#include "data.h"
+
using namespace nbt;
class read_test : public CxxTest::TestSuite
@@ -226,7 +228,9 @@ public:
Instead, we assume that reading already works correctly and re-read the
written tag.
Smaller-grained tests are already done above. */
- std::ifstream file("bigtest_uncompr", std::ios::binary);
+ std::string input(__binary_bigtest_uncompr_start, __binary_bigtest_uncompr_end);
+ std::istringstream file(input, std::ios::binary);
+
const auto orig_pair = io::read_compound(file);
std::stringstream sstr;