Netlist normalization for unit tests also for RBA test.

This commit is contained in:
Matthias Koefferlein 2019-03-23 09:29:37 +01:00
parent 5fe67e802f
commit 0003c38918
1 changed files with 7 additions and 1 deletions

View File

@ -116,7 +116,13 @@ class DBLayoutToNetlist_TestClass < TestBase
tmp = File::join($ut_testtmp, "tmp2.txt")
nl.write(tmp, writer, "A comment")
assert_equal(File.open(tmp, "r").read, File.open(input, "r").read)
a = File.open(tmp, "r").read
a = a.gsub(/e-00/, "e-0").gsub(/e-0/, "e-")
b = File.open(input, "r").read
b = a.gsub(/e-00/, "e-0").gsub(/e-0/, "e-")
assert_equal(a, b)
end