(result: Option.Option<Graph.PathResult<E>>, expected: Graph.PathResult<E>)
| 11 | }) |
| 12 | |
| 13 | const expectSomePath = <E>(result: Option.Option<Graph.PathResult<E>>, expected: Graph.PathResult<E>) => { |
| 14 | expect(Option.isSome(result)).toBe(true) |
| 15 | if (Option.isSome(result)) { |
| 16 | expect(result.value).toEqual(expected) |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | describe("Graph", () => { |
| 21 | describe("constructors", () => { |