Skip to content

Commit

Permalink
use 1.1 formatter to fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Acepie committed May 1, 2024
1 parent 99c44da commit d42e9a5
Showing 1 changed file with 104 additions and 104 deletions.
208 changes: 104 additions & 104 deletions test/player_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ pub fn player_tests() {
it("move", fn() {
expect.to_equal(
Player(
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(1.0, 2.0, 3.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(1.0, 2.0, 3.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.move,
Player(
position: Vector(1.0, 2.0, 3.0),
Expand All @@ -45,14 +45,14 @@ pub fn player_tests() {
it("update_velocity", fn() {
expect.to_equal(
Player(
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(1.0, 1.0, 1.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(1.0, 1.0, 1.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.update_velocity,
Player(
position: Vector(0.0, 0.0, 0.0),
Expand All @@ -66,14 +66,14 @@ pub fn player_tests() {
)
expect.to_equal(
Player(
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(5.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(5.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.update_velocity,
Player(
position: Vector(0.0, 0.0, 0.0),
Expand All @@ -89,14 +89,14 @@ pub fn player_tests() {
it("jump", fn() {
expect.to_equal(
Player(
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.jump,
Player(
position: Vector(0.0, 0.0, 0.0),
Expand All @@ -110,14 +110,14 @@ pub fn player_tests() {
)
expect.to_equal(
Player(
position: Vector(0.0, 0.0, 1.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, 1.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.jump,
Player(
position: Vector(0.0, 0.0, 1.0),
Expand All @@ -133,14 +133,14 @@ pub fn player_tests() {
it("accelerate_x", fn() {
expect.to_equal(
Player(
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.accelerate_x(True),
Player(
position: Vector(0.0, 0.0, 0.0),
Expand All @@ -154,14 +154,14 @@ pub fn player_tests() {
)
expect.to_equal(
Player(
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.accelerate_x(False),
Player(
position: Vector(0.0, 0.0, 0.0),
Expand All @@ -177,14 +177,14 @@ pub fn player_tests() {
it("accelerate_y", fn() {
expect.to_equal(
Player(
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.accelerate_y(True),
Player(
position: Vector(0.0, 0.0, 0.0),
Expand All @@ -198,14 +198,14 @@ pub fn player_tests() {
)
expect.to_equal(
Player(
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 0.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.accelerate_y(False),
Player(
position: Vector(0.0, 0.0, 0.0),
Expand All @@ -221,14 +221,14 @@ pub fn player_tests() {
it("stop_x", fn() {
expect.to_equal(
Player(
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(1.0, 1.0, 0.0),
acceleration: vector.Vector(1.0, 1.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(1.0, 1.0, 0.0),
acceleration: vector.Vector(1.0, 1.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.stop_x,
Player(
position: Vector(0.0, 0.0, 0.0),
Expand All @@ -244,14 +244,14 @@ pub fn player_tests() {
it("stop_y", fn() {
expect.to_equal(
Player(
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(1.0, 1.0, 0.0),
acceleration: vector.Vector(1.0, 1.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(1.0, 1.0, 0.0),
acceleration: vector.Vector(1.0, 1.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.stop_y,
Player(
position: Vector(0.0, 0.0, 0.0),
Expand All @@ -267,14 +267,14 @@ pub fn player_tests() {
it("apply_gravity", fn() {
expect.to_equal(
Player(
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 1.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, 0.0),
velocity: vector.Vector(0.0, 0.0, 1.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.apply_gravity,
Player(
position: Vector(0.0, 0.0, 0.0),
Expand All @@ -288,14 +288,14 @@ pub fn player_tests() {
)
expect.to_equal(
Player(
position: Vector(0.0, 0.0, -1.0),
velocity: vector.Vector(0.0, 0.0, 1.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
position: Vector(0.0, 0.0, -1.0),
velocity: vector.Vector(0.0, 0.0, 1.0),
acceleration: vector.Vector(0.0, 0.0, 0.0),
last_fire_time: 0,
last_hit_time: 0,
current_health: 100,
max_health: 100,
)
|> player.apply_gravity,
Player(
position: Vector(0.0, 0.0, 0.0),
Expand Down

0 comments on commit d42e9a5

Please sign in to comment.