diff UnitTestsSources/Zip.cpp @ 644:eb5a0b21d05e

do not use ZIP64 as the default format anymore
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Oct 2013 17:40:18 +0100
parents 17815b9d4280
children 4689e400e0fa
line wrap: on
line diff
--- a/UnitTestsSources/Zip.cpp	Tue Oct 29 17:05:02 2013 +0100
+++ b/UnitTestsSources/Zip.cpp	Tue Oct 29 17:40:18 2013 +0100
@@ -18,11 +18,22 @@
 }
 
 
+TEST(ZipWriter, Basic64)
+{
+  Orthanc::ZipWriter w;
+  w.SetOutputPath("hello64.zip");
+  w.SetZip64(true);
+  w.Open();
+  w.OpenFile("world/hello");
+  w.Write("Hello world");
+}
+
+
 TEST(ZipWriter, Exceptions)
 {
   Orthanc::ZipWriter w;
   ASSERT_THROW(w.Open(), Orthanc::OrthancException);
-  w.SetOutputPath("hello.zip");
+  w.SetOutputPath("hello3.zip");
   w.Open();
   ASSERT_THROW(w.Write("hello world"), Orthanc::OrthancException);
 }