mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-23 18:21:38 +03:00
tested all unreachables
This commit is contained in:
parent
9cb1f3632d
commit
0981874787
@ -0,0 +1,5 @@
|
||||
---
|
||||
namespace: ParseStatement
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got ';'\n --> test:1:1\n |\n 1 | ; x = 10u8;\n | ^"
|
53
tests/parser/unreachable/define.leo
Normal file
53
tests/parser/unreachable/define.leo
Normal file
@ -0,0 +1,53 @@
|
||||
/*
|
||||
namespace: ParseStatement
|
||||
expectation: Fail
|
||||
*/
|
||||
|
||||
; x = 10u8;
|
||||
. x = 10u8;
|
||||
import x = 10u8;
|
||||
, x = 10u8;
|
||||
[ x = 10u8;
|
||||
] x = 10u8;
|
||||
{ x = 10u8;
|
||||
} x = 10u8;
|
||||
( x = 10u8;
|
||||
) x = 10u8;
|
||||
: x = 10u8;
|
||||
:: x = 10u8;
|
||||
? x = 10u8;
|
||||
_ x = 10u8;
|
||||
= x = 10u8;
|
||||
== x = 10u8;
|
||||
! x = 10u8;
|
||||
!= x = 10u8;
|
||||
> x = 10u8;
|
||||
>= x = 10u8;
|
||||
< x = 10u8;
|
||||
<= x = 10u8;
|
||||
> x = 10u8;
|
||||
.. x = 10u8;
|
||||
as x = 10u8;
|
||||
console x = 10u8;
|
||||
const x = 10u8;
|
||||
let x = 10u8;
|
||||
for x = 10u8;
|
||||
if x = 10u8;
|
||||
else x = 10u8;
|
||||
i8 x = 10u8;
|
||||
i16 x = 10u8;
|
||||
i32 x = 10u8;
|
||||
i64 x = 10u8;
|
||||
i128 x = 10u8;
|
||||
u8 x = 10u8;
|
||||
u16 x = 10u8;
|
||||
u32 x = 10u8;
|
||||
u64 x = 10u8;
|
||||
u128 x = 10u8;
|
||||
& x = 10u8;
|
||||
return x = 10u8;
|
||||
self x = 10u8;
|
||||
Self x = 10u8;
|
||||
true x = 10u8;
|
||||
false x = 10u8;
|
||||
0 x = 10u8;
|
Loading…
Reference in New Issue
Block a user