Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for Gabow, WordGraph and Paths #147

Merged

Conversation

MTWhyte
Copy link
Contributor

@MTWhyte MTWhyte commented Apr 10, 2024

This PR adds some tests for the mentioned stuff, which seemed to get lost in some earlier merging.

@MTWhyte MTWhyte force-pushed the refactor-todd-coxeter-10-apr branch from c41d583 to 7667ee2 Compare April 11, 2024 14:44
@MTWhyte
Copy link
Contributor Author

MTWhyte commented Apr 11, 2024

I've updated the tests, deleting some stuff that isn't used.

There are a couple of things I've noticed that I'll ask about when convenient, e.g. about how to 'unset' the 'source' node in the Paths object.

@MTWhyte MTWhyte force-pushed the refactor-todd-coxeter-10-apr branch from 7667ee2 to 16a5434 Compare April 11, 2024 15:41
@MTWhyte MTWhyte force-pushed the refactor-todd-coxeter-10-apr branch from 16a5434 to 8e89960 Compare April 12, 2024 09:38
@MTWhyte MTWhyte mentioned this pull request Apr 12, 2024
@james-d-mitchell james-d-mitchell added the v1 Label for issues/prs for v1 label Apr 17, 2024
@@ -32,7 +32,6 @@ def test_001():
w.set_target(i, i % 2, i + 1)

p = Paths(w)
assert p.at_end()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to say that I think this is a bug in libsemigroups, that the return value of at_end() is non-deterministic if the Paths object isn't properly initialised (it somehow isn't tracked in the class whether or not it is initialised, but it is implicitly assumed that it is).

@james-d-mitchell
Copy link
Member

Am I ok to merge this @MTWhyte ?

@MTWhyte
Copy link
Contributor Author

MTWhyte commented Apr 17, 2024 via email

@james-d-mitchell james-d-mitchell merged commit 42fd19c into libsemigroups:v1 Apr 17, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1 Label for issues/prs for v1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants