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
		
	
	
		
			531 B
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			16 lines
		
	
	
		
			531 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]) ows_toUint8Data]] isEqualToString:@"aardvark adroitness"]);
 | |
|     test([[ShortAuthenticationStringGenerator generateFromData:[(@[@0xFF,@0xFF]) ows_toUint8Data]] isEqualToString:@"Zulu Yucatan"]);
 | |
| }
 | |
| @end
 |