Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions python/cuopt/cuopt/tests/routing/test_warnings_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,21 @@ def test_dist_mat():
)


def test_dist_mat_null():
cost_matrix = cudf.DataFrame(
[
[0, 5.0, 5.0, 5.0],
[5.0, 0, 5.0, 5.0],
[5.0, 5.0, 0, 5.0],
[5.0, None, 5.0, 0],
]
)
with pytest.raises(Exception) as exc_info:
dm = routing.DataModel(cost_matrix.shape[0], 3)
dm.add_cost_matrix(cost_matrix)
assert str(exc_info.value) == "cost matrix cannot have NULL values"
Comment thread
coderabbitai[bot] marked this conversation as resolved.


def test_time_windows():
cost_matrix = cudf.DataFrame(
[
Expand Down
Loading