Ver Fonte

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

Taddeus Kroes há 13 anos atrás
pai
commit
fc6e58ad11
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      tests/test_validation.py

+ 4 - 0
tests/test_validation.py

@@ -44,3 +44,7 @@ class TestValidation(TestCase):
     def test_sphere_volume(self):
         self.assertTrue(validate('int_(-r)^(r) pi * (r^2 - x^2) dx',
                                  '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'))