Re-generate tests
This commit is contained in:
parent
71aa30c562
commit
869b39d9ed
|
|
@ -69,7 +69,7 @@ class TypedFamilyPerformanceTests: XCTestCase {
|
|||
_ = entity
|
||||
|
||||
loopCount += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(loopCount, family.count * 10)
|
||||
|
|
@ -86,7 +86,7 @@ class TypedFamilyPerformanceTests: XCTestCase {
|
|||
.forEach { (position: Position) in
|
||||
_ = position
|
||||
loopCount += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(loopCount, numEntities * 10)
|
||||
|
|
@ -110,7 +110,7 @@ class TypedFamilyPerformanceTests: XCTestCase {
|
|||
_ = position
|
||||
|
||||
loopCount += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(loopCount, family.count * 10)
|
||||
|
|
@ -136,7 +136,7 @@ class TypedFamilyPerformanceTests: XCTestCase {
|
|||
_ = position
|
||||
|
||||
loopCount += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(loopCount, family.count * 10)
|
||||
|
|
@ -161,7 +161,7 @@ class TypedFamilyPerformanceTests: XCTestCase {
|
|||
_ = velocity
|
||||
|
||||
loopCount += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(loopCount, family.count * 10)
|
||||
|
|
@ -187,7 +187,7 @@ class TypedFamilyPerformanceTests: XCTestCase {
|
|||
_ = velocity
|
||||
|
||||
loopCount += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(loopCount, family.count * 10)
|
||||
|
|
@ -212,7 +212,7 @@ class TypedFamilyPerformanceTests: XCTestCase {
|
|||
_ = name
|
||||
|
||||
loopCount += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(loopCount, family.count * 10)
|
||||
|
|
@ -239,7 +239,7 @@ class TypedFamilyPerformanceTests: XCTestCase {
|
|||
_ = name
|
||||
|
||||
loopCount += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(loopCount, family.count * 10)
|
||||
|
|
@ -265,7 +265,7 @@ class TypedFamilyPerformanceTests: XCTestCase {
|
|||
_ = color
|
||||
|
||||
loopCount += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(loopCount, family.count * 10)
|
||||
|
|
@ -293,7 +293,7 @@ class TypedFamilyPerformanceTests: XCTestCase {
|
|||
_ = color
|
||||
|
||||
loopCount += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(loopCount, family.count * 10)
|
||||
|
|
@ -348,7 +348,7 @@ class TypedFamilyPerformanceTests: XCTestCase {
|
|||
_ = empty
|
||||
|
||||
loopCount += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(loopCount, family.count * 10)
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ extension TypedFamilyPerformanceTests {
|
|||
}
|
||||
|
||||
public func __allTests() -> [XCTestCaseEntry] {
|
||||
[
|
||||
return [
|
||||
testCase(ComponentIdentifierTests.__allTests__ComponentIdentifierTests),
|
||||
testCase(HashingPerformanceTests.__allTests__HashingPerformanceTests),
|
||||
testCase(TypeIdentifierPerformanceTests.__allTests__TypeIdentifierPerformanceTests),
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ class ColorSystem {
|
|||
color.r = 1
|
||||
color.g = 2
|
||||
color.b = 3
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -148,6 +148,6 @@ class PositionSystem {
|
|||
|
||||
pos.x = x
|
||||
pos.y = y
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ class FamilyTests: XCTestCase {
|
|||
.forEach { (entity: Entity, _: Position) in
|
||||
entity.assign(Velocity(a: 3.14))
|
||||
entity.remove(Position.self)
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(familyA.count, 0)
|
||||
XCTAssertEqual(familyB.count, 10)
|
||||
|
|
@ -129,7 +129,7 @@ class FamilyTests: XCTestCase {
|
|||
.forEach { (entity: Entity, velocity: Velocity) in
|
||||
entity.assign(Position(x: 1, y: 2))
|
||||
entity.remove(velocity)
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(familyA.count, 10)
|
||||
XCTAssertEqual(familyB.count, 0)
|
||||
|
|
@ -174,7 +174,7 @@ class FamilyTests: XCTestCase {
|
|||
.prefix(currentCount)
|
||||
.forEach { (entity: Entity) in
|
||||
entity.destroy()
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(family.memberIds.count, (count / 2))
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ class SceneGraphTests: XCTestCase {
|
|||
|
||||
child.x += parent.x
|
||||
child.y += parent.y
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(counter, 1)
|
||||
XCTAssertEqual(child1Pos.x, 3)
|
||||
|
|
@ -124,7 +124,7 @@ class SceneGraphTests: XCTestCase {
|
|||
lastIndex = parent.index
|
||||
parentSum += parent.index
|
||||
childSum += child.index
|
||||
}
|
||||
}
|
||||
|
||||
XCTAssertEqual(parentSum, 36)
|
||||
XCTAssertEqual(childSum, 45)
|
||||
|
|
|
|||
|
|
@ -121,6 +121,6 @@ class SystemsTests: XCTestCase {
|
|||
.prefix(count)
|
||||
.forEach { (entity: Entity) in
|
||||
entity.destroy()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ extension SystemsTests {
|
|||
}
|
||||
|
||||
public func __allTests() -> [XCTestCaseEntry] {
|
||||
[
|
||||
return [
|
||||
testCase(ComponentIdentifierTests.__allTests__ComponentIdentifierTests),
|
||||
testCase(ComponentTests.__allTests__ComponentTests),
|
||||
testCase(EntityCreationTests.__allTests__EntityCreationTests),
|
||||
|
|
|
|||
Loading…
Reference in New Issue