[wesnoth-commits] [wesnoth/wesnoth] ce4fcd: Add unit tests for the Lua shroud functions

Celtic Minstrel noreply at github.com
Wed Jul 28 17:49:51 UTC 2021


  Branch: refs/heads/celmin
  Home:   https://github.com/wesnoth/wesnoth
  Commit: ce4fcd3f882a5a37a1f99ed9bfe8494c8b3f0724
      https://github.com/wesnoth/wesnoth/commit/ce4fcd3f882a5a37a1f99ed9bfe8494c8b3f0724
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    A data/test/scenarios/test_modify_shroud.cfg
    M wml_test_schedule

  Log Message:
  -----------
  Add unit tests for the Lua shroud functions


  Commit: 139d54197687580f946e9c285b3a13d2e4aabb5f
      https://github.com/wesnoth/wesnoth/commit/139d54197687580f946e9c285b3a13d2e4aabb5f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M data/test/scenarios/test_modify_shroud.cfg
    M wml_test_schedule

  Log Message:
  -----------
  Update the shroud unit tests and add a few more for cases new in 1.16


  Commit: 8d370d6fdaa9e4ea44220cbcb7b63308659daa5c
      https://github.com/wesnoth/wesnoth/commit/8d370d6fdaa9e4ea44220cbcb7b63308659daa5c
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M src/config.cpp
    M src/config.hpp
    M src/deprecation.hpp

  Log Message:
  -----------
  New config methods for getting deprecated attributes or children


  Commit: 7e01919c4c76f1bc5ae8cb0da0c267db70fa8cd7
      https://github.com/wesnoth/wesnoth/commit/7e01919c4c76f1bc5ae8cb0da0c267db70fa8cd7
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M src/ai/configuration.cpp
    M src/units/formula_manager.cpp

  Log Message:
  -----------
  Add deprecation messages for the most FormulaAI WML


  Commit: 00cd31b4870255f1cb06e8c785b746d627a04f4f
      https://github.com/wesnoth/wesnoth/commit/00cd31b4870255f1cb06e8c785b746d627a04f4f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M src/ai/configuration.cpp

  Log Message:
  -----------
  AI: Fix short goal syntax


  Commit: eb50ba919214ad7e66aedd329c319df8ea98730e
      https://github.com/wesnoth/wesnoth/commit/eb50ba919214ad7e66aedd329c319df8ea98730e
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M data/lua/core/map.lua

  Log Message:
  -----------
  Lua API: Fix wesnoth.map.find(filter, unit) ignoring the unit


  Commit: b5147303c13ba3be7421347548d9d0fb7b4d28f3
      https://github.com/wesnoth/wesnoth/commit/b5147303c13ba3be7421347548d9d0fb7b4d28f3
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M data/campaigns/World_Conquest/lua/map/postgeneration_utils/engine.lua
    M data/lua/core/map.lua

  Log Message:
  -----------
  Lua API: Add wesnoth.map.filter_tags for the mapgen kernel

This was supposed to be added for 1.16, but it was forgotten; anyone wishing to use it in 1.16 will have to copy it from World Conquest.


  Commit: 1ddd3cd48e95627e573ba6350e0c96f4dc295286
      https://github.com/wesnoth/wesnoth/commit/1ddd3cd48e95627e573ba6350e0c96f4dc295286
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M data/lua/location_set.lua

  Log Message:
  -----------
  Lua API: Add an absolute complement option to location_set

- ls:invert(w,h,[border_size]) takes an absolute complement as if the map were the given size
- ls:invert(map) takes an absolute complement relative to the specified map
- ~ls is only available in the game kernel and takes an absolute complement relative to the real map


  Commit: da5ca025c2a58c3ccee7be6869ff6b044629a36d
      https://github.com/wesnoth/wesnoth/commit/da5ca025c2a58c3ccee7be6869ff6b044629a36d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M data/lua/location_set.lua

  Log Message:
  -----------
  Lua API: Use a named tuple when converting a location set to triples


  Commit: 977c689571ccafbd07d9837e35904a6a75bec72c
      https://github.com/wesnoth/wesnoth/commit/977c689571ccafbd07d9837e35904a6a75bec72c
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M data/lua/location_set.lua

  Log Message:
  -----------
  Lua API: When creating a location set from triples, also support tables with x, y, and value keys


  Commit: 6ab9283d38f96684a410b9a0d7d3519e7beaf181
      https://github.com/wesnoth/wesnoth/commit/6ab9283d38f96684a410b9a0d7d3519e7beaf181
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M src/scripting/mapgen_lua_kernel.cpp

  Log Message:
  -----------
  Lua API: Make wesnoth.map.generate_height_map return data compatible with location_set

To maintain backwards compatibility, this format is opt-in.


  Commit: a52522c373e06dae3de0ffe38cdbc06422b38ad8
      https://github.com/wesnoth/wesnoth/commit/a52522c373e06dae3de0ffe38cdbc06422b38ad8
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Lua API: wesnoth.map.parse|make_bitmap are now defined in the base kernel

This is mainly so that they can be used in the mapgen kernel; exposing them to the plugin kernel is just an incidental side-effect.


  Commit: e0e0845e830f99d2e1bfd4f974380399fd58cdca
      https://github.com/wesnoth/wesnoth/commit/e0e0845e830f99d2e1bfd4f974380399fd58cdca
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M data/lua/core/unit_test.lua
    M data/test/scenarios/as_text.cfg
    M data/test/scenarios/test_lua.cfg
    M data/test/scenarios/test_lua_version_api.cfg

  Log Message:
  -----------
  Lua API: Ensure unit test assertions specify a message string


  Commit: 3c20a3a7b76443b30cf5b42d057dd70605b85e91
      https://github.com/wesnoth/wesnoth/commit/3c20a3a7b76443b30cf5b42d057dd70605b85e91
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M data/lua/core/sides.lua

  Log Message:
  -----------
  Lua API: Use the new location_set complement in the place_shroud deprecation wrapper


  Commit: 759a44ab35be445f52b45e902ee28e4de617a9b7
      https://github.com/wesnoth/wesnoth/commit/759a44ab35be445f52b45e902ee28e4de617a9b7
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M data/lua/core/map.lua
    M data/lua/core/unit_test.lua
    M src/config.cpp
    M src/config.hpp
    M src/gui/dialogs/migrate_version_selection.cpp
    M src/scripting/mapgen_lua_kernel.cpp

  Log Message:
  -----------
  fix whitespace


Compare: https://github.com/wesnoth/wesnoth/compare/43e2c5ad3b87...759a44ab35be



More information about the Commits mailing list