Fix remaining acceptance tests to be V3-compatible

This commit is contained in:
KtorZ
2024-08-27 18:58:50 +02:00
parent d615b4f889
commit 48535636ed
59 changed files with 357 additions and 277 deletions

View File

@@ -24,5 +24,5 @@ requirements = []
source = "github"
[etags]
"aiken-lang/fuzz@main" = [{ secs_since_epoch = 1724597285, nanos_since_epoch = 266243000 }, "24d601fa19a2002318495bbb8562b9677563ca1b5c03126d6b093a65df076bef"]
"aiken-lang/stdlib@main" = [{ secs_since_epoch = 1724597284, nanos_since_epoch = 808906000 }, "5e58899446492a704d0927a43299139856bef746e697b55895ba34206fa28452"]
"aiken-lang/fuzz@main" = [{ secs_since_epoch = 1724776955, nanos_since_epoch = 575782000 }, "24d601fa19a2002318495bbb8562b9677563ca1b5c03126d6b093a65df076bef"]
"aiken-lang/stdlib@main" = [{ secs_since_epoch = 1724776954, nanos_since_epoch = 782601000 }, "5e58899446492a704d0927a43299139856bef746e697b55895ba34206fa28452"]

View File

@@ -6,7 +6,7 @@
"plutusVersion": "v2",
"compiler": {
"name": "Aiken",
"version": "v1.0.31-alpha+0c9ea19"
"version": "v1.0.31-alpha+4003343"
},
"license": "Apache-2.0"
},

View File

@@ -21,6 +21,10 @@ validator foo_3(Foo { a0, .. }: Foo) {
mint(_redeemer, _policy_, _tx) {
a0 == 1
}
else(_) {
fail
}
}
test example_1() {
@@ -32,14 +36,15 @@ test example_2() {
}
test example_3() {
foo_3_mint(Foo { a0: 1, a1: False }, "", "", "")
foo_3.mint(Foo { a0: 1, a1: False }, "", "", "")
}
test example_4() {
let foo_4 = fn(Foo { a1, .. }) { a1 }
let foo_4 =
fn(Foo { a1, .. }) { a1 }
foo_4(Foo { a0: 1, a1: True })
}
test example_5((a, b) via fuzz.both(fuzz.int(), fuzz.int())) {
a + b == b + a
a + b == b + a
}