Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit e5585ac

Browse files
committed
fix unittest example
1 parent 8629d5d commit e5585ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

runestone/common/project_template/_sources/overview.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ Its nice to be able to have students solve a particular problem by writing some
369369

370370
def testOne(self):
371371
self.assertEqual(add(2,2),4,"A feedback string when the test fails")
372-
self.assertAlmostEqual(add(2.0,3.0),5.0,"Your function failed on inputs of 2.0 and 3.0")
372+
self.assertAlmostEqual(add(2.0,3.0),5.0,feedback="Your function failed on inputs of 2.0 and 3.0")
373373

374374
myTests().main()
375375

@@ -389,7 +389,7 @@ Before you go on, fix the add function in the activecode box. The full compleme
389389

390390
def testOne(self):
391391
self.assertEqual(add(2,2),4,"A feedback string when the test fails")
392-
self.assertAlmostEqual(add(2.0,3.0),5.0,"Your function failed on inputs of 2.0 and 3.0")
392+
self.assertAlmostEqual(add(2.0,3.0),5.0,feedback="Your function failed on inputs of 2.0 and 3.0")
393393

394394
myTests().main()
395395

@@ -410,7 +410,7 @@ Fix the following code so that it always correctly adds two numbers.
410410

411411
def testOne(self):
412412
self.assertEqual(add(2,2),4,"A feedback string when the test fails")
413-
self.assertAlmostEqual(add(2.0,3.0),5.0,"Your function failed on inputs of 2.0 and 3.0")
413+
self.assertAlmostEqual(add(2.0,3.0),5.0,feedback="Your function failed on inputs of 2.0 and 3.0")
414414

415415
myTests().main()
416416

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
setup(
77
name='runestone',
88
description='Sphinx extensions for writing interactive documents.',
9-
version='2.0a6',
9+
version='2.0.1',
1010
author = 'Brad Miller',
1111
author_email = '[email protected]',
1212
packages= find_packages(),

0 commit comments

Comments
 (0)