Test data normalization for netlist writer test (Ruby)

This commit is contained in:
Matthias Koefferlein 2019-04-17 22:05:51 +02:00
parent 567769f13d
commit 66eabe9aec
1 changed files with 7 additions and 1 deletions

View File

@ -102,7 +102,13 @@ class DBLayoutToNetlist_TestClass < TestBase
tmp = File::join($ut_testtmp, "tmp1.txt")
nl.write(tmp, writer)
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)
# verify against the input with delegate