fix(codegen): Add tracing when checking for a constr vs another primitive

This commit is contained in:
microproofs
2024-03-17 16:25:17 -04:00
parent d1ba8db889
commit 61936cb91e
43 changed files with 189 additions and 51 deletions

View File

@@ -0,0 +1,16 @@
# This file was generated by Aiken
# You typically do not need to edit this file
[[requirements]]
name = "aiken-lang/stdlib"
version = "main"
source = "github"
[[packages]]
name = "aiken-lang/stdlib"
version = "main"
requirements = []
source = "github"
[etags]
"aiken-lang/stdlib@main" = [{ secs_since_epoch = 1710706476, nanos_since_epoch = 456435000 }, "4fe5fcedb7f1061f9e9c25d1811cba7a5b452be6a3669a8b81e1ac0a44aa3f9e"]

View File

@@ -0,0 +1,7 @@
name = "aiken-lang/acceptance_test_073"
version = "0.0.0"
[[dependencies]]
name = 'aiken-lang/stdlib'
version = 'main'
source = 'github'

View File

@@ -0,0 +1,20 @@
pub type Params {
ParamsData { params: Data }
}
pub type MonoDatum {
ParamsWrapper { params: Params }
}
pub type GlobalDatum {
price_feed_script_hash: ByteArray,
}
test expect_raw() fail {
let my_datum: Data =
GlobalDatum {
price_feed_script_hash: #"1234567890123456789012345678901234567890",
}
expect my_datum_parse: MonoDatum = my_datum
my_datum_parse == my_datum_parse
}