コード例 #1
0
		void testProcess_Twice() {
			ZLibDecompressor testling;
			testling.process(createSafeByteArray("\x78\xda\x4a\xcb\xcf\x07\x00\x00\x00\xff\xff", 11));
			SafeByteArray result = testling.process(createSafeByteArray("\x4a\x4a\x2c\x02\x00\x00\x00\xff\xff", 9));

			CPPUNIT_ASSERT_EQUAL(createSafeByteArray("bar"), result);
		}
コード例 #2
0
		void testProcess_Invalid() {
			ZLibDecompressor testling;
			CPPUNIT_ASSERT_THROW(testling.process(createSafeByteArray("invalid")), ZLibException);
		}
コード例 #3
0
		void testProcess() {
			ZLibDecompressor testling;
			ByteArray result = testling.process(ByteArray("\x78\xda\x4a\xcb\xcf\x07\x00\x00\x00\xff\xff", 11));

			CPPUNIT_ASSERT_EQUAL(ByteArray("foo"), result);
		}