Skip to content

Commit fa6239e

Browse files
authored
Merge pull request #234 from campbelle2/issue-#233
removed visible instructor text
2 parents 0f3a6a8 + f6e3fab commit fa6239e

1 file changed

Lines changed: 9 additions & 31 deletions

File tree

pretext/UnitTesting/WritingUnitTests.ptx

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -162,52 +162,30 @@ assert grade(92) == 'A'
162162
assert grade(85) == 'B'
163163
assert grade(69) == 'F'
164164
</input></program>
165-
.. reveal:: ac_grade_unittest_aux_reveal
166-
:instructoronly:
167-
.. actex:: ac_grade_unittest_aux
165+
166+
<commentary>
167+
ac_grade_unittest_aux_reveal
168+
instructoronly
169+
actex:: ac_grade_unittest_aux
168170
testA = False
169171
testB = False
170172
testF = False
171173
illegal = False
172174
def grade(score):
173175
global illegal, testA, testB, testF
174-
if score &gt; 100 or score &lt; 0:
176+
if score > 100 or score < 0:
175177
illegal = True
176178
return ''
177-
elif score &gt;= 90:
179+
elif score >= 90:
178180
testA = True
179181
return 'A'
180-
elif score &gt;= 80:
182+
elif score >= 80:
181183
testB = True
182184
return 'B'
183185
else:
184186
testF = True
185187
return 'F'
186-
187-
<p>The following asserts are just some of several that could have been used.</p>
188-
189-
190-
<!--.. reveal:: ac_grade_unittest_aux_reveal-->
191-
<!--:instructoronly:-->
192-
<!--.. actex:: ac_grade_unittest_aux-->
193-
<!--testA = False-->
194-
<!--testB = False-->
195-
<!--testF = False-->
196-
<!--illegal = False-->
197-
<!--def grade(score):-->
198-
<!--global illegal, testA, testB, testF-->
199-
<!--if score > 100 or score < 0:-->
200-
<!--illegal = True-->
201-
<!--return ''-->
202-
<!--elif score >= 90:-->
203-
<!--testA = True-->
204-
<!--return 'A'-->
205-
<!--elif score >= 80:-->
206-
<!--testB = True-->
207-
<!--return 'B'-->
208-
<!--else:-->
209-
<!--testF = True-->
210-
<!--return 'F'-->
188+
</commentary>
211189
</solution>
212190
</exercise>
213191
</subsection>

0 commit comments

Comments
 (0)