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

Commit

Permalink
Merge pull request #73 from objectionary/72
Browse files Browse the repository at this point in the history
version up to 0.23.17
  • Loading branch information
Graur authored Jul 10, 2022
2 parents e345245 + be2685f commit 2e18388
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SOFTWARE.
<packaging>jar</packaging>
<name>eo-hamcrest</name>
<properties>
<eolang.version>0.23.15</eolang.version>
<eolang.version>0.23.17</eolang.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
Expand Down
29 changes: 21 additions & 8 deletions src/main/eo/org/eolang/hamcrest/assert-that.eo
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
+version 0.0.0
+alias sprintf org.eolang.txt.sprintf
+alias number org.eolang.math.number
+alias org.eolang.collections.list
+rt jvm org.eolang:eo-hamcrest:0.0.0

# Main object for assertions
Expand All @@ -36,7 +37,9 @@
sprintf
"%s\nExpected: %s\n but: %s"
if.
reasons.is-empty
is-empty.
list
reasons
""
reasons.at 0
description-of.
Expand Down Expand Up @@ -114,7 +117,8 @@
[] > description-of
" and ".joined > @
map.
matchers
list
matchers
[i]
i.description-of > @

Expand Down Expand Up @@ -146,7 +150,8 @@
[] > description-of
" or ".joined > @
map.
matchers
list
matchers
[i]
i.description-of > @

Expand Down Expand Up @@ -272,7 +277,9 @@
FALSE
seq > @
mismatches.write *
actual.reducei
reducei.
list
actual
FALSE
[acc i x]
or. > @
Expand Down Expand Up @@ -321,7 +328,9 @@
[a] > match
seq > @
mismatches.write *
actual.reducei
reducei.
list
actual
FALSE
[acc i el]
or. > @
Expand All @@ -336,7 +345,8 @@
[] > description-of
" and ".joined > @
map.
matchers
list
matchers
[i]
i.description-of > @

Expand All @@ -356,7 +366,9 @@
check-length
seq
mismatches.write *
a.reducei
reducei.
list
a
TRUE
[acc i el]
and. > @
Expand All @@ -380,6 +392,7 @@
[] > description-of
" and ".joined > @
map.
matchers
list
matchers
[i]
i.description-of > @

0 comments on commit 2e18388

Please sign in to comment.