Commit Graph

24 Commits (4db6f8f3d2238d484af3014748e02118dd45c2b6)

Author SHA1 Message Date
lethosor 2a82add030
Test for order of subclass fields 2023-08-12 22:39:20 -04:00
lethosor 574fa08747
Add index_enum, ref_target 2023-08-12 22:12:45 -04:00
lethosor 396b2d7832
Adapt tests to dynamically-generated field info
No need to freeze the field info tables anymore
2023-08-12 21:59:14 -04:00
lethosor fc6d4caa8e
Dynamically generate field info in __index
Constructing the complete tables when the types were initialized made it
impossible to populate the "type" field, because not all types had been added to
the global type tables yet.
2023-08-12 20:18:22 -04:00
lethosor 4a9a83daa5
Expose more fields, refactor 2023-08-12 20:01:03 -04:00
lethosor 29f99733fe
Add tests 2023-08-12 19:04:51 -04:00
lethosor 9aee332fbd
Widen and clarify structures test mode restrictions 2023-08-11 12:52:28 -04:00
lethosor 6bd0819635
Fix crash in df.global:_field() when global address is unknown
and add a test
2023-08-11 02:31:54 -04:00
Myk Taylor 3358a2b516
enable more tests 2023-08-04 20:40:33 -07:00
Myk Taylor 4c89af7c20
targets -> target 2023-08-04 10:11:28 -07:00
Myk Taylor a6de9a21fa
enable most core tests 2023-08-04 10:11:28 -07:00
Myk Taylor f8dd09200f
enable remaining core and structures tests 2023-08-04 10:11:28 -07:00
lethosor d1f0edd33b
Apply initial pre-commit config 2022-04-12 14:48:19 -04:00
lethosor 1014c41db6
Add context to some loops in tests 2021-07-05 20:49:25 -04:00
lethosor 4968d97c22
test/structures/find: avoid overwriting other potential config values 2021-05-08 22:12:07 -04:00
myk002 757dbeb238
update existing calls to expect.error* to new API 2021-04-04 17:37:36 -07:00
Ben Lubar c06d1f8e52
tagged union support for lua (#1818) 2021-03-30 15:55:06 -05:00
lethosor e9efa6c961
Update xml, fix + improve robustness of unions.lua unit tests
- unit_action_fields(): handled primitive union members correctly
- unit_action_type(): added messages to make failures easier to diagnose
    - Also removed redundant checks that effectively checked that
      `enum.attrs[k] == enum.attrs[v]` - this is out of scope of union tests
2021-03-23 21:24:57 -04:00
lethosor f0ad730a37
Lua: Fix off-by-one preventing accessing last df-other-vectors item by ID, add tests 2020-07-26 02:11:27 -04:00
lethosor 4891b4fd5e
Fix indexing primitive refs with integers (broken in #1543), add tests
Apparently lua_tostring has the side effect of *converting* numbers to strings
2020-07-25 20:22:52 -04:00
lethosor 1f1bb5a055 Update Lua API docs for ref_target field, add tests 2020-07-14 02:57:30 -04:00
lethosor 498eb2750b +Tests 2020-04-06 19:28:34 -04:00
lethosor d664681ea8 Add a basic test for df.image_set.find() 2020-04-05 23:30:24 -04:00
lethosor 5598b332f2 Reorganize structures tests and add basic unit_action-related tests 2020-04-01 02:30:55 -04:00