MethodicalAcceleratorDesign / MAD-NG

MAD Next-Generation official repository
GNU General Public License v3.0
32 stars 11 forks source link

Dev tpsa adding initial part of the tests #437

Closed 17IMMANUEL17 closed 5 months ago

17IMMANUEL17 commented 6 months ago

I am using the set method in the tests for the equality operator but for now the set method has not been tested. I will implement it today (now the testsuit is empty).

17IMMANUEL17 commented 6 months ago

Constructor tests to be discarded probably. This is a check for the testing style.

17IMMANUEL17 commented 6 months ago

Discovered a bug for the equality operator: as for the print function __eq checks the descriptor and not the tpsa. In this way mo = 4 d = gtpsad(nil,mo) t1 = tpsa(d) t2 = tpsa(d,3) t1==t2 -->true This is due to the fact that the two different tpsas are created using the same descriptor.

ldeniau commented 5 months ago

not yet in the expected form