From 9d101948abbfac4f3569eebe2489229e34e6e9b6 Mon Sep 17 00:00:00 2001 From: jangko Date: Wed, 20 May 2020 11:43:46 +0700 Subject: [PATCH] use 'const' instead of 'let' for module names in all_tests --- tests/all_tests.nim | 46 ++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/tests/all_tests.nim b/tests/all_tests.nim index f11819bc9..f1ed7533b 100644 --- a/tests/all_tests.nim +++ b/tests/all_tests.nim @@ -66,7 +66,7 @@ macro cliBuilder(stmtList: typed): untyped = result = quote do: if paramCount() == 0: - let names = `moduleNames` + const names = `moduleNames` quit(executeMyself(`moduleCount`, names)) else: disableParamFiltering() @@ -87,28 +87,28 @@ macro cliBuilder(stmtList: typed): untyped = # you can execute the sub-test by a number start from zero. cliBuilder: - import #./test_code_stream, - #./test_gas_meter, - #./test_memory, - #./test_stack, - #./test_genesis, - #./test_vm_json, - #./test_precompiles, - #./test_generalstate_json, - #./test_tracer_json, - #./test_persistblock_json, - #./test_rpc, # it crash if we combine it here - #./test_op_arith, - #./test_op_bit, - #./test_op_env, - #./test_op_memory, - #./test_op_misc, - #./test_op_custom, - #./test_state_db, - #./test_difficulty, - #./test_transaction_json, - #./test_blockchain_json, + import ./test_code_stream, + ./test_gas_meter, + ./test_memory, + ./test_stack, + ./test_genesis, + ./test_vm_json, + ./test_precompiles, + ./test_generalstate_json, + ./test_tracer_json, + ./test_persistblock_json, + ./test_rpc, # it crash if we combine it here + ./test_op_arith, + ./test_op_bit, + ./test_op_env, + ./test_op_memory, + ./test_op_misc, + ./test_op_custom, + ./test_state_db, + ./test_difficulty, + ./test_transaction_json, + ./test_blockchain_json, ../stateless/test_witness_keys, - #../stateless/test_block_witness, + ../stateless/test_block_witness, ../stateless/test_witness_json