+
+ char cbuf[10];
+ memset(cbuf, (char)-1, sizeof(cbuf));
+ CPPUNIT_ASSERT_EQUAL( wxCONV_FAILED, wxBase64Decode(cbuf, 3, str) );
+ CPPUNIT_ASSERT_EQUAL( 4, wxBase64Decode(cbuf, 4, str) );
+ CPPUNIT_ASSERT_EQUAL( 'A', cbuf[0] );
+ CPPUNIT_ASSERT_EQUAL( 'B', cbuf[1] );
+ CPPUNIT_ASSERT_EQUAL( 'C', cbuf[2] );
+ CPPUNIT_ASSERT_EQUAL( 'D', cbuf[3] );
+ CPPUNIT_ASSERT_EQUAL( (char)-1, cbuf[4] );
+ CPPUNIT_ASSERT_EQUAL( (char)-1, cbuf[5] );