Lua: improve level testing
Add des.finalize_level() used for testing in conjunction with des.reset_level(). Add nhc.DLB to return 0 or 1 if DLB was defined at compile-time. Change the test_lev.lua to give more informative messages instead of just lua error when required file doesn't exist. Add bigrm-11 to the level tests.
This commit is contained in:
@@ -173,6 +173,7 @@ struct instance_flags {
|
||||
* behaviour of various NetHack functions and probably warrant
|
||||
* a structure of their own elsewhere some day.
|
||||
*/
|
||||
boolean lua_testing; /* doing lua tests */
|
||||
boolean debug_fuzzer; /* fuzz testing */
|
||||
boolean in_lua; /* executing a lua script */
|
||||
boolean defer_plname; /* X11 hack: askname() might not set g.plname */
|
||||
|
||||
Reference in New Issue
Block a user