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

Commit

Permalink
#106 added less-than-failed-output testing
Browse files Browse the repository at this point in the history
  • Loading branch information
includealex committed Sep 15, 2022
1 parent b27a1fb commit 965ee38
Showing 1 changed file with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,26 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

+alias org.eolang.hamcrest.assert-that
+home https://github.com/objectionary/eo-hamcrest
+junit
+package org.eolang.hamcrest.failed-output
+version 0.0.0

# @todo #41:30min To add several tests for checking
# less-than matcher output, when assert-that object return string
# and test suggestion is false. Check the origin ticket to get
# more information.
[] > less-than-failed-output
nop > @
[] > less-than-int-failed-output
[] > suggestion
assert-that > @
1
$.less-than 0
assert-that > @
suggestion
$.equal-to "\nExpected: <0> greater than value\n but: was greater than <1>"

[] > less-than-float-failed-output
[] > suggestion
assert-that > @
1.0
$.less-than 0.0
assert-that > @
suggestion
$.equal-to "\nExpected: <0.0> greater than value\n but: was greater than <1.0>"

0 comments on commit 965ee38

Please sign in to comment.