disable assert that was blocking issue #844
This commit is contained in:
26
examples/acceptance_tests/095/lib/foo.ak
Normal file
26
examples/acceptance_tests/095/lib/foo.ak
Normal file
@@ -0,0 +1,26 @@
|
||||
fn sum_relative_collateral_values(
|
||||
in_values: List<((ByteArray, ByteArray), Int)>,
|
||||
out_values: List<((ByteArray, ByteArray), Int)>,
|
||||
_collateral_is_swappable: Bool,
|
||||
acc: (Int, Int),
|
||||
) -> (Int, Int) {
|
||||
when (in_values, out_values) is {
|
||||
([(_inAsset, _inVal), ..], [(_outAsset, _outVal), ..]) -> acc
|
||||
|
||||
([(_, _inVal), ..], []) -> acc
|
||||
|
||||
([], [(_, _outVal), ..]) -> acc
|
||||
|
||||
([], []) -> acc
|
||||
}
|
||||
// This was the only thing changed.
|
||||
}
|
||||
|
||||
test thing() {
|
||||
(0, 0) == sum_relative_collateral_values(
|
||||
[(("", ""), 0)],
|
||||
[(("", ""), 0)],
|
||||
False,
|
||||
(0, 0),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user