mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
523 B
Objective-C
16 lines
523 B
Objective-C
#import <XCTest/XCTest.h>
|
|
#import "ShortAuthenticationStringGenerator.h"
|
|
#import "Util.h"
|
|
#import "TestUtil.h"
|
|
|
|
@interface ShortAuthenticationStringGeneratorTest : XCTestCase
|
|
|
|
@end
|
|
|
|
@implementation ShortAuthenticationStringGeneratorTest
|
|
-(void) testSAS {
|
|
test([[ShortAuthenticationStringGenerator generateFromData:[(@[@0,@0]) toUint8Data]] isEqualToString:@"aardvark adroitness"]);
|
|
test([[ShortAuthenticationStringGenerator generateFromData:[(@[@0xFF,@0xFF]) toUint8Data]] isEqualToString:@"Zulu Yucatan"]);
|
|
}
|
|
@end
|