mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-24 16:31:34 +03:00
Add test case for issue #474.
This commit is contained in:
parent
e3ea9335c8
commit
8db89ab3ee
3
tests/issues/issue474.icry
Normal file
3
tests/issues/issue474.icry
Normal file
@ -0,0 +1,3 @@
|
||||
let mapping = ['A' .. 'Z'] <<< 13
|
||||
let mapped c = if (('A' <= c) && (c <= 'Z')) then (mapping @ (c - 'A')) else c
|
||||
:sat \x -> mapped x == 'N'
|
2
tests/issues/issue474.icry.stdout
Normal file
2
tests/issues/issue474.icry.stdout
Normal file
@ -0,0 +1,2 @@
|
||||
Loading module Cryptol
|
||||
(\x -> mapped x == 'N') 0x41 = True
|
Loading…
Reference in New Issue
Block a user