eo
eo copied to clipboard
an attribute is absent, though it is not
This one fails
+package org.eolang
+junit
[] > assign-3
[value] > pybool
value > @
[value] > pyint
[x] > eq
pybool (value.eq (x.value)) > @
[x] > add
pyint (value.add (x.value)) > @
(((pyint 1).add (pyint 3))).eq (pyint 4) > @
This worakround does not help (i.e., the following test fails with the same reason):
[] > assign-3
[value] > pybool
value > @
[value] > pyint
[x] > eq
^.^.pybool (value.eq (x.value)) > @
[x] > add
pyint (value.add (x.value)) > @
(((pyint 1).add (pyint 3))).eq (pyint 4) > @
This attempt to minimize does not fail
[] > assign-3
[value] > pybool
value > @
[value] > pyint
[x] > eq
pybool (value.eq (x.value)) > @
[x] > add
pyint (value.add (x.value)) > @
(pyint 4).eq (pyint 4) > @
@Graur pls, dispatch this one
@includealex Can you check if this example still doesn't work?
@Graur this example still doesn't work
@includealex what is the output message?
@Graur first example gives this error
EOassign_3Test.testWorks:88->PhDefault.attr:243->PhDefault.attr:243 » Ex EOorg.EOeolang.EOstringν52946="The object is at
the line #208, position #6; caused by ExUnset: Error at "EOorg.EOeolang.EOassign_3Test.EOω1pyint#pybool" attribute; caused
by ExUnset: Can't get(), attribute "pybool" is absent among other 5 attrs (add, ρ, σ, eq, value) and φ is absent"SF
and second gives this one
EOassign_3Test.testWorks:88->PhDefault.attr:243 » Ex EOorg.EOeolang.EOstringν47531="The object is at the line #206,
position #7; caused by ExUnset: Error at "eq.ρ" attribute; caused by ExUnset: Error at "add.ρ" attribute; caused by ExUnset: Error
at "EOorg.EOeolang.EOassign_3Test.EOω1pyint#pybool" attribute; caused by ExUnset: Can't get(), attribute "pybool" is absent
among other 5 attrs (add, ρ, σ, eq, value) and φ is absent"
each test was started from the 201 line.
@includealex Do you have any ideas why is it happened?
@Graur let's resolve this
@dours Please, check the fix below:
[] > assign-3
[value] > pybool
value > @
[value] > pyint
[x] > eq
pybool (value.eq (x.value)) > @
[x] > add
^.^.pyint (value.plus (x.value)) > @
((pyint 1).add (pyint 3)).eq (pyint 4) > @
We need to strictly identify pyint object.
Proof: #2042