-
Notifications
You must be signed in to change notification settings - Fork 125
Clean and tag unit tests for use with BYOND unit test framework #2426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Clean and tag unit tests for use with BYOND unit test framework #2426
Conversation
Content.Tests/DMProject/BrokenTests/Tree/Global/Var/vars_field.dm
Outdated
Show resolved
Hide resolved
|
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) |
There was a problem hiding this comment.
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.
|
|
||
| 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 |
There was a problem hiding this comment.
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.
| ASSERT(L1.len == 2) | ||
|
|
||
| // Lists are fun | ||
| L1 += L2 | ||
| ASSERT(L1[3] == "B") | ||
| ASSERT(L1.len == 3) No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This too
Removes byte order marks from all tests, and adds
// NOBYONDtag to ones which will not work with BYONDAlso 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)