unit_tests_ambar
unit_tests
====================================================================== FAIL: test_abs (test.test_vector.TestVector.test_abs) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/timdiller/Documents/Diller_Digital_SWNG/DD-SWNG-20251020-V/test/test_vector.py", line 18, in test_abs self.assertEqual(v1.abs, 0) AssertionError: <bound method Vector.abs of Vector(x=0, y=0, z=0)> != 0 ----------------------------------------------------------------------
You should invoke the abs method.
abs
@@ -13,0 +15,4 @@
v1 = Vector(0, 0, 0)
v2 = Vector(1, 2, 2)
v3 = Vector(1, -2, 2)
self.assertEqual(v1.abs, 0)
self.assertEqual(v1.abs(), 0)
Made the correction
.... ---------------------------------------------------------------------- Ran 4 tests in 0.001s OK
Looks good. thanks for the corrections.
No dependencies set.
The note is not visible to the blocked user.
You should invoke the
absmethod.@@ -13,0 +15,4 @@v1 = Vector(0, 0, 0)v2 = Vector(1, 2, 2)v3 = Vector(1, -2, 2)self.assertEqual(v1.abs, 0)Made the correction
Looks good. thanks for the corrections.