mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-09-22 19:41:22 +03:00
Remove use of \ line continuations in tests
These trigger the problem described in issue #1290. We should fix it, but, in the meantime, it's nice to be able to use the portions of this test that work. Testing the use of `\` continuations isn't the main purpose of this test.
This commit is contained in:
parent
0216c7e6ec
commit
2dc5e03567
@ -5,8 +5,7 @@ let x ->- y = x - y; infixr 5 ->-; let (->-) : Integer -> Integer -> Integer
|
||||
42 ->- 10 ->- 100
|
||||
42 ->- 10 -<- 100
|
||||
|
||||
let even x = if x == 0 then True else odd (x-1);\
|
||||
let odd x = if x == 0 then False else even (x-1)
|
||||
let even x = if x == 0 then True else odd (x-1); let odd x = if x == 0 then False else even (x-1)
|
||||
|
||||
:t even
|
||||
:t odd
|
||||
@ -17,9 +16,7 @@ even 4
|
||||
odd 5
|
||||
odd 6
|
||||
|
||||
let even' : Integer -> Bool;\
|
||||
let even' x = if x == 0 then True else odd' (x-1);\
|
||||
let odd' x = if x == 0 then False else even' (x-1)
|
||||
let even' : Integer -> Bool; let even' x = if x == 0 then True else odd' (x-1); let odd' x = if x == 0 then False else even' (x-1)
|
||||
|
||||
:t even'
|
||||
:t odd'
|
||||
@ -35,8 +32,7 @@ take [1...] : X 42
|
||||
|
||||
type constraint CS t = (Ring t, Logic t, Integral t)
|
||||
|
||||
let f : {a} CS a => a -> Integer;\
|
||||
let f x = [1..100]@( (x + fromInteger 5) && fromInteger `0x1f)
|
||||
let f : {a} CS a => a -> Integer; let f x = [1..100]@( (x + fromInteger 5) && fromInteger `0x1f)
|
||||
|
||||
:t f
|
||||
f 0x1234
|
||||
|
Loading…
Reference in New Issue
Block a user