leo/tests/parser/expression/binary/bit_or.leo

28 lines
331 B
Plaintext
Raw Normal View History

2022-06-16 22:53:53 +03:00
/*
namespace: ParseExpression
expectation: Pass
*/
2022-06-16 23:22:32 +03:00
1u8 | 1u8
2022-06-16 22:53:53 +03:00
2022-06-16 23:22:32 +03:00
2u8|3u8
2022-06-16 22:53:53 +03:00
2022-06-16 23:22:32 +03:00
1u8 | 2u8 | 3u8
2022-06-16 22:53:53 +03:00
2022-06-16 23:22:32 +03:00
1u8 ^ 2u8 | 3u8 ^ 4u8
2022-06-16 22:53:53 +03:00
2022-06-16 23:22:32 +03:00
1u8 | 2u8 | 3u8
2022-06-16 22:53:53 +03:00
2022-06-16 23:22:32 +03:00
1u8 ^ 2u8 | 3u8 ^ 4u8 | 5u8 ^ 6u8
2022-06-16 22:53:53 +03:00
!-x.or(y)
x.or(y).or(y).or(y)
-x.or(y)
(-x).or(y)
-(x.or(y))
(-x.or(y)).or(y)
!x.or(y)
(!x).or(y)
!(x.or(y))
(!x.or(y)).or(y)
(x.or(y) | x.or(y)).or(x.or(y) | x.or(y))