Skip to content

Commit 8f46817

Browse files
committed
removed visible instructor text
1 parent 41bd1ea commit 8f46817

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

pretext/UnitTesting/WritingUnitTests.ptx

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -162,30 +162,7 @@ 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
168-
testA = False
169-
testB = False
170-
testF = False
171-
illegal = False
172-
def grade(score):
173-
global illegal, testA, testB, testF
174-
if score &gt; 100 or score &lt; 0:
175-
illegal = True
176-
return ''
177-
elif score &gt;= 90:
178-
testA = True
179-
return 'A'
180-
elif score &gt;= 80:
181-
testB = True
182-
return 'B'
183-
else:
184-
testF = True
185-
return 'F'
186-
187-
<p>The following asserts are just some of several that could have been used.</p>
188-
165+
189166

190167
<!--.. reveal:: ac_grade_unittest_aux_reveal-->
191168
<!--:instructoronly:-->

0 commit comments

Comments
 (0)