We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e510c0 + 1ffc5ef commit 5847b60Copy full SHA for 5847b60
test/renderers/shaders/test_rbsl_loader.rb
@@ -164,7 +164,11 @@ class TestRBSLLoader < Minitest::Test
164
def assert_uniform(expected, actual, name)
165
assert_kind_of(Mittsu::Uniform, actual, "#{name} is not a Uniform")
166
assert_equal(expected.type, actual.type, "#{name} has the wrong type")
167
- assert_equal(expected.value, actual.value, "#{name} has the wrong value")
+ if expected.value.nil?
168
+ assert_nil(actual.value, "#{name} has the wrong value")
169
+ else
170
+ assert_equal(expected.value, actual.value, "#{name} has the wrong value")
171
+ end
172
end
173
174
def test_load_shader
0 commit comments