Skip to content

Commit

Permalink
fixes failing checks (Simple-Station#28)
Browse files Browse the repository at this point in the history
* Update PullingTest.cs

* but wait, there's more!
  • Loading branch information
CrazyAmphibian authored and spess-empyrean committed Jan 11, 2025
1 parent fa88052 commit f06cdc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Content.IntegrationTests/Tests/Movement/PullingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async Task PullTest()
var pullable = Comp<PullableComponent>(Target);

// Player is initially to the left of the target and not pulling anything
Assert.That(Delta(), Is.InRange(0.9f, 1.1f));
Assert.That(Delta(), Is.InRange(0.8f, 1.1f));
Assert.That(puller.Pulling, Is.Null);
Assert.That(pullable.Puller, Is.Null);
Assert.That(pullable.BeingPulled, Is.False);
Expand All @@ -39,7 +39,7 @@ public async Task PullTest()

// Move to the left and check that the target moves with the player and is still being pulled.
await Move(DirectionFlag.West, 1);
Assert.That(Delta(), Is.InRange(0.9f, 1.3f));
Assert.That(Delta(), Is.InRange(0.8f, 1.3f));
Assert.That(puller.Pulling, Is.EqualTo(STarget));
Assert.That(pullable.Puller, Is.EqualTo(SPlayer));
Assert.That(pullable.BeingPulled, Is.True);
Expand All @@ -48,7 +48,7 @@ public async Task PullTest()

// Move in the other direction
await Move(DirectionFlag.East, 2);
Assert.That(Delta(), Is.InRange(-1.3f, -0.9f));
Assert.That(Delta(), Is.InRange(-1.3f, -0.8f));
Assert.That(puller.Pulling, Is.EqualTo(STarget));
Assert.That(pullable.Puller, Is.EqualTo(SPlayer));
Assert.That(pullable.BeingPulled, Is.True);
Expand All @@ -58,7 +58,7 @@ public async Task PullTest()
// Stop pulling
await PressKey(ContentKeyFunctions.ReleasePulledObject);
await RunTicks(5);
Assert.That(Delta(), Is.InRange(-1.3f, -0.9f));
Assert.That(Delta(), Is.InRange(-1.3f, -0.8f));
Assert.That(puller.Pulling, Is.Null);
Assert.That(pullable.Puller, Is.Null);
Assert.That(pullable.BeingPulled, Is.False);
Expand Down

0 comments on commit f06cdc4

Please sign in to comment.