Sfoglia il codice sorgente

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

Taddeus Kroes 13 anni fa
parent
commit
fc6e58ad11
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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'))