From 8f1bafa2726c42580e5b1f9a2c02e1e7a7a8135f Mon Sep 17 00:00:00 2001 From: Naeddyr <32275753+Naeddyr@users.noreply.github.com> Date: Tue, 1 Oct 2024 22:36:24 +0300 Subject: [PATCH] Remove testing for diagonal coordinate order (#2300) (#2309) --- .../concept/land-grab-in-space/.docs/instructions.md | 2 +- .../land-grab-in-space/LandGrabInSpaceTests.cs | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/exercises/concept/land-grab-in-space/.docs/instructions.md b/exercises/concept/land-grab-in-space/.docs/instructions.md index 89e04a7b3e..14822a7087 100644 --- a/exercises/concept/land-grab-in-space/.docs/instructions.md +++ b/exercises/concept/land-grab-in-space/.docs/instructions.md @@ -38,7 +38,7 @@ ch.IsLastClaim(new Plot(new Coord(1,1), new Coord(2,1), new Coord(1,2), new Coor ## 4. Find the plot claimed that has the longest side for research purposes -Implement the `ClaimsHandler.GetClaimWithLongestSide()` method to examine all registered claims and return the plot with the longest side. +Implement the `ClaimsHandler.GetClaimWithLongestSide()` method to examine all registered claims and return the plot with the longest side. The coordinate data in a plot is guaranteed to be in a contiguous rectangular shape. ```csharp var ch = new ClaimsHandler(); diff --git a/exercises/concept/land-grab-in-space/LandGrabInSpaceTests.cs b/exercises/concept/land-grab-in-space/LandGrabInSpaceTests.cs index b637e01aac..9f64a20c63 100644 --- a/exercises/concept/land-grab-in-space/LandGrabInSpaceTests.cs +++ b/exercises/concept/land-grab-in-space/LandGrabInSpaceTests.cs @@ -71,18 +71,6 @@ public void GetLongestSideReverseInsertionOrder() Assert.Equal(longer, ch.GetClaimWithLongestSide()); } - [Fact] - [Task(4)] - public void GetLongestSideDiagonal1() - { - var ch = new ClaimsHandler(); - var shorter = CreatePlot(new Coord(0, 0), new Coord(0, 10), new Coord(10, 0), new Coord(10, 10)); - var longer = CreatePlot(new Coord(0, 0), new Coord(11, 0), new Coord(11, 11), new Coord(0, 11)); - ch.StakeClaim(shorter); - ch.StakeClaim(longer); - Assert.Equal(longer, ch.GetClaimWithLongestSide()); - } - private Plot CreatePlot(Coord coord1, Coord coord2, Coord coord3, Coord coord4) { Type plotType = typeof(Plot);