Complex Number Exercise - Table Adresses

Hi there,

I keep getting failed test due to differing table addresses:

Expected objects to be equal.
Passed in:
(table: 0x59a89c80dfa0) {
[abs] = function: 0x59a89c80e020
[conj] = function: 0x59a89c80e090
[i] = 0
[inv] = function: 0x59a89c80dfe0
[r] = 5 }
Expected:
(table: 0x59a89c80dba0) {
[abs] = function: 0x59a89c80dc20
[conj] = function: 0x59a89c80dc90
[i] = 0
[inv] = function: 0x59a89c80dbe0
[r] = 5 }

How to go about fixing this so I can submit the test?

Greetings :)

How do you determine if 2 complex numbers are equal?

By comparing real and imaginary parts; and that’s why the above should give the correct result that 5+0i = 5+0i.

But it complains about the non-matching table addresses I guess?