1 /* -*- Mode: C; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // -------------------------------------------------------------------------*/
18 * Tests the opening and closing of Zip files.
22 SJME_TEST_DECLARE(testZipOpenClose
)
26 /* Attempt open of Zip. */
28 if (sjme_error_is(sjme_zip_open(test
->pool
, &zip
,
29 mock_jar__bin
, mock_jar__len
)) || zip
== NULL
)
30 return sjme_unit_fail(test
, "Could not open Zip");
32 /* Immediately close it without doing anything. */
33 if (sjme_error_is(sjme_zip_close(zip
)))
34 return sjme_unit_fail(test
, "Could not close Zip");
37 return SJME_TEST_RESULT_PASS
;