Skip to content

Commit d20a3b2

Browse files
committed
test(catalog): verify large exact profile wrapping
1 parent 15444c5 commit d20a3b2

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

tests/integration/catalog/test_public_operation_contract_conformance.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from jacobian.catalog.catalog import Catalog
1313
from jacobian.catalog.models import MathTool
14+
from jacobian.dispatch import invoke_operation
1415

1516
MAX_MUTATIONS_PER_EXAMPLE = 256
1617

@@ -145,3 +146,12 @@ def test_every_accepted_boundary_mutation_returns_the_declared_result(
145146
type(result),
146147
operation.result_type,
147148
)
149+
150+
151+
def test_large_periodic_profile_survives_public_result_wrapping() -> None:
152+
result = invoke_operation(
153+
"symbolic_dynamics.periodic_point_profile.compute",
154+
{"shift": {"matrix": [[1_000_000]], "two_sided": True}, "max_period": 3},
155+
Catalog.open(),
156+
)
157+
assert result.output["fixed_point_counts"][-1] == "1000000000000000000"

tests/math/symbolic_dynamics/test_symbolic_dynamics.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,3 @@ def test_periodic_profile_returns_large_counts_as_canonical_integers() -> None:
276276
)
277277
)
278278
assert result.fixed_point_counts[-1] == "1000000000000000000"
279-
280-
281-
def test_large_periodic_profile_survives_public_result_wrapping() -> None:
282-
from jacobian.catalog.catalog import Catalog
283-
from jacobian.dispatch import invoke_operation
284-
285-
result = invoke_operation(
286-
"symbolic_dynamics.periodic_point_profile.compute",
287-
{"shift": {"matrix": [[1_000_000]], "two_sided": True}, "max_period": 3},
288-
Catalog.open(),
289-
)
290-
assert result.output["fixed_point_counts"][-1] == "1000000000000000000"

0 commit comments

Comments
 (0)