Skip to content
Snippets Groups Projects
Commit 9bb3eb44 authored by Lars Kanis's avatar Lars Kanis
Browse files

Remove various warnings about unused variables in the test suite.

parent 2cd652ec
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ class TC_FXApp < Test::Unit::TestCase
def test_exception_for_second_app
assert_raise RuntimeError do
app2 = FXApp.new
FXApp.new
end
end
end
......@@ -46,7 +46,7 @@ class TC_FXApp2 < Fox::TestCase
end
def test_addInput_on_pipe
check_events *IO.pipe
check_events(*IO.pipe)
end
def test_addInput_on_socket_accept
......
......@@ -15,7 +15,7 @@ class TC_FXFont < Test::Unit::TestCase
def testConstructFromFontDescription
fontdesc = @app.normalFont.fontDesc
font = FXFont.new(@app, fontdesc)
FXFont.new(@app, fontdesc)
end
def testConstructFromParameters
......@@ -42,7 +42,7 @@ class TC_FXFont < Test::Unit::TestCase
end
def testConstructFromFontString
font = FXFont.new(@app, "")
FXFont.new(@app, "")
end
def testGetTextWidthAndHeight
......
......@@ -119,7 +119,7 @@ class TC_FXImage < Fox::TestCase
def test_create_with_non_owned_data
GC.stress = true
img = image_with_non_owned_data
" " * 10000
_ = " " * 10000
GC.stress = false
assert_equal("rgbaRGBA", img.pixel_string)
assert_equal(0, img.options)
......@@ -134,7 +134,7 @@ class TC_FXImage < Fox::TestCase
img = FXImage.new(app, nil, 0, 1, 2)
GC.stress = true
set_non_owned_data(img)
" " * 10000
_ = " " * 10000
GC.stress = false
assert_equal("rgbaRGBA", img.pixel_string)
assert_equal(0, img.options)
......
......@@ -81,9 +81,9 @@ class TC_FXMat4f < Test::Unit::TestCase
def test_mul_by_scalar
p = FXMat4f.new.eye
q = FXMat4f.new(4.0, 0.0, 0.0, 0.0,
0.0, 4.0, 0.0, 0.0,
0.0, 0.0, 4.0, 0.0,
0.0, 0.0, 0.0, 4.0)
0.0, 4.0, 0.0, 0.0,
0.0, 0.0, 4.0, 0.0,
0.0, 0.0, 0.0, 4.0)
r = p*4.0
assert_instance_of(FXMat4f, r)
# assert_equal(q, r)
......
......@@ -9,23 +9,23 @@ class TC_FXQuatf < Test::Unit::TestCase
end
def test_default_constructor
q = FXQuatf.new
FXQuatf.new
end
def test_construct_from_axis_and_angle
axis = FXVec3f.new(1.0, 1.0, 1.0)
q = FXQuatf.new(axis)
q = FXQuatf.new(axis, 0.0)
FXQuatf.new(axis)
FXQuatf.new(axis, 0.0)
end
def test_construct_from_components
x, y, z, w = 1.0, 1.0, 1.0, 1.0
q = FXQuatf.new(x, y, z, w)
FXQuatf.new(x, y, z, w)
end
def test_construct_from_roll_pitch_yaw
roll, pitch, yaw = 45.0, 45.0, 45.0
q = FXQuatf.new(roll, pitch, yaw)
FXQuatf.new(roll, pitch, yaw)
end
def test_adjust!
......
......@@ -17,9 +17,9 @@ class TC_FXRegion < Test::Unit::TestCase
FXPoint.new(100, 100),
FXPoint.new(0, 0)
]
r1 = FXRegion.new(points, true)
r2 = FXRegion.new(points, false)
r3 = FXRegion.new(points)
FXRegion.new(points, true)
FXRegion.new(points, false)
FXRegion.new(points)
end
def test_copy_constructor
......
......@@ -22,6 +22,7 @@ class TC_FXShell < Test::Unit::TestCase
def test_new
# Free-floating
shell1 = FXShell.new(@app, 0, 0, 0, 0, 0)
assert_nil(shell1.owner)
# Owned
shell2 = FXShell.new(@mainWin, 0, 0, 0, 0, 0)
......
......@@ -76,7 +76,7 @@ private
clearEdges(extending)
old_nr = @table.numRows
old_nc = @table.numColumns
_old_nc = @table.numColumns
# resize the table
nr = @data_lines.size + 2
......
......@@ -39,7 +39,7 @@ class TC_FXVec4f < Test::Unit::TestCase
end
def test_new5
c = FXVec4f.new(FXRGB(128, 128, 128))
FXVec4f.new(FXRGB(128, 128, 128))
end
def test_getitem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment