Skip to content

Commit

Permalink
feat(#2968): snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Mar 21, 2024
1 parent b63c37a commit 1e492f8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions eo-runtime/src/test/eo/org/eolang/float-tests.eo
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
+tests
+version 0.0.0

# Test.
[] > should-be-equal
eq. > @
55.5
55.6

# Test.
[] > less-true
eq. > @
Expand Down
2 changes: 1 addition & 1 deletion eo-runtime/src/test/resources/org/eolang/snippets/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ eo: |
42
# This is the default 64+ symbols comment in front of named abstract object.
[x] > foo
if. > @
if > @
x.eq 0
error "x is zero"
42
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ eo: |
[args] > fibo
# This is the default 64+ symbols comment in front of named abstract object.
[n] > f
if. > @
if > @
n.lt 2
n
plus.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ eo: |
[args] > ifthenelse
# This is the default 64+ symbols comment in front of named abstract object.
[n] > f
if. > @
if > @
n.lt 0
"smaller"
"greater"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ eo: |
# This is the default 64+ symbols comment in front of named abstract object.
[args] > vbm
stdout > @
if.
TRUE
"second":1
if
"second":2
TRUE:0
"first"
.as-bytes
.as-string:0
.as-string:1

0 comments on commit 1e492f8

Please sign in to comment.