checksums: fix test using.
							parent
							
								
									5abccb1391
								
							
						
					
					
						commit
						8d61ace2b4
					
				| 
						 | 
				
			
			@ -1,7 +1,8 @@
 | 
			
		|||
! Copyright (C) 2009 Doug Coleman.
 | 
			
		||||
! See http://factorcode.org/license.txt for BSD license.
 | 
			
		||||
USING: byte-arrays checksums checksums.md5 io.encodings.binary
 | 
			
		||||
io.streams.byte-array kernel math.parser sequences tools.test ;
 | 
			
		||||
USING: byte-arrays checksums checksums.common checksums.md5
 | 
			
		||||
io.encodings.binary io.streams.byte-array kernel math.parser
 | 
			
		||||
sequences tools.test ;
 | 
			
		||||
 | 
			
		||||
{ "d41d8cd98f00b204e9800998ecf8427e" } [ "" >byte-array md5 checksum-bytes bytes>hex-string ] unit-test
 | 
			
		||||
{ "0cc175b9c0f1b6a831c399e269772661" } [ "a" >byte-array md5 checksum-bytes bytes>hex-string ] unit-test
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
USING: arrays checksums checksums.sha checksums.sha.private
 | 
			
		||||
io.encodings.binary io.streams.byte-array kernel math.parser
 | 
			
		||||
sequences tools.test ;
 | 
			
		||||
USING: arrays checksums checksums.common checksums.sha
 | 
			
		||||
checksums.sha.private io.encodings.binary io.streams.byte-array
 | 
			
		||||
kernel math.parser sequences tools.test ;
 | 
			
		||||
IN: checksums.sha.tests
 | 
			
		||||
 | 
			
		||||
: test-checksum ( text identifier -- checksum )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue