MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / CPU_TEST

Function CPU_TEST

Source/Tools/FalcorTest/Tests/Utils/VectorTests.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39{
40
41CPU_TEST(Vector_FloatFormatter)
42{
43 float2 test0(1.23456789f, 2.f);
44
45 EXPECT_EQ(fmt::format("{}", test0), "{1.2345679, 2}");
46 EXPECT_EQ(fmt::format("{:e}", test0), "{1.234568e+00, 2.000000e+00}");
47 EXPECT_EQ(fmt::format("{:g}", test0), "{1.23457, 2}");
48 EXPECT_EQ(fmt::format("{:.1}", test0), "{1, 2}");
49 EXPECT_EQ(fmt::format("{:.3}", test0), "{1.23, 2}");
50}
51
52CPU_TEST(Vector_IntFormatter)
53{

Callers 1

HashUtilsTests.cppFile · 0.70

Calls 4

test_jsonFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected