You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AssertionError: Oops! Something went wrong!
The following assertion was not satisfied
subject "Empty" should equal 3
What we expected
a value that is equal to "3"
Difference comparison
> - Empty
> + 3
Where
File "/home/joost/Ontwikkeling/GoAbout/pacioli/grappa-test.py", line 7, in <module>
1| #!/usr/bin/env python
2|
3| from grappa import *
4|
5| {1: {2: 3}} | should.have.key(1) > should.have.key(2) > should.equal(3)
6|
7| > {1: {2: 3}} | should.have.key(1) > should.any(should.have.key(2) > should.equal(3))
8|
The text was updated successfully, but these errors were encountered:
Because of the operator precedence in Python and some inherent complexity with lazy evaluation in such case, it's not currently possible using > yield test subject operator in conditional composition. I think I can find a way to make it work, but I can't spend time on that right now.
The recommended style here that actually works is using the yield chain operator instead:
Not sure if this is expected to work, but I had hoped to combine composition and conditional operators:
The text was updated successfully, but these errors were encountered: