Skip to content
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

Adds tests setting values on a TMap with a non existent key #5

Open
wants to merge 4 commits into
base: development
Choose a base branch
from

Conversation

RenatoVog
Copy link

No description provided.

Haxe/Scripts/cases/TestTArray.hx Outdated Show resolved Hide resolved
s["Test3"].toString().should.be("43");
[ for (key in s.GenerateKeyArray()) key.toString() ].should.containExactly(["Test3"]);
s.Remove("Test3");
s.Contains("Test3").should.be(false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you also test s["SomeOtherValue"].toString().should.be("") and then s.Remove("SomeOtherValue")? Right now the getter will add if it doesn't exist, but I think that's a better option than just failing at runtime

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.

3 participants