0, 'y' => 3], ['x' => 7, 'y' => 6], HeuristicType::MANHATTAN) ); self::assertEqualsWithDelta( 7.615773, Heuristic::metric(['x' => 0, 'y' => 3], ['x' => 7, 'y' => 6], HeuristicType::EUCLIDEAN), 0.1 ); self::assertEquals( 7.0, Heuristic::metric(['x' => 0, 'y' => 3], ['x' => 7, 'y' => 6], HeuristicType::CHEBYSHEV) ); self::assertEqualsWithDelta( 10.0, Heuristic::metric(['x' => 0, 'y' => 3], ['x' => 7, 'y' => 6], HeuristicType::MINKOWSKI), 0.1 ); self::assertEqualsWithDelta( 1.333, Heuristic::metric(['x' => 0, 'y' => 3], ['x' => 7, 'y' => 6], HeuristicType::CANBERRA), 0.1 ); self::assertEqualsWithDelta( 0.625, Heuristic::metric(['x' => 0, 'y' => 3], ['x' => 7, 'y' => 6], HeuristicType::BRAY_CURTIS), 0.1 ); self::assertEqualsWithDelta( 8.24264, Heuristic::metric(['x' => 0, 'y' => 3], ['x' => 7, 'y' => 6], HeuristicType::OCTILE), 0.1 ); } }