Skip to content

Commit 5847b60

Browse files
author
Daniel Smith
authored
Merge pull request #66 from jellymann/ds-fix-rbsl-deprecation-warnings
fix: deprecation warning in rbsl loader test
2 parents 4e510c0 + 1ffc5ef commit 5847b60

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/renderers/shaders/test_rbsl_loader.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ class TestRBSLLoader < Minitest::Test
164164
def assert_uniform(expected, actual, name)
165165
assert_kind_of(Mittsu::Uniform, actual, "#{name} is not a Uniform")
166166
assert_equal(expected.type, actual.type, "#{name} has the wrong type")
167-
assert_equal(expected.value, actual.value, "#{name} has the wrong value")
167+
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
168172
end
169173

170174
def test_load_shader

0 commit comments

Comments
 (0)