Fix mmap tests
							parent
							
								
									d6fbaf632d
								
							
						
					
					
						commit
						fe155e69a3
					
				| 
						 | 
					@ -8,8 +8,3 @@ IN: io.mmap.tests
 | 
				
			||||||
[ 5 ] [ "mmap-test-file.txt" temp-file dup file-info size>> [ length ] with-mapped-file ] unit-test
 | 
					[ 5 ] [ "mmap-test-file.txt" temp-file dup file-info size>> [ length ] with-mapped-file ] unit-test
 | 
				
			||||||
[ "22345" ] [ "mmap-test-file.txt" temp-file ascii file-contents ] unit-test
 | 
					[ "22345" ] [ "mmap-test-file.txt" temp-file ascii file-contents ] unit-test
 | 
				
			||||||
[ "mmap-test-file.txt" temp-file delete-file ] ignore-errors
 | 
					[ "mmap-test-file.txt" temp-file delete-file ] ignore-errors
 | 
				
			||||||
 | 
					 | 
				
			||||||
[ ] [ "a" "mmap-grow-test.txt" temp-file ascii set-file-contents ] unit-test
 | 
					 | 
				
			||||||
[ 1 ] [ "mmap-grow-test.txt" temp-file file-info size>> ] unit-test
 | 
					 | 
				
			||||||
[ ] [ "mmap-grow-test.txt" temp-file 100 [ drop ] with-mapped-file ] unit-test
 | 
					 | 
				
			||||||
[ 100 ] [ "mmap-grow-test.txt" temp-file file-info size>> ] unit-test
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,8 @@
 | 
				
			||||||
 | 
					USING: io io.mmap io.files kernel tools.test continuations
 | 
				
			||||||
 | 
					sequences io.encodings.ascii accessors ;
 | 
				
			||||||
 | 
					IN: io.windows.mmap.tests
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[ ] [ "a" "mmap-grow-test.txt" temp-file ascii set-file-contents ] unit-test
 | 
				
			||||||
 | 
					[ 1 ] [ "mmap-grow-test.txt" temp-file file-info size>> ] unit-test
 | 
				
			||||||
 | 
					[ ] [ "mmap-grow-test.txt" temp-file 100 [ [ ] change-each ] with-mapped-file ] unit-test
 | 
				
			||||||
 | 
					[ 100 ] [ "mmap-grow-test.txt" temp-file file-info size>> ] unit-test
 | 
				
			||||||
		Loading…
	
		Reference in New Issue