fix(diff): bugs on diff stdin and numerics #16
|  | @ -1,3 +1,4 @@ | |||
| import os | ||||
| import re | ||||
| import shlex | ||||
| from functools import partial | ||||
|  | @ -259,4 +260,7 @@ def get_testcases( | |||
|                 testcases_path.relative_to((task_root / task_path).parent) | ||||
|             ).removesuffix(".in") | ||||
|         ) | ||||
|         assert os.path.exists( | ||||
| 
					
					jon-lee marked this conversation as resolved
					
						
						
							Outdated
						
					
				 | ||||
|             str(testcases_path).removesuffix(".in") + ".out" | ||||
|         ), f"{testcases_path} does not have a corresponding *.out file!" | ||||
|     return testcases | ||||
|  |  | |||
							
								
								
									
										0
									
								
								tests/convert/diff/case0.out
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								tests/convert/diff/case0.out
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								tests/convert/diff/case1.out
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								tests/convert/diff/case1.out
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								tests/convert/diff/case2.out
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								tests/convert/diff/case2.out
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								tests/convert/diff/case3.out
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								tests/convert/diff/case3.out
									
									
									
									
									
										Normal file
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user
	
No. Just do not append it to the return value and log a warning.
okay
we can probably move some redundant functions like
get_testcaesinto autils.pyas file llines already bit largeleave it here now. we have not reused the logic.