another test for Riccardo

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39336 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-02-04 16:02:49 +00:00
parent 3ab8d10f1f
commit 9ea39120ab

View file

@ -120,6 +120,12 @@ int main()
PASS_EQUAL(str1, str2, "Encode / Decode 64 - implicit CR LF")
[str2 release];
data = [[NSData alloc] initWithBase64EncodedString:
@"Yml0bWFya2V0cyB1c2VyIGluZGVudGl0eQ==" options: 0];
ref = [NSData dataWithBytes: "bitmarkets user indentity" length: 25];
PASS_EQUAL(data, ref, "base64 decoding Yml0bWFya2V0cyB1c2VyIGluZGVudGl0eQ==")
[data release];
[arp release]; arp = nil;
return 0;
}