mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-24 10:41:57 +03:00
Add parser tests for records and structs with visibilities
This commit is contained in:
parent
f269a3c609
commit
cd21c1b01e
11
tests/tests/parser/program/record_with_visibility.leo
Normal file
11
tests/tests/parser/program/record_with_visibility.leo
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/*
|
||||||
|
namespace: Parse
|
||||||
|
expectation: Pass
|
||||||
|
*/
|
||||||
|
|
||||||
|
program test.aleo {
|
||||||
|
record token {
|
||||||
|
private owner: address,
|
||||||
|
private gates: u64,
|
||||||
|
}
|
||||||
|
}
|
12
tests/tests/parser/program/struct_with_visibility.leo
Normal file
12
tests/tests/parser/program/struct_with_visibility.leo
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
/*
|
||||||
|
namespace: Parse
|
||||||
|
expectation: Pass
|
||||||
|
*/
|
||||||
|
|
||||||
|
program test.aleo {
|
||||||
|
struct foo {
|
||||||
|
public baz: address,
|
||||||
|
private floo: u64,
|
||||||
|
data: bool,
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user