Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroProofs committed Jun 22, 2023
1 parent 626033f commit 5362714
Showing 1 changed file with 55 additions and 55 deletions.
110 changes: 55 additions & 55 deletions examples/acceptance_tests/083/lib/tests.ak
Original file line number Diff line number Diff line change
Expand Up @@ -55,58 +55,58 @@ test dict_test1() {
)
}

// test dict_test2() {
// let offer_input_ref = OutputReference(TransactionId("00"), 0)
// let ask_input_ref = OutputReference(TransactionId("00"), 1)
// let pairings =
// [(ask_input_ref, offer_input_ref)]

// 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("", "", _, _),
// )

// new_pay_map
// }

// let pay_map = list.foldl(pairings, dict.new(), foo)

// pay_map == dict.new()
// }

// test dict_test3() {
// let offer_input_ref = OutputReference(TransactionId("00"), 0)
// let ask_input_ref = OutputReference(TransactionId("00"), 1)
// let pairings =
// [(ask_input_ref, offer_input_ref)]

// let (ask_map, asize, offer_map, osize) =
// (
// dict.from_list([(ask_input_ref, transaction.NoDatum)], compare_out_ref),
// 1,
// dict.from_list([(offer_input_ref, transaction.NoDatum)], compare_out_ref),
// 1,
// )

// 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("", "", _, _),
// )

// new_pay_map
// }

// let pay_map = list.foldl(pairings, dict.new(), foo)

// pay_map == dict.new()
// }
test dict_test2() {
let offer_input_ref = OutputReference(TransactionId("00"), 0)
let ask_input_ref = OutputReference(TransactionId("00"), 1)
let pairings =
[(ask_input_ref, offer_input_ref)]

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("", "", _, _),
)

new_pay_map
}

let pay_map = list.foldl(pairings, dict.new(), foo)

pay_map != dict.new()
}

test dict_test3() {
let offer_input_ref = OutputReference(TransactionId("00"), 0)
let ask_input_ref = OutputReference(TransactionId("00"), 1)
let pairings =
[(ask_input_ref, offer_input_ref)]

let (ask_map, asize, offer_map, osize) =
(
dict.from_list([(ask_input_ref, transaction.NoDatum)], compare_out_ref),
1,
dict.from_list([(offer_input_ref, transaction.NoDatum)], compare_out_ref),
1,
)

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("", "", _, _),
)

new_pay_map
}

let pay_map = list.foldl(pairings, dict.new(), foo)

pay_map != dict.new()
}

0 comments on commit 5362714

Please sign in to comment.