Skip to content

Commit

Permalink
lone: add lone bytes creation tests
Browse files Browse the repository at this point in the history
Test that lone programs can create new zero filled byte buffers.
  • Loading branch information
matheusmoreira committed Dec 4, 2023
1 parent b40736b commit 5bdc4a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/bytes/new/input
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(import (lone print) (bytes new))

(print (new 16))
(print (new 128))
2 changes: 2 additions & 0 deletions test/bytes/new/output
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bytes[0x00000000000000000000000000000000]
bytes[0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]

0 comments on commit 5bdc4a1

Please sign in to comment.