From 9308f71b78af3d6b5f0c358a9c8f8a918ec7ced3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 6 Oct 2026 19:43:44 +0200 Subject: [PATCH] StationServices tests: a single unit of seven-credit ore sells for three, rounded down Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/StationServicesTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/StationServicesTests.cs b/tests/Aetheria.Shared.Tests/StationServicesTests.cs index 1685af834..b8120feb4 100644 --- a/tests/Aetheria.Shared.Tests/StationServicesTests.cs +++ b/tests/Aetheria.Shared.Tests/StationServicesTests.cs @@ -95,9 +95,9 @@ public sealed class StationServicesTests : IDisposable Assert.Equal((int) Math.Floor(_items.GetPrice(Mint("Lamp")) * .5), StationServices.SellPrice(_items, Mint("Lamp", 0))); // Past design durability is no better than new. Assert.Equal(StationServices.SellPrice(_items, Mint("Gun")), StationServices.SellPrice(_items, Mint("Gun", 80))); - // A commodity has no wear: its price per unit times the quantity, at the fraction. + // A commodity has no wear: its price per unit times the quantity, at the fraction, rounded down. Assert.Equal(35, StationServices.SellPrice(_items, Ore(10))); - Assert.Equal(0, StationServices.SellPrice(_items, Ore(1))); + Assert.Equal(3, StationServices.SellPrice(_items, Ore(1))); } [Fact]