From 7fa80570a065353fad6d0698180e583e26a4c19e Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 31 Jul 2020 16:11:34 -0700 Subject: 6693 --- html/402stream.mu.html | 77 -------------------------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 html/402stream.mu.html (limited to 'html/402stream.mu.html') diff --git a/html/402stream.mu.html b/html/402stream.mu.html deleted file mode 100644 index e3dc114d..00000000 --- a/html/402stream.mu.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - -Mu - 402stream.mu - - - - - - - - - - -https://github.com/akkartik/mu/blob/master/402stream.mu -
- 1 # Tests for Mu's stream primitives.
- 2 
- 3 fn test-stream {
- 4   # write an int to a stream, then read it back
- 5   var s: (stream int 4)
- 6   var s2/ecx: (addr stream int 4) <- address s
- 7   var x: int
- 8   copy-to x, 0x34
- 9   var x2/edx: (addr int) <- address x
-10   write-to-stream s2, x2
-11   var y: int
-12   var y2/ebx: (addr int) <- address y
-13   read-from-stream s2, y2
-14   check-ints-equal y, 0x34, "F - test-stream"
-15 }
-
- - - -- cgit 1.4.1-2-gfad0