Compare commits
	
		
			No commits in common. "master" and "diff/complex" have entirely different histories.
		
	
	
		
			master
			...
			diff/compl
		
	
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| joj3_result.json | ||||
							
								
								
									
										13
									
								
								a.cc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								a.cc
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| #include <iostream> | ||||
| #include <string> | ||||
| 
 | ||||
| int main(int argc, char *argv[]) { | ||||
|   std::string str, line; | ||||
| 
 | ||||
|   while (std::getline(std::cin, line)) { | ||||
|     str += line + "\n"; | ||||
|   } | ||||
| 
 | ||||
|   std::cout << str; | ||||
|   return 0; | ||||
| } | ||||
							
								
								
									
										0
									
								
								cases/empty.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								cases/empty.in
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								cases/empty.out
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								cases/empty.out
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										5
									
								
								cases/multi-line-correct.out
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								cases/multi-line-correct.out
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| jklasdfklasdfjklf asdfhklasdfjl cvsdlfkdjsfklv  | ||||
| 1024 2048 | ||||
| asdfjkl asdfkljdaslasdfjkl asdfjkl | ||||
| 1024 2048 | ||||
| psdfklj | ||||
							
								
								
									
										3
									
								
								cases/multi-line-err1.out
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								cases/multi-line-err1.out
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| asdfljsdfklasdfjklasdfjjkl | ||||
| 1024 2048 | ||||
| asdfjksdfjkl | ||||
							
								
								
									
										3
									
								
								cases/multi-line-err2.out
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								cases/multi-line-err2.out
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| 1024 2048 | ||||
| asdfjksdfjkl | ||||
| asdfljsdfklasdfjklasdfjjkl | ||||
							
								
								
									
										3
									
								
								cases/multi-line-err3.out
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								cases/multi-line-err3.out
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| 1024 2048 | ||||
| asdfjksdfjkl | ||||
| asdfljsdfklasdfjklasdfjjkl | ||||
							
								
								
									
										5
									
								
								cases/multi-line.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								cases/multi-line.in
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| jklasdfklasdfjklf asdfhklasdfjl cvsdlfkdjsfklv  | ||||
| 1024 2048 | ||||
| asdfjkl asdfkljdaslasdfjkl asdfjkl | ||||
| 1024 2048 | ||||
| psdfklj | ||||
							
								
								
									
										1
									
								
								cases/one-line-whitespace.out
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								cases/one-line-whitespace.out
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| 		1024		 2048    | ||||
							
								
								
									
										1
									
								
								cases/one-line.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								cases/one-line.in
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| 1024 2048 | ||||
							
								
								
									
										1
									
								
								cases/one-line.out
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								cases/one-line.out
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| 1024 2048 | ||||
							
								
								
									
										295
									
								
								conf.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										295
									
								
								conf.json
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,295 @@ | |||
| { | ||||
|   "stages": [ | ||||
|     { | ||||
|       "name": "compile", | ||||
|       "executor": { | ||||
|         "name": "sandbox", | ||||
|         "with": { | ||||
|           "default": { | ||||
|             "args": [ | ||||
|               "clang++", | ||||
|               "a.cc", | ||||
|               "-o", | ||||
|               "a" | ||||
|             ], | ||||
|             "env": [ | ||||
|               "PATH=/usr/bin:/bin" | ||||
|             ], | ||||
|             "cpuLimit": 10000000000, | ||||
|             "memoryLimit": 209715200, | ||||
|             "procLimit": 50, | ||||
|             "copyInDir": ".", | ||||
|             "copyOut": [ | ||||
|               "stdout", | ||||
|               "stderr" | ||||
|             ], | ||||
|             "copyOutCached": [ | ||||
|               "a" | ||||
|             ], | ||||
|             "stdin": { | ||||
|               "content": "" | ||||
|             }, | ||||
|             "stdout": { | ||||
|               "name": "stdout", | ||||
|               "max": 4096 | ||||
|             }, | ||||
|             "stderr": { | ||||
|               "name": "stderr", | ||||
|               "max": 4096 | ||||
|             } | ||||
|           } | ||||
|         } | ||||
|       }, | ||||
|       "parsers": [ | ||||
|         { | ||||
|           "name": "result-status", | ||||
|           "with": { | ||||
|             "score": 0, | ||||
|             "comment": "compile done" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "name": "run", | ||||
|       "executor": { | ||||
|         "name": "sandbox", | ||||
|         "with": { | ||||
|           "default": { | ||||
|             "args": [ | ||||
|               "./a" | ||||
|             ], | ||||
|             "env": [ | ||||
|               "PATH=/usr/bin:/bin" | ||||
|             ], | ||||
|             "cpuLimit": 1000000000, | ||||
|             "memoryLimit": 104857600, | ||||
|             "procLimit": 50, | ||||
|             "copyOut": [ | ||||
|               "stdout", | ||||
|               "stderr" | ||||
|             ], | ||||
|             "stdout": { | ||||
|               "name": "stdout", | ||||
|               "max": 4096 | ||||
|             }, | ||||
|             "stderr": { | ||||
|               "name": "stderr", | ||||
|               "max": 4096 | ||||
|             }, | ||||
|             "copyInCached": { | ||||
|               "a": "a" | ||||
|             } | ||||
|           }, | ||||
|           "cases": [ | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/empty.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/empty.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/empty.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/one-line.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/one-line.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/one-line.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/one-line.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/one-line.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/multi-line.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/multi-line.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/multi-line.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/multi-line.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/multi-line.in" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "stdin": { | ||||
|                 "src": "./cases/multi-line.in" | ||||
|               } | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|       }, | ||||
|       "parsers": [ | ||||
|         { | ||||
|           "name": "diff", | ||||
|           "with": { | ||||
|             "cases": [ | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/empty.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/one-line.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/multi-line-err1.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/empty.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/one-line.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/multi-line-err1.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/multi-line-err2.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/multi-line-err3.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/empty.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/one-line.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/multi-line-correct.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/multi-line-err1.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/multi-line-err2.out" | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               { | ||||
|                 "outputs": [ | ||||
|                   { | ||||
|                     "score": 100, | ||||
|                     "fileName": "stdout", | ||||
|                     "answerPath": "./cases/multi-line-err3.out" | ||||
|                   } | ||||
|                 ] | ||||
|               } | ||||
|             ] | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   ] | ||||
| } | ||||
							
								
								
									
										1
									
								
								expected.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								expected.json
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| [{"name":"compile","results":[{"score":0,"comment":"compile done"}],"force_quit":false},{"name":"run","results":[{"score":100,"comment":"🥳Passed!\n"},{"score":0,"comment":"🧐Failed...\nDifference found in `stdout`\n```diff\n- 1024 2048\n```\n"},{"score":0,"comment":"🧐Failed...\nDifference found in `stdout`\n```diff\n- asdfljsdfklasdfjklasdfjjkl\n- 1024 2048\n- asdfjksdfjkl\n```\n"},{"score":0,"comment":"🧐Failed...\nDifference found in `stdout`\n```diff\n+ 1024 2048\n```\n"},{"score":100,"comment":"🥳Passed!\n"},{"score":0,"comment":"🧐Failed...\nDifference found in `stdout`\n```diff\n- asdfljsdfklasdfjklasdfjjkl\n  1024 2048\n- asdfjksdfjkl\n```\n"},{"score":0,"comment":"🧐Failed...\nDifference found in `stdout`\n```diff\n  1024 2048\n- asdfjksdfjkl\n- asdfljsdfklasdfjklasdfjjkl\n```\n"},{"score":0,"comment":"🧐Failed...\nDifference found in `stdout`\n```diff\n  1024 2048\n- asdfjksdfjkl\n- asdfljsdfklasdfjklasdfjjkl\n```\n"},{"score":0,"comment":"🧐Failed...\nDifference found in `stdout`\n```diff\n+ jklasdfklasdfjklf asdfhklasdfjl cvsdlfkdjsfklv \n+ 1024 2048\n+ asdfjkl asdfkljdaslasdfjkl asdfjkl\n+ 1024 2048\n+ psdfklj\n```\n"},{"score":0,"comment":"🧐Failed...\nDifference found in `stdout`\n```diff\n- 1024 2048\n+ jklasdfklasdfjklf asdfhklasdfjl cvsdlfkdjsfklv \n+ 1024 2048\n+ asdfjkl asdfkljdaslasdfjkl asdfjkl\n+ 1024 2048\n+ psdfklj\n```\n"},{"score":100,"comment":"🥳Passed!\n"},{"score":0,"comment":"🧐Failed...\nDifference found in `stdout`\n```diff\n- asdfljsdfklasdfjklasdfjjkl\n- 1024 2048\n- asdfjksdfjkl\n+ jklasdfklasdfjklf asdfhklasdfjl cvsdlfkdjsfklv \n+ 1024 2048\n+ asdfjkl asdfkljdaslasdfjkl asdfjkl\n+ 1024 2048\n+ psdfklj\n```\n"},{"score":0,"comment":"🧐Failed...\nDifference found in `stdout`\n```diff\n- 1024 2048\n- asdfjksdfjkl\n- asdfljsdfklasdfjklasdfjjkl\n+ jklasdfklasdfjklf asdfhklasdfjl cvsdlfkdjsfklv \n+ 1024 2048\n+ asdfjkl asdfkljdaslasdfjkl asdfjkl\n+ 1024 2048\n+ psdfklj\n```\n"},{"score":0,"comment":"🧐Failed...\nDifference found in `stdout`\n```diff\n- 1024 2048\n- asdfjksdfjkl\n- asdfljsdfklasdfjklasdfjjkl\n+ jklasdfklasdfjklf asdfhklasdfjl cvsdlfkdjsfklv \n+ 1024 2048\n+ asdfjkl asdfkljdaslasdfjkl asdfjkl\n+ 1024 2048\n+ psdfklj\n```\n"}],"force_quit":false}] | ||||
							
								
								
									
										109
									
								
								ret.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										109
									
								
								ret.md
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,109 @@ | |||
| Result 1: the same | ||||
| 
 | ||||
| Result 2 diff blocks: | ||||
| ```diff | ||||
| - 1024 2048 | ||||
| 
 | ||||
| ``` | ||||
| 
 | ||||
| Result 3 diff blocks: | ||||
| ```diff | ||||
| - asdfljsdfklasdfjklasdfjjkl | ||||
| - 1024 2048 | ||||
| - asdfjksdfjkl | ||||
| 
 | ||||
| ``` | ||||
| 
 | ||||
| Result 4 diff blocks: | ||||
| ```diff | ||||
| + 1024 2048 | ||||
| 
 | ||||
| ``` | ||||
| 
 | ||||
| Result 5: the same | ||||
| 
 | ||||
| Result 6 diff blocks: | ||||
| ```diff | ||||
| - asdfljsdfklasdfjklasdfjjkl | ||||
|   1024 2048 | ||||
| - asdfjksdfjkl | ||||
| 
 | ||||
| ``` | ||||
| 
 | ||||
| Result 7 diff blocks: | ||||
| ```diff | ||||
|   1024 2048 | ||||
| - asdfjksdfjkl | ||||
| - asdfljsdfklasdfjklasdfjjkl | ||||
| 
 | ||||
| ``` | ||||
| 
 | ||||
| Result 8 diff blocks: | ||||
| ```diff | ||||
|   1024 2048 | ||||
| - asdfjksdfjkl | ||||
| - asdfljsdfklasdfjklasdfjjkl | ||||
| 
 | ||||
| ``` | ||||
| 
 | ||||
| Result 9 diff blocks: | ||||
| ```diff | ||||
| + jklasdfklasdfjklf asdfhklasdfjl cvsdlfkdjsfklv | ||||
| + 1024 2048 | ||||
| + asdfjkl asdfkljdaslasdfjkl asdfjkl | ||||
| + 1024 2048 | ||||
| + psdfklj | ||||
| 
 | ||||
| ``` | ||||
| 
 | ||||
| Result 10 diff blocks: | ||||
| ```diff | ||||
| - 1024 2048 | ||||
| + jklasdfklasdfjklf asdfhklasdfjl cvsdlfkdjsfklv | ||||
| + 1024 2048 | ||||
| + asdfjkl asdfkljdaslasdfjkl asdfjkl | ||||
| + 1024 2048 | ||||
| + psdfklj | ||||
| 
 | ||||
| ``` | ||||
| 
 | ||||
| Result 11: the same | ||||
| 
 | ||||
| Result 12 diff blocks: | ||||
| ```diff | ||||
| - asdfljsdfklasdfjklasdfjjkl | ||||
| - 1024 2048 | ||||
| - asdfjksdfjkl | ||||
| + jklasdfklasdfjklf asdfhklasdfjl cvsdlfkdjsfklv | ||||
| + 1024 2048 | ||||
| + asdfjkl asdfkljdaslasdfjkl asdfjkl | ||||
| + 1024 2048 | ||||
| + psdfklj | ||||
| 
 | ||||
| ``` | ||||
| 
 | ||||
| Result 13 diff blocks: | ||||
| ```diff | ||||
| - 1024 2048 | ||||
| - asdfjksdfjkl | ||||
| - asdfljsdfklasdfjklasdfjjkl | ||||
| + jklasdfklasdfjklf asdfhklasdfjl cvsdlfkdjsfklv | ||||
| + 1024 2048 | ||||
| + asdfjkl asdfkljdaslasdfjkl asdfjkl | ||||
| + 1024 2048 | ||||
| + psdfklj | ||||
| 
 | ||||
| ``` | ||||
| 
 | ||||
| Result 14 diff blocks: | ||||
| ```diff | ||||
| - 1024 2048 | ||||
| - asdfjksdfjkl | ||||
| - asdfljsdfklasdfjklasdfjjkl | ||||
| + jklasdfklasdfjklf asdfhklasdfjl cvsdlfkdjsfklv | ||||
| + 1024 2048 | ||||
| + asdfjkl asdfkljdaslasdfjkl asdfjkl | ||||
| + 1024 2048 | ||||
| + psdfklj | ||||
| 
 | ||||
| ``` | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user