unit_tests_ambar #10

Merged
TimDiller merged 4 commits from unit_tests_ambar into unit_tests 2025-10-24 15:42:57 +00:00
Member
No description provided.
ambar added 6 commits 2025-10-24 15:20:18 +00:00
ambar changed target branch from main to unit_tests 2025-10-24 15:22:46 +00:00
Owner
======================================================================
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.

``` ====================================================================== 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.
TimDiller reviewed 2025-10-24 15:28:17 +00:00
@@ -13,0 +15,4 @@
v1 = Vector(0, 0, 0)
v2 = Vector(1, 2, 2)
v3 = Vector(1, -2, 2)
self.assertEqual(v1.abs, 0)
Owner
        self.assertEqual(v1.abs(), 0)
``` self.assertEqual(v1.abs(), 0) ```
Author
Member

Made the correction

....
----------------------------------------------------------------------
Ran 4 tests in 0.001s

OK
Made the correction ``` .... ---------------------------------------------------------------------- Ran 4 tests in 0.001s OK ```
ambar added 1 commit 2025-10-24 15:38:35 +00:00
TimDiller approved these changes 2025-10-24 15:39:22 +00:00
TimDiller left a comment
Owner

Looks good. thanks for the corrections.

Looks good. thanks for the corrections.
TimDiller added 1 commit 2025-10-24 15:42:34 +00:00
TimDiller merged commit 913169fe68 into unit_tests 2025-10-24 15:42:57 +00:00
TimDiller deleted branch unit_tests_ambar 2025-10-24 15:42:57 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DillerDigitalStudents/DD-SWNG-20251020-V#10
No description provided.