From d7deea6dac9ca210a4dec273a7e10453492e04b5 Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sat, 21 Apr 2018 22:21:05 +0200 Subject: Implement tag 12 (array of 64bit long) and fix tests --- test/write_test.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/write_test.h') 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 #include +#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; -- cgit 0.0.5-2-1-g0f52