mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 15:56:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			660 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			660 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| local testing = require('testing_util')
 | |
| local core = require('openmw.core')
 | |
| local util = require('openmw.util')
 | |
| 
 | |
| testing.registerGlobalTest('[regions] Should expose Bitter Coast', function()
 | |
|     local record = core.regions.records['bitter coast region']
 | |
|     testing.expect(record ~= nil, 'Bitter Coast Region to exist')
 | |
|     testing.expectEqual(record.mapColor, util.color.hex('2227FF'))
 | |
|     for id, probability in pairs(record.weatherProbabilities) do
 | |
|         testing.expect(core.weather.records[id] ~= nil, 'weather ' .. id .. 'to exist')
 | |
|     end
 | |
|     testing.expectEqual(record.weatherProbabilities.cloudy, 60, 'cloudy weather to occur 60% of the time')
 | |
| end)
 |