commit - 9f53e696c5edca0d616d58d25a89cf8111b11d5e
commit + 0b695130f6e825230f53749b9809808ba2e538a3
blob - 1e9b8c93e6bd2a5ee92763875fd80ccd05987ef8
blob + 6da049b0758a48894158408f942e91823baa3ade
--- ninepscript.5
+++ ninepscript.5
scope.
.It comparison
The syntax is
-.Ql Ar expression Cm == Ar expression
+.Bd -literal -offset Ds
+.Ar expression Cm == Ar expression
+.Ar expression Cm <= Ar expression
+.Ed
+.Pp
and yields a true value if the two expressions are considered to be
+respectively
.Sq equal
-or a false value otherwise.
+or
+.Sq lesser equal ,
+a false value otherwise.
Two values are equal if they are both number and represent the same
value
.Pq regardless of the size
.Ar procedure
with the given
.Ar arguments .
-.It Ic assert Ar expression
+.It Ic assert Ar comparison
Evaluate
-.Ar expression
+.Ar comparison
and if it not yields a true-ish value terminate the current running
test and mark it as failed.
Multiple assertion can be done in one single
block using the following syntax:
.Bd -literal -offset Ds
.Ic assert (
- expression_1
- expression_2
+ comparison_1
+ comparison_2
...
- expression_n
+ comparison_n
)
.Ed
.Pp
Note that newlines are mandatory after every
-.Ar expression
+.Ar comparison
in this case.
.It Ic should-fail Ar expression Op : Ar reason
Evaluate