mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-05 00:53:00 +02:00
Spice reader test compatible with Windows (three-digit exponential)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user