mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-30 23:15:32 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			459 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			459 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| 
 | |
| unittests.register("test_get_version", function()
 | |
|     local version = core.get_version()
 | |
|     assert(type(version) == "table")
 | |
|     assert(type(version.project) == "string")
 | |
|     assert(type(version.string) == "string")
 | |
|     assert(type(version.proto_min) == "number")
 | |
|     assert(type(version.proto_max) == "number")
 | |
|     assert(version.proto_max >= version.proto_min)
 | |
|     assert(type(version.hash) == "string")
 | |
|     assert(type(version.is_dev) == "boolean")
 | |
| end)
 |