fix: fixing tests to account for the new stdlib main. Also added test 75 but commented out for now until a fix is merged
This commit is contained in:
@@ -13,4 +13,4 @@ requirements = []
|
||||
source = "github"
|
||||
|
||||
[etags]
|
||||
"aiken-lang/stdlib@main" = [{ secs_since_epoch = 1714678411, nanos_since_epoch = 536024000 }, "2a710731e0127ec3e21c6c3962a0254c98602e7428b33fc4fcaa67ab368ce1b1"]
|
||||
"aiken-lang/stdlib@main" = [{ secs_since_epoch = 1714846142, nanos_since_epoch = 654244000 }, "5ee55dc5ccf269bb493f4cacb32096f0191a6adb2ef39d62a1f79b8c5a8fcc7f"]
|
||||
|
||||
@@ -41,16 +41,16 @@ test dict_test1() {
|
||||
|
||||
let (ask_map, asize, offer_map, osize) =
|
||||
(
|
||||
dict.from_list([(ask_input_ref, transaction.NoDatum)], compare_out_ref),
|
||||
[Pair(ask_input_ref, transaction.NoDatum)],
|
||||
1,
|
||||
dict.from_list([(offer_input_ref, transaction.NoDatum)], compare_out_ref),
|
||||
[Pair(offer_input_ref, transaction.NoDatum)],
|
||||
1,
|
||||
)
|
||||
|
||||
(ask_map, asize, offer_map, osize) == (
|
||||
dict.from_list([(ask_input_ref, transaction.NoDatum)], compare_out_ref),
|
||||
[Pair(ask_input_ref, transaction.NoDatum)],
|
||||
1,
|
||||
dict.from_list([(offer_input_ref, transaction.NoDatum)], compare_out_ref),
|
||||
[Pair(offer_input_ref, transaction.NoDatum)],
|
||||
1,
|
||||
)
|
||||
}
|
||||
@@ -62,14 +62,9 @@ test dict_test2() {
|
||||
[(ask_input_ref, offer_input_ref)]
|
||||
|
||||
let foo =
|
||||
fn(pair: (OutputReference, OutputReference), acc: Dict<Value, Address>) {
|
||||
fn(pair: (OutputReference, OutputReference), acc: Dict<ByteArray, Address>) {
|
||||
let new_pay_map =
|
||||
dict.insert(
|
||||
acc,
|
||||
value.zero(),
|
||||
Address(VerificationKeyCredential("00"), None),
|
||||
compare_value("", "", _, _),
|
||||
)
|
||||
dict.insert(acc, "", Address(VerificationKeyCredential("00"), None))
|
||||
|
||||
new_pay_map
|
||||
}
|
||||
@@ -87,21 +82,17 @@ test dict_test3() {
|
||||
|
||||
let (ask_map, asize, offer_map, osize) =
|
||||
(
|
||||
dict.from_list([(ask_input_ref, transaction.NoDatum)], compare_out_ref),
|
||||
[Pair(ask_input_ref, transaction.NoDatum)],
|
||||
1,
|
||||
dict.from_list([(offer_input_ref, transaction.NoDatum)], compare_out_ref),
|
||||
[Pair(offer_input_ref, transaction.NoDatum)],
|
||||
1,
|
||||
)
|
||||
|
||||
// TODO: Maybe passing Value to the key generic of dict shouldn't be possible
|
||||
let foo =
|
||||
fn(pair: (OutputReference, OutputReference), acc: Dict<Value, Address>) {
|
||||
let new_pay_map =
|
||||
dict.insert(
|
||||
acc,
|
||||
value.zero(),
|
||||
Address(VerificationKeyCredential("00"), None),
|
||||
compare_value("", "", _, _),
|
||||
)
|
||||
dict.insert(acc, "", Address(VerificationKeyCredential("00"), None))
|
||||
|
||||
new_pay_map
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user