wurstscript / WurstScript

Programming language and toolkit to create Warcraft III Maps

Home Page:https://wurstlang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[compiletime] GroupAddUnit must return `false` if the passed unit is already in the group

GetLocalPlayer opened this issue · comments

let g = CreateGroup()
let u = createUnit(Player(0), 'hfoo', vec2(0, 0), 0 .fromDeg())
GroupAddUnit(g, u).assertTrue()
GroupAddUnit(g, u).assertFalse() // <-- line 101
	FAILED assertion:
	Test failed: Expected <false>, Actual <true>
... when calling boolean_assertFalse(true) in GroupTests.wurst:101
... when calling testVararg() in GroupTests.wurst:86

Thanks, could you make a PR for the stdlib to add the unit test?

Cannot due another issue.