Client: rm attic/fail.tz (duplicate from macros/fail.tz) & improve TODO messages

This commit is contained in:
b 2018-11-09 11:49:56 +01:00 committed by Benjamin Canou
parent e8fd44dca4
commit 87be7df584
No known key found for this signature in database
GPG Key ID: 73607948459DC5F8
5 changed files with 18 additions and 26 deletions

View File

@ -1,5 +0,0 @@
parameter unit;
storage unit;
code
{ # This contract will never accept a incoming transaction
FAIL};

View File

@ -44,24 +44,16 @@ assert_storage $contract_attic_dir/reverse.tz '{""}' '{ "c" ; "b" ; "a" }' '{ "a
assert_storage $contract_attic_dir/loop_left.tz '{""}' '{}' '{}'
assert_storage $contract_attic_dir/loop_left.tz '{""}' '{ "c" ; "b" ; "a" }' '{ "a" ; "b" ; "c" }'
# TODO [a-k] contracts in attic
# List of transactions
# TODO
# Queue
# TODO
# Reduce map
# TODO
# Reentrancy
# TODO
# Spawn identities
# TODO
# TODO add tests for
# accounts.tz, add1_list.tz, add1.tz, after_strategy.tz, always.tz,
# append.tz, at_least.tz, auction.tz, bad_lockup.tz,
# big_map_union.tz, cadr_annotation.tz, concat.tz, conditionals.tz,
# cons_twice.tz, cps_fact.tz, create_add1_lists.tz,
# data_publisher.tz, dispatch.tz, empty.tz, fail_amount.tz,
# faucet.tz, forward.tz, id.tz, infinite_loop.tz,
# insertion_sort.tz, int_publisher.tz, king_of_tez.tz,
# list_of_transactions.tz, queue.tz, reduce_map.tz, reentrancy.tz,
# spawn_identities.tz
printf "\nEnd of test\n"

View File

@ -30,7 +30,7 @@ if [ ! $NO_TYPECHECK ] ; then
printf "All contracts are well typed\n\n"
fi
# TODO macro_annotations.tz, min.tz, pair_macro.tz, take_my_money.tz, unpair_macro.tz
# TODO add tests for fail.tz, macro_annotations.tz, min.tz, pair_macro.tz, take_my_money.tz, unpair_macro.tz
# FORMAT: assert_output contract_file storage input expected_result

View File

@ -32,8 +32,10 @@ fi
# FORMAT: assert_output contract_file storage input expected_result
# TODO lockup, originator, parameterized_multisig, reservoir, scrutable_reservoir,
# TODO weather_insurance, xcat_dapp, xcat
# TODO add tests for the following contracts
# lockup, originator, parameterized_multisig, reservoir, scrutable_reservoir,
# weather_insurance, xcat_dapp, xcat
# NB: hardlimit.tz is tested in test_basic.sh
# Test replay prevention
init_with_transfer $contract_scenarios_dir/replay.tz $key2 Unit 0 bootstrap1

View File

@ -32,6 +32,9 @@ fi
# FORMAT: assert_output contract_file storage input expected_result
# TODO add tests for map_car.tz, subset.tz
# NB: noop.tz is tested in test_basic.sh
assert_storage $contract_op_dir/ret_int.tz None Unit '(Some 300)'