Spice reader test compatible with Windows (three-digit exponential)

This commit is contained in:
Matthias Koefferlein 2019-08-21 23:03:24 +02:00
parent 45cdefcf9a
commit b0aa9b6540
1 changed files with 5 additions and 1 deletions

View File

@ -343,7 +343,11 @@ TEST(9_DeviceMultipliers)
tl::InputStream is (path);
reader.read (is, nl);
EXPECT_EQ (nl.to_string (),
std::string nl_string = nl.to_string ();
// normalization of exponential representation:
nl_string = tl::replaced (nl_string, "e-009", "e-09");
EXPECT_EQ (nl_string,
"circuit .TOP ();\n"
" device RES $1 (A='1',B='2') (R=850,L=0,W=0,A=0,P=0);\n"
" device RES $2 (A='3',B='4') (R=1700,L=0,W=0,A=0,P=0);\n"