Skip to content

Clean and tag unit tests for use with BYOND unit test framework#2426

Closed
amylizzle wants to merge 20 commits intoOpenDreamProject:masterfrom
amylizzle:unit_test_cleanup_and_tag
Closed

Clean and tag unit tests for use with BYOND unit test framework#2426
amylizzle wants to merge 20 commits intoOpenDreamProject:masterfrom
amylizzle:unit_test_cleanup_and_tag

Conversation

@amylizzle
Copy link
Copy Markdown
Collaborator

@amylizzle amylizzle commented Oct 25, 2025

Removes byte order marks from all tests, and adds // NOBYOND tag to ones which will not work with BYOND

Also fixes/deletes a few tests that did not run properly in BYOND (including some in BrokenTests)

This way we can keep things synced with https://github.com/spacestation13/dm-test-suite easily and double check our tests all work in BYOND (they don't lol)

Comment thread Content.Tests/DMProject/BrokenTests/Tree/Global/Var/vars_field.dm Outdated
@amylizzle amylizzle requested a review from ike709 October 28, 2025 00:18
@github-actions
Copy link
Copy Markdown

This pull request has conflicts, please resolve those before we can evaluate the pull request.

ASSERT(L[b] == 2)
ASSERT(L["c"] == 3)
ASSERT(L[c] == null)
ASSERT(L.len == 3)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this removed? Works in BYOND.

Comment on lines -12 to -23

A = list(a = 10)
A += A
A.Cut(1, 2)
ASSERT(A ~= list("a"))
ASSERT(A["a"] == null)

A = list(a = 10)
A += A
A.Cut(2, 0)
ASSERT(A ~= list("a"))
ASSERT(A["a"] == null) No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This also works in BYOND.

Comment on lines -9 to -14
ASSERT(L1.len == 2)

// Lists are fun
L1 += L2
ASSERT(L1[3] == "B")
ASSERT(L1.len == 3) No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants