-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: moved tests into test dir, added brevity aliases
- Loading branch information
1 parent
e83e004
commit 4ae5a35
Showing
12 changed files
with
126 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package akara | ||
|
||
// for brevity | ||
type ( | ||
W = World | ||
E = EntityID | ||
C = Component | ||
CID = ComponentID | ||
S = System | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package tests | ||
|
||
import ( | ||
"github.com/gravestench/akara" | ||
"testing" | ||
|
||
"github.com/gravestench/bitset" | ||
|
||
. "github.com/smartystreets/goconvey/convey" | ||
) | ||
|
||
func TestComponentFilterBuilder(t *testing.T) { | ||
Convey("Given an Arbitrary BitSet", t, func() { | ||
bs := bitset.NewBitSet() | ||
|
||
Convey("A component filter may be created with any combination of requirements/restrictions", func() { | ||
So(akara.NewComponentFilter(bs, nil, nil), ShouldNotBeNil) | ||
So(akara.NewComponentFilter(nil, bs, nil), ShouldNotBeNil) | ||
So(akara.NewComponentFilter(nil, nil, bs), ShouldNotBeNil) | ||
|
||
So(akara.NewComponentFilter(bs, bs, nil), ShouldNotBeNil) | ||
So(akara.NewComponentFilter(nil, bs, bs), ShouldNotBeNil) | ||
So(akara.NewComponentFilter(bs, nil, bs), ShouldNotBeNil) | ||
|
||
So(akara.NewComponentFilter(bs, bs, bs), ShouldNotBeNil) | ||
So(akara.NewComponentFilter(nil, nil, nil), ShouldNotBeNil) | ||
}) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.