Skip to content

Commit

Permalink
Fix ruby tests
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Jan 11, 2022
1 parent d03cf94 commit 279d973
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/ruby/Vector2_TEST.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def test_length
end

def test_nan
nanVec = Ignition::Math::Vector2d.NaN
nanVec = Ignition::Math::Vector2d.new(Ignition::Math::Vector2d.NaN)
assert(!nanVec.IsFinite(),
"NaN vector shouldn't be finite")
assert(nanVec.X().nan?, "X should be NaN")
Expand All @@ -269,7 +269,7 @@ def test_nan
assert(Ignition::Math::Vector2d.Zero == nanVec,
"Corrected vector should equal zero")

nanVecF = Ignition::Math::Vector2f.NaN
nanVecF = Ignition::Math::Vector2f.new(Ignition::Math::Vector2f.NaN)
assert(!nanVecF.IsFinite(),
"NaN vector shouldn't be finite")
assert(nanVecF.X().nan?, "X should be NaN")
Expand Down
4 changes: 2 additions & 2 deletions src/ruby/Vector3_TEST.rb
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def test_finite
end

def test_nan
nanVec = Ignition::Math::Vector3d.NaN
nanVec = Ignition::Math::Vector3d.new(Ignition::Math::Vector3d.NaN)
assert(!nanVec.IsFinite(),
"NaN vector shouldn't be finite")
assert(nanVec.X().nan?, "X should be NaN")
Expand All @@ -453,7 +453,7 @@ def test_nan
assert(Ignition::Math::Vector3d.Zero == nanVec,
"Corrected vector should equal zero")

nanVecF = Ignition::Math::Vector3f.NaN
nanVecF = Ignition::Math::Vector3f.new(Ignition::Math::Vector3f.NaN)
assert(!nanVecF.IsFinite(),
"NaN vector shouldn't be finite")
assert(nanVecF.X().nan?, "X should be NaN")
Expand Down
4 changes: 2 additions & 2 deletions src/ruby/Vector4_TEST.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def test_finite
end

def test_nan
nanVec = Ignition::Math::Vector4d.NaN
nanVec = Ignition::Math::Vector4d.new(Ignition::Math::Vector4d.NaN)
assert(!nanVec.IsFinite(),
"NaN vector shouldn't be finite")
assert(nanVec.X().nan?, "X should be NaN")
Expand All @@ -309,7 +309,7 @@ def test_nan
assert(Ignition::Math::Vector4d.Zero == nanVec,
"Corrected vector should equal zero")

nanVecF = Ignition::Math::Vector4f.NaN
nanVecF = Ignition::Math::Vector4f.new(Ignition::Math::Vector4f.NaN)
assert(!nanVecF.IsFinite(),
"NaN vector shouldn't be finite")
assert(nanVecF.X().nan?, "X should be NaN")
Expand Down

0 comments on commit 279d973

Please sign in to comment.