1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-09-13 18:24:06 +00:00
openmw/scripts/data/morrowind_tests/global_weather.lua
2025-08-28 03:22:33 +03:00

10 lines
449 B
Lua

local testing = require('testing_util')
local core = require('openmw.core')
local util = require('openmw.util')
testing.registerGlobalTest('[weather] Should be able to change weather records', function()
local record = core.weather.records['clear']
testing.expect(record ~= nil, 'Clear weather to exist')
record.skyColor.sunrise = util.color.hex('2227FF')
testing.expectEqual(record.skyColor.sunrise, util.color.hex('2227FF'))
end)