Skip to content

Commit

Permalink
test: add test for graph.set_source
Browse files Browse the repository at this point in the history
  • Loading branch information
kod-kristoff committed May 8, 2024
1 parent 2e9aa11 commit 717060c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ def test_graph_case2() -> None:
assert "e-s0-s1-t20" in gm.edges


def test_set_source() -> None:
source = "Jonat han saknades"
target = "Jonathan saknaes"

g = graph.init(target)

gm = graph.set_source(g, source)
print(f"{gm=}")
assert "e-s2-s3-t0" in gm.edges


def test_unaligned_set_side() -> None:
g0 = graph.init("a bc d")
print(">>> test_unaligned_set_side")
Expand Down

0 comments on commit 717060c

Please sign in to comment.