Unit tests fixed after #526 update.

This commit is contained in:
Matthias Koefferlein
2020-03-28 22:31:19 +01:00
parent 666cdeadc5
commit 2933e0b2e1
11 changed files with 90 additions and 73 deletions
+2 -2
View File
@@ -153,11 +153,11 @@ circuit RINGO ();
end;
END
assert_equal(l2n.probe_net(rmetal2, RBA::DPoint::new(0.0, 1.8)).inspect, "RINGO:FB")
assert_equal(l2n.probe_net(rmetal2, RBA::DPoint::new(0.0, 1.8)).to_s, "RINGO:FB")
assert_equal(l2n.probe_net(rmetal2, RBA::DPoint::new(-2.0, 1.8)).inspect, "nil")
n = l2n.probe_net(rmetal1, RBA::Point::new(2600, 1000))
assert_equal(n.inspect, "RINGO:$I20")
assert_equal(n.to_s, "RINGO:$I20")
assert_equal(l2n.shapes_of_net(n, rmetal1, true).to_s, "(1660,-420;1660,2420;2020,2420;2020,-420);(1840,820;1840,1180;3220,1180;3220,820);(1660,2420;1660,3180;2020,3180;2020,2420);(1660,-380;1660,380;2020,380;2020,-380)")