From 869b39d9edc45c68d926328a12885ae61db1c6bb Mon Sep 17 00:00:00 2001 From: Christian Treffs Date: Wed, 5 Aug 2020 10:31:08 +0200 Subject: [PATCH] Re-generate tests --- .../TypedFamilyPerformanceTests.swift | 22 +++++++++---------- .../XCTestManifests.swift | 2 +- Tests/FirebladeECSTests/Base.swift | 4 ++-- Tests/FirebladeECSTests/FamilyTests.swift | 6 ++--- Tests/FirebladeECSTests/SceneGraphTests.swift | 4 ++-- Tests/FirebladeECSTests/SystemsTests.swift | 2 +- Tests/FirebladeECSTests/XCTestManifests.swift | 2 +- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Tests/FirebladeECSPerformanceTests/TypedFamilyPerformanceTests.swift b/Tests/FirebladeECSPerformanceTests/TypedFamilyPerformanceTests.swift index 5e1160d..f4b7bd7 100644 --- a/Tests/FirebladeECSPerformanceTests/TypedFamilyPerformanceTests.swift +++ b/Tests/FirebladeECSPerformanceTests/TypedFamilyPerformanceTests.swift @@ -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) diff --git a/Tests/FirebladeECSPerformanceTests/XCTestManifests.swift b/Tests/FirebladeECSPerformanceTests/XCTestManifests.swift index 90436e7..d6f0ba2 100644 --- a/Tests/FirebladeECSPerformanceTests/XCTestManifests.swift +++ b/Tests/FirebladeECSPerformanceTests/XCTestManifests.swift @@ -60,7 +60,7 @@ extension TypedFamilyPerformanceTests { } public func __allTests() -> [XCTestCaseEntry] { - [ + return [ testCase(ComponentIdentifierTests.__allTests__ComponentIdentifierTests), testCase(HashingPerformanceTests.__allTests__HashingPerformanceTests), testCase(TypeIdentifierPerformanceTests.__allTests__TypeIdentifierPerformanceTests), diff --git a/Tests/FirebladeECSTests/Base.swift b/Tests/FirebladeECSTests/Base.swift index 280ac80..cd4d461 100644 --- a/Tests/FirebladeECSTests/Base.swift +++ b/Tests/FirebladeECSTests/Base.swift @@ -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 - } + } } } diff --git a/Tests/FirebladeECSTests/FamilyTests.swift b/Tests/FirebladeECSTests/FamilyTests.swift index 9ad0dd9..4a709ea 100644 --- a/Tests/FirebladeECSTests/FamilyTests.swift +++ b/Tests/FirebladeECSTests/FamilyTests.swift @@ -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)) diff --git a/Tests/FirebladeECSTests/SceneGraphTests.swift b/Tests/FirebladeECSTests/SceneGraphTests.swift index 8302002..730efce 100644 --- a/Tests/FirebladeECSTests/SceneGraphTests.swift +++ b/Tests/FirebladeECSTests/SceneGraphTests.swift @@ -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) diff --git a/Tests/FirebladeECSTests/SystemsTests.swift b/Tests/FirebladeECSTests/SystemsTests.swift index 7dff41f..59005b2 100644 --- a/Tests/FirebladeECSTests/SystemsTests.swift +++ b/Tests/FirebladeECSTests/SystemsTests.swift @@ -121,6 +121,6 @@ class SystemsTests: XCTestCase { .prefix(count) .forEach { (entity: Entity) in entity.destroy() - } + } } } diff --git a/Tests/FirebladeECSTests/XCTestManifests.swift b/Tests/FirebladeECSTests/XCTestManifests.swift index 08ebc55..14f13cf 100644 --- a/Tests/FirebladeECSTests/XCTestManifests.swift +++ b/Tests/FirebladeECSTests/XCTestManifests.swift @@ -172,7 +172,7 @@ extension SystemsTests { } public func __allTests() -> [XCTestCaseEntry] { - [ + return [ testCase(ComponentIdentifierTests.__allTests__ComponentIdentifierTests), testCase(ComponentTests.__allTests__ComponentTests), testCase(EntityCreationTests.__allTests__EntityCreationTests),