MCPcopy Create free account
hub / github.com/LuminanceHDR/LuminanceHDR / TEST

Function TEST

test/TestConvertSample.cpp:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace pfs::colorspace;
6
7TEST(TestConvertSample, TestConvertSample_Test1)
8{
9 uint8_t s = ConvertSample<uint8_t, float>()(1.f);
10 ASSERT_EQ(s, 255u);
11
12 s = ConvertSample<uint8_t, float>()(0.f);
13 ASSERT_EQ(s, 0u);
14
15 s = ConvertSample<uint8_t, float>()(0.5f);
16 ASSERT_EQ(s, 128u);
17}
18
19TEST(TestConvertSample, TestConvertSample_Test2)
20{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected