Add Lua test for record model property

master
elsid 1 month ago
parent 36198e9413
commit 5b2764e75a
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -119,7 +119,6 @@ local function testRecordStore(store, storeName, skipPairs)
end)
testing.expectEqual(status, true, storeName)
end
local function testRecordStores()
@ -285,6 +284,12 @@ local function testCommitCrime()
testing.expectEqual(types.Player.getCrimeLevel(player), 0, "Crime level should not change if the victim's alarm value is low and there's no other witnesses")
end
local function testRecordModelProperty()
initPlayer()
local player = world.players[1]
testing.expectEqual(types.NPC.record(player).model, 'meshes\\basicplayer.dae')
end
tests = {
{'timers', testTimers},
{'rotating player with controls.yawChange should change rotation', function()
@ -345,7 +350,8 @@ tests = {
testing.runLocalTest(player, 'playerWeaponAttack')
end},
{'vfs', testVFS},
{'testCommitCrime', testCommitCrime}
{'testCommitCrime', testCommitCrime},
{'recordModelProperty', testRecordModelProperty},
}
return {

Loading…
Cancel
Save