Skip to content

add a bunch of basic unit tests - #5942

Merged
ab9rf merged 7 commits into
DFHack:developfrom
ab9rf:add-tests
Sep 21, 2026
Merged

ab9rf merged 7 commits into
DFHack:developfrom
ab9rf:add-tests

Conversation

@ab9rf

@ab9rf ab9rf commented Sep 17, 2026

Copy link
Copy Markdown
Member

unit tests for dfhack lua library code

unit tests for dfhack lua library code
two of these test something that we don't currently implement but might someday

the others are incorrect and/or redundant with existing tests
correct basic test
remove test of unimplemented default_value functionality
rewrite some tests for specifics of dfhack's libs
comment out some that are either pointless or cannot be tested
fix syntax on some
@ab9rf
ab9rf requested a review from SilasD September 17, 2026 20:27

@SilasD SilasD left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good. I'm happy with this. decent coverage and should run fast.

it doesn't excercise everything but really, no test suite can.

I'd like to extend this, test some of the string extensions with Lua's poor-man regexps and some of the specialty function handling with parameters given to the called functions. maybe someday. I'll put it on my list.

@ab9rf
ab9rf merged commit 27986a9 into DFHack:develop Sep 21, 2026
14 checks passed
@ab9rf
ab9rf deleted the add-tests branch October 11, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants