Parse tests as private functions.
They actually are private; we can't export / import tests. Fixes #284.
This commit is contained in:
parent
61be8ca73e
commit
ce65236514
|
@ -300,7 +300,7 @@ pub fn test_parser() -> impl Parser<Token, ast::UntypedDefinition, Error = Parse
|
|||
location: span_end,
|
||||
end_position: span.end - 1,
|
||||
name,
|
||||
public: true,
|
||||
public: false,
|
||||
return_annotation: None,
|
||||
return_type: (),
|
||||
})
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
# This file was generated by Aiken
|
||||
# You typically do not need to edit this file
|
||||
|
||||
requirements = []
|
||||
packages = []
|
|
@ -0,0 +1,3 @@
|
|||
name = 'aiken-lang/acceptance_test_047'
|
||||
version = '0.0.0'
|
||||
description = ''
|
|
@ -0,0 +1 @@
|
|||
addr1w9z47fyj9ffqck2fnld04k27zfe04wq6n9zj76u4ghu4xdcd0futm
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"type": "PlutusScriptV2",
|
||||
"description": "Generated by Aiken",
|
||||
"cborHex": "4e4d01000022253335734944526161"
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
4d01000022253335734944526161
|
|
@ -0,0 +1 @@
|
|||
addr_test1wpz47fyj9ffqck2fnld04k27zfe04wq6n9zj76u4ghu4xdck8aqy7
|
|
@ -0,0 +1,7 @@
|
|||
fn spend(_datum: Void, _redeemer: Void, _ctx: Void) -> Bool {
|
||||
True
|
||||
}
|
||||
|
||||
test foo() {
|
||||
1 + 1 == 2
|
||||
}
|
Loading…
Reference in New Issue