diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-08-10 22:58:30 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-08-10 22:58:30 +0200 |
| commit | 2c43e00b12c9f26aad6f76e3a723bc231c9348b5 (patch) | |
| tree | 11518c383cf58dd6000e682e0d64c1dbeab512ae /test/format_test.cpp | |
| parent | 85df484ff7aa34dd62fb6807ad0001a72f485c86 (diff) | |
| download | Project-Tick-2c43e00b12c9f26aad6f76e3a723bc231c9348b5.tar.gz Project-Tick-2c43e00b12c9f26aad6f76e3a723bc231c9348b5.zip | |
Add operator<< for tag, using json_formatter
Diffstat (limited to 'test/format_test.cpp')
| -rw-r--r-- | test/format_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/format_test.cpp b/test/format_test.cpp index 893637c19d..9f79c66c60 100644 --- a/test/format_test.cpp +++ b/test/format_test.cpp @@ -18,7 +18,7 @@ * along with libnbt++. If not, see <http://www.gnu.org/licenses/>. */ #include "microtest.h" -#include "text/json_formatter.h" +//#include "text/json_formatter.h" #include "io/stream_reader.h" #include <fstream> #include <iostream> @@ -34,7 +34,7 @@ int main() std::unique_ptr<tag_compound> comp; std::tie(key, comp) = io::stream_reader(file).read_compound(); - std::cout << "----- json_formatter:\n"; - text::json_formatter().write(std::cout, *comp); + std::cout << "----- default operator<<:\n"; + std::cout << *comp; std::cout << "\n-----" << std::endl; } |
