feat: update diff
This commit is contained in:
parent
d8d66fb5b4
commit
af990327ab
20
conf.toml
20
conf.toml
|
@ -62,20 +62,30 @@ src = "./cases/5.in"
|
||||||
[stages.parser]
|
[stages.parser]
|
||||||
name = "diff"
|
name = "diff"
|
||||||
[[stages.parser.with.cases]]
|
[[stages.parser.with.cases]]
|
||||||
|
[[stages.parser.with.cases.outputs]]
|
||||||
score = 100
|
score = 100
|
||||||
stdoutPath = "./cases/1.out"
|
fileName = "stdout"
|
||||||
|
answerPath = "./cases/1.out"
|
||||||
[[stages.parser.with.cases]]
|
[[stages.parser.with.cases]]
|
||||||
|
[[stages.parser.with.cases.outputs]]
|
||||||
score = 100
|
score = 100
|
||||||
stdoutPath = "./cases/2.out"
|
fileName = "stdout"
|
||||||
|
answerPath = "./cases/2.out"
|
||||||
[[stages.parser.with.cases]]
|
[[stages.parser.with.cases]]
|
||||||
|
[[stages.parser.with.cases.outputs]]
|
||||||
score = 100
|
score = 100
|
||||||
stdoutPath = "./cases/3.out"
|
fileName = "stdout"
|
||||||
|
answerPath = "./cases/3.out"
|
||||||
ignoreWhitespace=true
|
ignoreWhitespace=true
|
||||||
[[stages.parser.with.cases]]
|
[[stages.parser.with.cases]]
|
||||||
|
[[stages.parser.with.cases.outputs]]
|
||||||
score = 100
|
score = 100
|
||||||
stdoutPath = "./cases/4.out"
|
fileName = "stdout"
|
||||||
|
answerPath = "./cases/4.out"
|
||||||
ignoreWhitespace=true
|
ignoreWhitespace=true
|
||||||
[[stages.parser.with.cases]]
|
[[stages.parser.with.cases]]
|
||||||
|
[[stages.parser.with.cases.outputs]]
|
||||||
score = 100
|
score = 100
|
||||||
stdoutPath = "./cases/5.out"
|
fileName = "stdout"
|
||||||
|
answerPath = "./cases/5.out"
|
||||||
ignoreWhitespace=false
|
ignoreWhitespace=false
|
||||||
|
|
1
expected.json
Normal file
1
expected.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
[{"name":"compile","results":[{"score":0,"comment":""}],"force_quit":false},{"name":"run","results":[{"score":100,"comment":""},{"score":0,"comment":"difference found in stdout:\n```diff\n 3072\n- 234890234\n- 342342\n- 1234234\n- 300072\n- 43234\n- 1243\n \n```\n"},{"score":100,"comment":""},{"score":100,"comment":""},{"score":0,"comment":"difference found in stdout:\n```diff\n- 37200\n+ 3072\n \n```\n"}],"force_quit":false}]
|
|
@ -1 +0,0 @@
|
||||||
[{"name":"compile","results":[{"score":0,"comment":""}],"force_quit":false},{"name":"run","results":[{"score":100,"comment":"executor status: run time: \\d+ ns, memory: \\d+ bytes\n"},{"score":0,"comment":"executor status: run time: \\d+ ns, memory: \\d+ bytes\ndifference found:\n```diff\n 3072\n\\- 234890234\n\\- 342342\n\\- 1234234\n\\- 300072\n\\- 43234\n\\- 1243\n \n```"},{"score":100,"comment":"executor status: run time: \\d+ ns, memory: \\d+ bytes\n"},{"score":100,"comment":"executor status: run time: \\d+ ns, memory: \\d+ bytes\n"},{"score":0,"comment":"executor status: run time: \\d+ ns, memory: \\d+ bytes\ndifference found:\n```diff\n\\- 37200\n\\+ 3072\n \n```"}],"force_quit":false}]
|
|
Loading…
Reference in New Issue
Block a user