Skip to content

Commit c580bdd

Browse files
tests: check for eigen in some tests
1 parent 5653195 commit c580bdd

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/libsemigroups_pybind11/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353

5454
try:
5555
from _libsemigroups_pybind11 import (
56+
LIBSEMIGROUPS_EIGEN_ENABLED,
5657
LIBSEMIGROUPS_HPCOMBI_ENABLED,
5758
LIMIT_MAX,
5859
NEGATIVE_INFINITY,

tests/test_presentation_examples.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import pytest
1414

1515
from libsemigroups_pybind11 import (
16+
LIBSEMIGROUPS_EIGEN_ENABLED,
1617
POSITIVE_INFINITY,
1718
LibsemigroupsError,
1819
ReportGuard,
@@ -424,5 +425,6 @@ def test_braid_group():
424425

425426
p = examples.braid_group(3)
426427
assert len(p.alphabet()) == 4
427-
tc = ToddCoxeter(congruence_kind.twosided, p)
428-
assert tc.number_of_classes() == POSITIVE_INFINITY
428+
if LIBSEMIGROUPS_EIGEN_ENABLED:
429+
tc = ToddCoxeter(congruence_kind.twosided, p)
430+
assert tc.number_of_classes() == POSITIVE_INFINITY

0 commit comments

Comments
 (0)