Skip to content
Snippets Groups Projects
Commit fc6e58ad authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

Added a slightly different sphere volume test, which fails (should succeed).

parent e3a64795
No related branches found
No related tags found
No related merge requests found
...@@ -44,3 +44,7 @@ class TestValidation(TestCase): ...@@ -44,3 +44,7 @@ class TestValidation(TestCase):
def test_sphere_volume(self): def test_sphere_volume(self):
self.assertTrue(validate('int_(-r)^(r) pi * (r^2 - x^2) dx', self.assertTrue(validate('int_(-r)^(r) pi * (r^2 - x^2) dx',
'4 / 3 * pi * r ^ 3')) '4 / 3 * pi * r ^ 3'))
#def test_sphere_volume_alternative(self):
# self.assertTrue(validate('int_(-r)^(r) pi * (r^2 - x^2) dx',
# '4 * pi * r ^ 3 / 3'))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment