Skip to content

Commit

Permalink
Test: Remove leftover love.sensor.getData calls when testing love.sen…
Browse files Browse the repository at this point in the history
…sor.getName.
  • Loading branch information
MikuAuahDark committed Mar 16, 2024
1 parent 50295fd commit 6f86c19
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions testing/tests/sensor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ local function testGetName(test, sensorType)
love.sensor.setEnabled(sensorType, false)
ok, name = pcall(love.sensor.getName, sensorType)
test:assertFalse(ok, 'check sensor.getName("' .. sensorType .. '") errors when disabled')

love.sensor.setEnabled(sensorType, false)
ok, x, y, z = pcall(love.sensor.getData, sensorType)
test:assertFalse(ok, 'check sensor.getData("' .. sensorType .. '") errors when disabled')
end


Expand Down

0 comments on commit 6f86c19

Please sign in to comment.