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.
		
		
		
		
		
			
		
			
	
	
		
			13 lines
		
	
	
		
			305 B
		
	
	
	
		
			Matlab
		
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			305 B
		
	
	
	
		
			Matlab
		
	
| 
								 
											12 years ago
										 
									 | 
							
								#import "Crc32Test.h"
							 | 
						||
| 
								 | 
							
								#import "Crc32.h"
							 | 
						||
| 
								 | 
							
								#import "TestUtil.h"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@implementation Crc32Test
							 | 
						||
| 
								 | 
							
								-(void) testKnownCrc32 {
							 | 
						||
| 
								 | 
							
								    char* valText = "The quick brown fox jumps over the lazy dog";
							 | 
						||
| 
								 | 
							
								    NSData* val = [NSMutableData dataWithBytes:valText length:strlen(valText)];
							 | 
						||
| 
								 | 
							
								    test(0x414fa339 == [val crc32]);
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@end
							 |