Minor style cleanup.
parent
6c0bff1de1
commit
4839bfcb00
|
@ -1,15 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Godot;
|
using Godot;
|
||||||
using Godot.Collections;
|
|
||||||
using GoDotTest;
|
using GoDotTest;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
using Array = System.Array;
|
|
||||||
|
|
||||||
//using GodotXUnitApi;
|
|
||||||
//using Xunit;
|
|
||||||
|
|
||||||
namespace GodotComponentTest.tests;
|
namespace GodotComponentTest.tests;
|
||||||
|
|
||||||
|
@ -119,10 +113,10 @@ public class HexGridPathFindingTests : TestClass
|
||||||
public void TestHexCost()
|
public void TestHexCost()
|
||||||
{
|
{
|
||||||
Assert.Equal(_hexGrid.PathCostDefault, _hexGrid.GetHexCost(new Vector2(1, 1)));
|
Assert.Equal(_hexGrid.PathCostDefault, _hexGrid.GetHexCost(new Vector2(1, 1)));
|
||||||
Assert.Equal(0, _hexGrid.GetHexCost(new HexCell(new Vector3 (2, 1, -3))));
|
Assert.Equal(0, _hexGrid.GetHexCost(new HexCell(new Vector3(2, 1, -3))));
|
||||||
|
|
||||||
_hexGrid.AddObstacle(new HexCell(1, 1), 1.337f);
|
_hexGrid.AddObstacle(new HexCell(1, 1), 1.337f);
|
||||||
Assert.Equal(1.337f, _hexGrid.GetHexCost(new Vector2(1,1)));
|
Assert.Equal(1.337f, _hexGrid.GetHexCost(new Vector2(1, 1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
Loading…
Reference in New Issue