Skip to content

Commit

Permalink
compiler: #29 test much simpler now
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilin Chen authored and Zilin Chen committed Jan 22, 2018
1 parent feab60f commit 6fc8dad
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions cogent/tests/pass_ticket-e29.cogent
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@

type WordArray a

type WordArrayIndex = U32

type R a b = <Success a | Error b>


wordarray_get: all(a :< DSE). ((WordArray a)!, WordArrayIndex) -> a

wordarray_get_bounded: all(a :< DSE). ((WordArray a)!, WordArrayIndex) -> R a ()
wordarray_get_bounded (arr, idx) =
if idx < wordarray_length[a] (arr) then
Success (wordarray_get[a] (arr, idx))
else
Error ()

wordarray_length: all(a :< DSE). (WordArray a)! -> U32

type Buffer = {
Expand Down

0 comments on commit 6fc8dad

Please sign in to comment.