Skip to content

Commit 35e45a4

Browse files
committed
builds site
1 parent 926367b commit 35e45a4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

06-edges.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,20 @@ <h2 id="corner-cases">Corner Cases</h2>
129129
exp = (<span class="fl">2.0</span> / np.pi)
130130
obs = sinc2d(np.pi / <span class="fl">2.0</span>, <span class="fl">0.0</span>)
131131
assert_equal(exp, obs)</code></pre>
132-
<blockquote>
133-
<h2>Write a corner case</h2>
132+
<section class="challenge panel panel-success">
133+
<div class="panel-heading">
134+
<h2><span class="glyphicon glyphicon-pencil"></span>Challenge: Write a corner case</h2>
135+
</div>
136+
<div class="panel-body">
134137
<p>The sinc2d example will also need a test for the corner case, where both x and y are 0.0.</p>
135138
<ol style="list-style-type: decimal">
136139
<li>Insert the sinc2d function code (above) into a file called mod.py.</li>
137140
<li>Add the edge and internal case tests (above) to a test_sinc2d.py file.</li>
138141
<li>Invent and implement a corner case test in that file.</li>
139142
<li>Run all of the tests using <code>nosetests</code> on the command line.</li>
140143
</ol>
141-
</blockquote>
144+
</div>
145+
</section>
142146
<p>Corner cases can be even trickier to find and debug than edge cases because of their increased complexity. This complexity, however, makes them even more important to explicitly test.</p>
143147
<p>Whether internal, edge, or corner cases, we have started to build up a classification system for the tests themselves. In the following sections, we will build this system up even more based on the role that the tests have in the software architecture.</p>
144148
<blockquote>

06-edges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def test_edge_y():
149149
assert_equal(exp, obs)
150150
~~~
151151

152-
> ## Write a corner case
152+
> ## Challenge: Write a corner case {.challenge}
153153
> The sinc2d example will also need a test for the corner case, where both x
154154
> and y are 0.0.
155155
>

0 commit comments

Comments
 (0)