mirror of
https://github.com/passepartoutvpn/openssl-apple.git
synced 2025-01-20 07:49:11 +00:00
Add some tests
This commit is contained in:
parent
a6e8008064
commit
ee1533db6d
@ -30,4 +30,21 @@
|
||||
XCTAssertEqualObjects([FSOpenSSL md5FromString:@"test string"], @"6f8db599de986fab7a21625b7916589c");
|
||||
}
|
||||
|
||||
- (void)testSHA256
|
||||
{
|
||||
XCTAssertEqualObjects([FSOpenSSL sha256FromString:@"test string"], @"d5579c46dfcc7f18207013e65b44e4cb4e2c2298f4ac457ba8f82743f31e930b");
|
||||
}
|
||||
|
||||
- (void)testBase64
|
||||
{
|
||||
XCTAssertEqualObjects([FSOpenSSL base64FromString:@"test string" encodeWithNewlines:NO], @"dGVzdCBzdHJpbmc=");
|
||||
}
|
||||
|
||||
- (void)testBase64WithNewLines
|
||||
{
|
||||
XCTAssertEqualObjects([FSOpenSSL base64FromString:@"test string" encodeWithNewlines:YES], @"dGVzdCBzdHJpbmc=\n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@end
|
||||
|
Loading…
Reference in New Issue
Block a user