Cycles: add unit tests for supported constant folding rules.
authorAlexander Gavrilov <angavrilov@gmail.com>
Mon, 1 Aug 2016 15:53:20 +0000 (18:53 +0300)
committerAlexander Gavrilov <angavrilov@gmail.com>
Mon, 1 Aug 2016 15:53:20 +0000 (18:53 +0300)
commit138362a3c928af5a23a6069fff541341ece7b025
tree5c1c81514bc48c84afc7639093e60f968eb346a4
parent473fc0cf0e469e61568b39faf770990a2a3d6c22
Cycles: add unit tests for supported constant folding rules.

Code coverage of different combinations of secondary conditions
is obviously not complete because there are so many of them, but
all main rules should be there.

The reason for CORRECT vs INVALID is that both words have the same
number of characters so calls line up, but look quite different.

Reviewers: #cycles, sergey

Reviewed By: #cycles, sergey

Subscribers: dingto, sergey, brecht

Differential Revision: https://developer.blender.org/D2130
intern/cycles/render/constant_fold.cpp
intern/cycles/test/CMakeLists.txt
intern/cycles/test/render_graph_finalize_test.cpp