MCPcopy Create free account
hub / github.com/Cantera/cantera / TEST

Function TEST

test/general/string_processing.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7{
8
9TEST(parseCompString, space_separated)
10{
11 Composition c = parseCompString("foo:1.0 bar:2 baz:1e-4");
12 ASSERT_EQ((size_t) 3, c.size());
13 ASSERT_DOUBLE_EQ(1.0, c["foo"]);
14 ASSERT_DOUBLE_EQ(2.0, c["bar"]);
15 ASSERT_DOUBLE_EQ(1e-4, c["baz"]);
16}
17
18TEST(parseCompString, comma_separated)
19{

Callers

nothing calls this directly

Calls 3

parseCompStringFunction · 0.85
sizeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected