This commit is contained in:
Kartik Agaram 2020-08-28 22:04:12 -07:00
parent ddea9a73e2
commit 34ac52cb43
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ fn test-stream {
# - write an int to a stream, then read it back
# step 1: initialize
var s: (stream int 4)
var s2/ecx: (addr stream int 4) <- address s
var s2/ecx: (addr stream int) <- address s
var tmp/eax: boolean <- stream-empty? s2
check-true tmp, "F - test-stream/empty?/0"
tmp <- stream-full? s2
@ -35,7 +35,7 @@ fn test-stream {
fn test-stream-full {
# write an int to a stream of capacity 1
var s: (stream int 1)
var s2/ecx: (addr stream int 1) <- address s
var s2/ecx: (addr stream int) <- address s
var tmp/eax: boolean <- stream-full? s2
check-false tmp, "F - test-stream-full?/pre"
var x: int