This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatorgrade.yml
176 lines (176 loc) · 4.96 KB
/
gatorgrade.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
- hello_luna/main.c:
- description: hello_luna/main.c contains no TODOs
category: TODOs
check: MatchFileFragment
options:
fragment: 'TODO'
count: 0
exact: true
- adder/main.c:
- description: adder/main.c contains no TODOs
category: TODOs
check: MatchFileFragment
options:
fragment: 'TODO'
count: 0
exact: true
- docs/report.md:
- description: docs/report.md answers all questions
category: TODOs
check: MatchFileFragment
options:
fragment: 'TODO'
count: 0
exact: true
- hello_luna/main.c:
- description: hello_luna/main.c contains a printf statement which prints Hello, Luna!
category: Basic C
check: MatchFileRegex
options:
regex: 'printf\("Hello,(\s)?Luna!"\);'
count: 1
exact: true
- hello_luna/main.c:
- description: hello_luna/main.c contains a return statement of the correct type and value
category: Basic C
check: MatchFileRegex
options:
regex: 'return 0;'
count: 1
exact: true
- hello_luna/main.c:
- description: hello_luna/main.c main function has correct type
category: Basic C
check: MatchFileRegex
options:
regex: 'int(\s)+main'
count: 1
exact: true
- hello_luna/main.c:
- description: hello_luna/main.c main parameter is void type
category: Basic C
check: MatchFileRegex
options:
regex: '\(void\)'
count: 1
exact: true
- hello_luna/main.c:
- description: hello_luna/main.c main function is enclosed in braces
category: Basic C
check: MatchFileRegex
options:
regex: 'int(\s)+main(\s)?\(void\)(\s)?\{(.*)\}'
count: 1
exact: true
- adder/main.c:
- description: adder/main.c initializes a sum variable as an integer and appropriate starting value
category: Basic C
check: MatchFileRegex
options:
regex: 'int(\s)+sum(\s)?=(\s)?2;'
count: 0
exact: true
- adder/main.c:
- description: adder/main.c includes a correctly-initialized array called numbers containing 10 values
category: Basic C
check: MatchFileRegex
options:
regex: 'int\snumbers\[10\](\s)?=(\s)?{[0-9\s,]+};'
count: 1
exact: true
- adder/main.c:
- description: adder/main.c uses sizeof to calculate actual array size
category: Basic C
check: MatchFileRegex
options:
regex: 'sizeof\([a-z_]+\)'
count: 2
exact: true
- adder/main.c:
- description: adder/main.c uses a for loop to iterate through numbers array
category: Basic C
check: MatchFileRegex
options:
regex: 'for\(int(\s)+[a-z_]+(\s)+=(\s)+0;(\s)+[a-z_](\s)+<(\s)+[a-z_0-9]+;(\s)+[i+]+\)(\s){0,10}\{(.*)\}'
count: 1
exact: true
- adder/main.c:
- description: adder/main.c accesses the numbers array by index
category: Basic C
check: MatchFileRegex
options:
regex: 'numbers\[[a-z_]\]'
count: 1
exact: false
- adder/main.c:
- description: adder/main.c uses the add function to add numbers
category: Basic C
check: MatchFileRegex
options:
regex: 'sum(\s)+=(\s)+add\([a-z_\[\]]+,(\s)+[a-z_\[\]]+\);'
count: 1
exact: false
- disassembly/main.c:
- description: disassembly/main.c has no TODOs
category: Basic C
check: MatchFileFragment
options:
fragment: 'TODO'
count: 0
exact: true
- disassembly/main.c:
- description: disassembly/main.c initializes an arbitrarily-named variable to 10
category: Basic C
check: MatchFileRegex
options:
regex: 'int(\s)[a-z_0-9]+(\s)?=(\s)?10;'
count: 1
exact: true
- disassembly/main.c:
- description: disassembly/main.c implements the correct iterative structure
category: Basic C
check: MatchFileRegex
options:
regex: 'while(\s)?\((.*)\)(\s)?\{(.*)\}'
count: 1
exact: true
- disassembly/main.c:
- description: disassembly/main.c prints the appropriate amount of times
category: Basic C
check: MatchFileFragment
options:
fragment: 'printf('
count: 2
exact: false
- disassembly/main.c:
- description: disassembly/main.c includes the function identified in the disassembled version
category: Basic C
check: MatchFileRegex
options:
regex: 'int(\s)ndown\(int(\s)[a-z_0-9]+,(\s)?int(\s)[a-z_0-9]+\)(\s)?\{'
count: 1
exact: true
- disassembly/main.c:
- description: disassembly/main.c calls the function identified in the disassembled version
category: Basic C
check: MatchFileRegex
options:
regex: 'ndown\([a-z0-9_]+(\s)?,(\s)?[a-z0-9_]+\);'
count: 1
exact: true
- disassembly/main.c:
- description: disassembly/main.c additional function returns a value
category: Basic C
check: MatchFileRegex
options:
regex: 'return(\s)[a-z0-9_]+;'
count: 1
exact: true
- disassembly/main.c:
- description: disassembly/main.c main function returns 0
category: Basic C
check: MatchFileRegex
options:
regex: 'return 0;'
count: 1
exact: true