Skip to content

Commit 8f1bafa

Browse files
authored
Remove testing for diagonal coordinate order (#2300) (#2309)
1 parent 7e614a2 commit 8f1bafa

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

exercises/concept/land-grab-in-space/.docs/instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ch.IsLastClaim(new Plot(new Coord(1,1), new Coord(2,1), new Coord(1,2), new Coor
3838

3939
## 4. Find the plot claimed that has the longest side for research purposes
4040

41-
Implement the `ClaimsHandler.GetClaimWithLongestSide()` method to examine all registered claims and return the plot with the longest side.
41+
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.
4242

4343
```csharp
4444
var ch = new ClaimsHandler();

exercises/concept/land-grab-in-space/LandGrabInSpaceTests.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,6 @@ public void GetLongestSideReverseInsertionOrder()
7171
Assert.Equal(longer, ch.GetClaimWithLongestSide());
7272
}
7373

74-
[Fact]
75-
[Task(4)]
76-
public void GetLongestSideDiagonal1()
77-
{
78-
var ch = new ClaimsHandler();
79-
var shorter = CreatePlot(new Coord(0, 0), new Coord(0, 10), new Coord(10, 0), new Coord(10, 10));
80-
var longer = CreatePlot(new Coord(0, 0), new Coord(11, 0), new Coord(11, 11), new Coord(0, 11));
81-
ch.StakeClaim(shorter);
82-
ch.StakeClaim(longer);
83-
Assert.Equal(longer, ch.GetClaimWithLongestSide());
84-
}
85-
8674
private Plot CreatePlot(Coord coord1, Coord coord2, Coord coord3, Coord coord4)
8775
{
8876
Type plotType = typeof(Plot);

0 commit comments

Comments
 (0)