]> granicus.if.org Git - taglib/commitdiff
Fix a wrong test for base64 decoding.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 11 Feb 2016 11:47:55 +0000 (20:47 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 11 Feb 2016 11:47:55 +0000 (20:47 +0900)
tests/test_bytevector.cpp

index 8cd209f164d5a598ce3bfd63b84e310b82e95939..159502dd76e87b9177b6821091a4b905648f89b0 100644 (file)
@@ -429,7 +429,7 @@ public:
     CPPUNIT_ASSERT_EQUAL(e3, s3.toBase64());
 
     // Decode
-    CPPUNIT_ASSERT_EQUAL(sempty, eempty.toBase64());
+    CPPUNIT_ASSERT_EQUAL(sempty, ByteVector::fromBase64(eempty));
     CPPUNIT_ASSERT_EQUAL(s0, ByteVector::fromBase64(e0));
     CPPUNIT_ASSERT_EQUAL(s1, ByteVector::fromBase64(e1));
     CPPUNIT_ASSERT_EQUAL(s2, ByteVector::fromBase64(e2));