Skip to content

Commit

Permalink
Merge pull request #387 from jalberse/master
Browse files Browse the repository at this point in the history
Constrain max value test further for unbounded
  • Loading branch information
mmp committed Oct 18, 2023
2 parents 0dc9e4f + 3c49322 commit 6d9d64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pbrt/util/spectrum_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ TEST(Spectrum, MaxValue) {
EXPECT_LE(sr(lambda), m);

RGBUnboundedSpectrum su(*RGBColorSpace::sRGB, 10 * rgb);
m = su.MaxValue() * 1.00001f * 10.f;
m = su.MaxValue() * 1.00001f;
for (Float lambda = 360; lambda < 830; lambda += .92)
EXPECT_LE(su(lambda), m);

Expand Down

0 comments on commit 6d9d64e

Please sign in to comment.