@@ -5,7 +5,7 @@ before: |
55 exported_apis = { "assert", "barrel", "elems", "eval", "getmetamethod",
66 "ielems", "ipairs", "ireverse", "monkey_patch",
77 "npairs", "pairs", "require", "ripairs", "rnpairs",
8- "tostring", "version" }
8+ "tostring" }
99
1010 -- Tables with iterator metamethods used by various examples.
1111 __pairs = setmetatable ({ content = "a string" }, {
@@ -27,6 +27,7 @@ before: |
2727 })
2828
2929 M = require (this_module)
30+ M.version = nil -- previous specs may have autoloaded it
3031
3132
3233specify std :
@@ -455,9 +456,9 @@ specify std:
455456 expect (f "std").to_be (require "std")
456457 - it uses _VERSION when version field is nil :
457458 std = require "std"
458- M._VERSION, M.version = M.version, M._VERSION
459+ M._VERSION, M.version = M.version, nil
459460 expect (f ("std", "41", "9999")).to_be (require "std")
460- M._VERSION, M.version = M.version , M._VERSION
461+ M._VERSION, M.version = nil , M._VERSION
461462 - context with semantic versioning :
462463 - before :
463464 std = require "std"
0 commit comments