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.
session-ios/Signal/test/network/rtp/zrtp/ShortAuthenticationStringGe...

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