Skip to content

Commit

Permalink
Add tests for new function. Remove tests for removed Latin class.
Browse files Browse the repository at this point in the history
  • Loading branch information
MHenderson committed Dec 4, 2024
1 parent 91c92d7 commit 5b3d283
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/test_latin.py

This file was deleted.

7 changes: 7 additions & 0 deletions tests/test_pls-list-colouring-problem.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import ryser as ry

def test_pls_list_colouring_problem():
F = {1:1, 2:2, 6:1}
G = ry.pls_list_colouring_problem(F, 3)
assert list(G.nodes()) == [0, 1, 2]
assert list(G.edges(data = True)) == [(0, 1, {'permissible': [2]}), (0, 2, {'permissible': [3]}), (0, 0, {'permissible': [1]}), (1, 0, {'permissible': [2, 3]}), (1, 2, {'permissible': [1]}), (1, 1, {'permissible': [3]}), (2, 0, {'permissible': [2, 3]}), (2, 1, {'permissible': [1, 3]}), (2, 2, {'permissible': [2, 3]})]

0 comments on commit 5b3d283

Please sign in to comment.