diff --git a/test/stl.cpp b/test/stl.cpp index 75b3ff1..55b0ed2 100644 --- a/test/stl.cpp +++ b/test/stl.cpp @@ -46,17 +46,21 @@ TEST(STL, READ_ASCII) objs.clear(); } -TEST(STL, WRITE_ASCII) +TEST(STL, WRITE_BINARY) { - /* Reference STLData object */ - vector< STLData > referenceObjs; - initializeReferenceSTLObj(referenceObjs); - vector< STLData > objs; stl::read(objs, TEST_DIR "/cube_ascii.stl"); - stl::write(TEST_DIR "/cube_ascii2ascii.stl", meshio::STL_ASCII, objs); + stl::write(TEST_DIR "/cube_ascii2binary.stl", meshio::STL_BINARY, objs); + + objs.clear(); +} + +TEST(STL, WRITE_ASCII) +{ + vector< STLData > objs; + stl::read(objs, TEST_DIR "/cube_binary.stl"); + stl::write(TEST_DIR "/cube_binary2ascii.stl", meshio::STL_ASCII, objs); - referenceObjs.clear(); objs.clear(); } @@ -69,4 +73,4 @@ TEST(STL, CROSS_CHECK) stl::read(asciiReadObjs, TEST_DIR "/cube_ascii.stl"); EXPECT_TRUE(binReadObjs[0] == asciiReadObjs[0]); -} \ No newline at end of file +}