Skip to content

Commit

Permalink
extra test for empty memory block
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 24, 2024
1 parent 609afa9 commit 3004015
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions eo-runtime/src/test/eo/org/eolang/malloc-tests.eo
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,15 @@
b.put
(m.read 2 5).eq "Hello"

# Creates memory block of zero bytes (this should be a legal operation)
[] > allocates-zero-bytes
eq. > @
0
malloc.of
0
[m]
m.size > @

# This unit test is supposed to check the functionality of the corresponding object.
[] > malloc-increases-block-size
malloc.of > @
Expand Down

0 comments on commit 3004015

Please sign in to comment.