Skip to content

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

@GetLocalPlayer

Description

@GetLocalPlayer
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions