File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 11## ACMDiffer
22```
3+ This is a core module used by ACMCoder OJ.
4+ It's used to compare the user's out and the test case.
5+ ```
6+
7+ ## How to make and test
8+ ```
9+ go test github.com/acmcode/differ/tool
310make
411./acmdiffer testdata/step.judger/user.out testdata/step.judger/data.out false false
512./acmdiffer testdata/step.judger/user.out testdata/step.judger/datav5.out false false
@@ -17,4 +24,18 @@ userOut: user's output file
1724dataOut: the test case file
1825diffIgnoreHead: ignore the first line when comparing the contents
1926strictMode: whether ignore the space and enter key or not when comparing the contents
20- ```
27+ ```
28+
29+ ## Special test cases
30+ ```
31+ TestDiffOutV2 is to ignore the space when comparing
32+ TestDiffOutV5 is to ignore the enter key when comparing
33+ Welcome some other special test cases.
34+ ```
35+
36+ ## TODO
37+ ```
38+ implement the strict mode
39+ ```
40+
41+ Welcome send issues or PRs.
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ func TestDiffOutV1(t *testing.T) {
3737 }
3838}
3939
40+ // TestDiffOutV2 is to ignore the space when comparing
4041func TestDiffOutV2 (t * testing.T ) {
4142 path , err := filepath .Abs ("." )
4243 if err != nil {
@@ -85,6 +86,7 @@ func TestDiffOutV4(t *testing.T) {
8586 }
8687}
8788
89+ // TestDiffOutV5 is to ignore the enter key when comparing
8890func TestDiffOutV5 (t * testing.T ) {
8991 path , err := filepath .Abs ("." )
9092 if err != nil {
You can’t perform that action at this time.
0 commit comments