Skip to content

Failing ideal tests using Macaulay2 1.23 ("did not throw an error") #239

@d-torrance

Description

@d-torrance

With Macaulay2 1.23, the m2r test suite fails with the following:

══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-ideal.R:145:3'): ideal_(list("x+y x^2+y^2"), raw_chars = TRUE) errors ──
`ideal_(list("x+y x^2+y^2"), raw_chars = TRUE)` did not throw an error.
── Failure ('test-ideal.R:322:3'): ideal_.(list("x+y x^2+y^2"), raw_chars = TRUE) errors ──
`ideal_.(list("x+y x^2+y^2"), raw_chars = TRUE)` did not throw an error.

This is because x + y x^2+y^2 is now valid Macaulay2 code. In particular, it interprets the middle term y x^2 like sub(y, {x => x^2, y => y}), which evaluates to y, and so the entire expression evaluates to y^2 + x + y.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions