Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Hamcrest falls into stack overflow when missing attribute is addressed #69

Open
Graur opened this issue Jul 5, 2022 · 0 comments
Open

Comments

@Graur
Copy link
Contributor

Graur commented Jul 5, 2022

Moved from here.

Test below test fails with stack overflow:

[] > invalid-test
  assert-that > @
    TRUE
    $.equals-to TRUE
[ERROR] EOorg.EOeolang.EOinvalid_testTest.testWorks  Time elapsed: 0.01 s  <<< ERROR!
java.lang.StackOverflowError
[ERROR]   EOinvalid_testTest>PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237->PhDefault.attr:237 » StackOverflow

Expected behaviour: something like Can't get(), attribute "equals-to" is absent among other attrs (ρ, minus, σ, lt, eq, gt, as-hash, plus, div, neg, times, Δ, as-bytes, gte, lte) and φ is absent

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant