summaryrefslogtreecommitdiff
path: root/test/write_test.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-04-21 22:21:05 +0200
committerPetr Mrázek <peterix@gmail.com>2020-06-07 21:23:04 +0200
commitd7deea6dac9ca210a4dec273a7e10453492e04b5 (patch)
treecd64d0170695fe72509641045c866330946f05d1 /test/write_test.h
parent92f8d57227feb94643378ecf595626c60c0f59b8 (diff)
downloadProject-Tick-d7deea6dac9ca210a4dec273a7e10453492e04b5.tar.gz
Project-Tick-d7deea6dac9ca210a4dec273a7e10453492e04b5.zip
Implement tag 12 (array of 64bit long) and fix tests
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;