mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-24 06:52:44 +03:00
Add another test for unary operators
This commit is contained in:
parent
2f45ce1a38
commit
6bdbe52673
3
tests/parser/unary-2.cry
Normal file
3
tests/parser/unary-2.cry
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
test1 = ~ min 1 2 == 2
|
||||
test2 = - min 1 2 == 3
|
3
tests/parser/unary-2.icry
Normal file
3
tests/parser/unary-2.icry
Normal file
@ -0,0 +1,3 @@
|
||||
:l unary-2.cry
|
||||
test1
|
||||
test2
|
15
tests/parser/unary-2.icry.stdout
Normal file
15
tests/parser/unary-2.icry.stdout
Normal file
@ -0,0 +1,15 @@
|
||||
Loading module Cryptol
|
||||
Loading module Cryptol
|
||||
Loading module Main
|
||||
[warning] at :1:1--3:23:
|
||||
Defaulting type parameter 'bits'
|
||||
of literal or demoted expression
|
||||
at ./unary-2.cry:3:22--3:23
|
||||
to 2
|
||||
[warning] at :1:1--3:23:
|
||||
Defaulting type parameter 'bits'
|
||||
of literal or demoted expression
|
||||
at ./unary-2.cry:2:22--2:23
|
||||
to 2
|
||||
True
|
||||
True
|
Loading…
Reference in New Issue
Block a user