trying to fix CI
Some checks failed
Create tag and build when new code gets to main / BumpTag (push) Successful in 23s
Create tag and build when new code gets to main / Export (push) Successful in 7m9s
Create tag and build when new code gets to main / Test (push) Failing after 5m6s

This commit is contained in:
2026-02-22 16:06:04 +01:00
parent 8d2fe1001e
commit 96b4fa7197
7 changed files with 74 additions and 80 deletions

View File

@@ -10,12 +10,12 @@ namespace Movementtests.tests;
public class MovementSystemUnitTest
{
[TestCase]
public void GroundedMovement_Accelerates_And_Applies_Gravity()
public void GroundedMovementAcceleratesAndAppliesGravity()
{
var move = new CGroundedMovement();
move.RMovement = new RMovement(speed: 10.0f, acceleration: 1.0f, gravityModifier: 0.5f, targetHeight: 0.0f);
move.WallInFrontRayCast = new RayCast3D();
move.GlobalPosition = Vector3.Zero;
//move.GlobalPosition = Vector3.Zero;
var inputs = new MovementInputs(
Velocity: Vector3.Zero,
@@ -27,6 +27,6 @@ public class MovementSystemUnitTest
var v = move.ComputeVelocity(inputs);
AssertVector(v).IsEqualApprox(new Vector3(10, -4.9f, 0), new Vector3(0.0001f, 0.0001f, 0.0001f));
AssertVector(v).IsEqualApprox(new Vector3(10, -4.9f, 0), new Vector3(0.001f, 0.001f, 0.001f));
}
}