Skip to content

Commit

Permalink
Improve test/test_mod.c
Browse files Browse the repository at this point in the history
Stop test/test_mod from writing trailing whitespace, to make
commiting the outputs easier for developers using pre-commit
checks for whitespace issues.

Remove array `out`, as it's contents were never used, or even set
due to conditionals on argc.  This also allows the output to be
written directly to stdout instead of going through an intermediate
buffer.
  • Loading branch information
daviesrob authored and jkbonfield committed Jul 19, 2023
1 parent 64ae397 commit b9e33b7
Show file tree
Hide file tree
Showing 8 changed files with 633 additions and 644 deletions.
86 changes: 43 additions & 43 deletions test/base_mods/MM-chebi.out
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
0 A
1 G
2 C
3 T
4 C
5 T
6 C C+m102
7 C
8 A
9 G
10 A
11 G
12 T
13 C
14 G
15 N N+n212
16 A
17 C C+m128
18 G
19 C C+(76792)161
20 C C+m153
21 A
22 T
23 Y
24 C
25 G
26 C
27 G
28 C
29 G
30 C
31 C C+m179
32 A
33 C
34 C C+m204 C+(76792)33
35 A
0 A
1 G
2 C
3 T
4 C
5 T
6 C C+m102
7 C
8 A
9 G
10 A
11 G
12 T
13 C
14 G
15 N N+n212
16 A
17 C C+m128
18 G
19 C C+(76792)161
20 C C+m153
21 A
22 T
23 Y
24 C
25 G
26 C
27 G
28 C
29 G
30 C
31 C C+m179
32 A
33 C
34 C C+m204 C+(76792)33
35 A
---
Present: m. #-76792. n.
6 C C+m102
15 N N+n212
17 C C+m128
19 C C+(76792)161
20 C C+m153
31 C C+m179
34 C C+m204 C+(76792)33
6 C C+m102
15 N N+n212
17 C C+m128
19 C C+(76792)161
20 C C+m153
31 C C+m179
34 C C+m204 C+(76792)33

===

86 changes: 43 additions & 43 deletions test/base_mods/MM-double.out
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
0 A
1 G G-m115
2 G
3 A
4 T
5 C
6 T
7 C C+m128
8 T
9 A
10 G
11 C
12 G G-m141
13 G G-m166 G+o102
14 A
15 T
16 C
17 G
18 G
19 C
20 G
21 G
22 G G-m192
23 G
24 G
25 A
26 T
27 A
28 T
29 G
30 C C+m153
31 C C+m179
32 A
33 T
34 A
35 T
0 A
1 G G-m115
2 G
3 A
4 T
5 C
6 T
7 C C+m128
8 T
9 A
10 G
11 C
12 G G-m141
13 G G-m166 G+o102
14 A
15 T
16 C
17 G
18 G
19 C
20 G
21 G
22 G G-m192
23 G
24 G
25 A
26 T
27 A
28 T
29 G
30 C C+m153
31 C C+m179
32 A
33 T
34 A
35 T
---
Present: m. m. o.
1 G G-m115
7 C C+m128
12 G G-m141
13 G G-m166 G+o102
22 G G-m192
30 C C+m153
31 C C+m179
1 G G-m115
7 C C+m128
12 G G-m141
13 G G-m166 G+o102
22 G G-m192
30 C C+m153
31 C C+m179

===

192 changes: 96 additions & 96 deletions test/base_mods/MM-explicit-f.out
Original file line number Diff line number Diff line change
@@ -1,111 +1,111 @@
0 A
1 T
2 C
3 A
4 T
5 C
6 A
7 T
8 T
9 C C+m200 C+h10
10 C C+m50 C+h170
11 T
12 A
13 C
14 C C+m160 C+h20
15 G
16 C
17 T
18 A
19 T
20 A
21 G
22 C
23 C
24 T
0 A
1 T
2 C
3 A
4 T
5 C
6 A
7 T
8 T
9 C C+m200 C+h10
10 C C+m50 C+h170
11 T
12 A
13 C
14 C C+m160 C+h20
15 G
16 C
17 T
18 A
19 T
20 A
21 G
22 C
23 C
24 T
---
Present: m. h.
9 C C+m200 C+h10
10 C C+m50 C+h170
14 C C+m160 C+h20
9 C C+m200 C+h10
10 C C+m50 C+h170
14 C C+m160 C+h20

===

0 A
1 T
2 C C+m# C+h#
3 A
4 T
5 C C+m# C+h#
6 A
7 T
8 T
9 C C+m200 C+h10
10 C C+m50 C+h170
11 T
12 A
13 C C+m10 C+h5
14 C C+m160 C+h20
15 G
16 C C+m10 C+h5
17 T
18 A
19 T
20 A
21 G
22 C C+m# C+h#
23 C C+m# C+h#
24 T
0 A
1 T
2 C C+m# C+h#
3 A
4 T
5 C C+m# C+h#
6 A
7 T
8 T
9 C C+m200 C+h10
10 C C+m50 C+h170
11 T
12 A
13 C C+m10 C+h5
14 C C+m160 C+h20
15 G
16 C C+m10 C+h5
17 T
18 A
19 T
20 A
21 G
22 C C+m# C+h#
23 C C+m# C+h#
24 T
---
Present: m? h?
2 C C+m# C+h#
5 C C+m# C+h#
9 C C+m200 C+h10
10 C C+m50 C+h170
13 C C+m10 C+h5
14 C C+m160 C+h20
16 C C+m10 C+h5
22 C C+m# C+h#
23 C C+m# C+h#
2 C C+m# C+h#
5 C C+m# C+h#
9 C C+m200 C+h10
10 C C+m50 C+h170
13 C C+m10 C+h5
14 C C+m160 C+h20
16 C C+m10 C+h5
22 C C+m# C+h#
23 C C+m# C+h#

===

0 A
1 T
2 C C+h#
3 A
4 T
5 C C+h#
6 A
7 T
8 T
9 C C+m200 C+h10
10 C C+h170
11 T
12 A
13 C C+h5
14 C C+m160 C+h20
15 G
16 C C+h5
17 T
18 A
19 T
20 A
21 G
22 C C+h#
23 C C+h#
24 T
0 A
1 T
2 C C+h#
3 A
4 T
5 C C+h#
6 A
7 T
8 T
9 C C+m200 C+h10
10 C C+h170
11 T
12 A
13 C C+h5
14 C C+m160 C+h20
15 G
16 C C+h5
17 T
18 A
19 T
20 A
21 G
22 C C+h#
23 C C+h#
24 T
---
Present: m. h?
2 C C+h#
5 C C+h#
9 C C+m200 C+h10
10 C C+h170
13 C C+h5
14 C C+m160 C+h20
16 C C+h5
22 C C+h#
23 C C+h#
2 C C+h#
5 C C+h#
9 C C+m200 C+h10
10 C C+h170
13 C C+h5
14 C C+m160 C+h20
16 C C+h5
22 C C+h#
23 C C+h#

===

Loading

0 comments on commit b9e33b7

Please sign in to comment.