Skip to content

Commit d6878a2

Browse files
committed
Add tests for data file error handling in text-ui-test
1 parent 36ffdfc commit d6878a2

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

text-ui-test/EXPECTED.TXT

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
-------------------------------------------------------------
2+
Discarded student data:
3+
A1111111B| John Smith
4+
A1111111B | John Smith
5+
A123B | Beth
6+
-------------------------------------------------------------
7+
Discarded component data:
8+
Attendance | 5 | 5
9+
Finals | 80 | 96
10+
Test 1 | 10 | -0.1
11+
Test 2 | -0.01 | 5
12+
Test 3 | 10000.01 | 5
13+
-------------------------------------------------------------
14+
Discarded grade data:
15+
Attendance | A1111111B | 5.01
16+
Attendance | A1111111B | 4
17+
Attendance | A1111111B | 4
18+
-------------------------------------------------------------
219
___________ __ .____ .__ __
320
\__ ___/_ ___/ |_ ___________| | |__| ____ | | __
421
| | | | \ __\/ _ \_ __ \ | | |/ \| |/ /
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
Attendance | 5 | 5
2+
Attendance | 5 | 5
3+
Finals | 80 | 96
4+
Test 1 | 10 | -0.1
5+
Test 2 | -0.01 | 5
6+
Test 3 | 10000.01 | 5

text-ui-test/data_init/gradelist.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
Attendance | A1111111B | 5.01
12
Attendance | A1111111B | 4
3+
Attendance | A1111111B | 4
4+
Attendance | A1111111B | 4
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
A1111111B| John Smith
12
A1111111B | John Smith
3+
A1111111B | John Smith
4+
A123B | Beth

0 commit comments

Comments
 (0)