use klever_sc_scenario::*; // These tests don't really test any contract, but the testing framework itslef. fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); blockchain.set_current_dir_from_workspace("framework/scenario"); blockchain } /// Checks that externalSteps work fine. #[test] fn external_steps_rs() { world().run("tests/scenarios-self/external_steps/external_steps.scen.json"); } #[test] #[should_panic] fn set_account_addr_len_err1_rs() { world().run("tests/scenarios-self/set-check/set-account-addr-len.err1.json"); } #[test] #[should_panic] fn set_account_addr_len_err2_rs() { world().run("tests/scenarios-self/set-check/set-account-addr-len.err2.json"); } #[test] #[should_panic] fn set_account_sc_addr_err1_rs() { world().run("tests/scenarios-self/set-check/set-account-sc-addr.err1.json"); } #[test] #[should_panic] fn set_account_sc_addr_err2_rs() { world().run("tests/scenarios-self/set-check/set-account-sc-addr.err2.json"); } #[test] #[should_panic] fn set_account_sc_addr_err3_rs() { world().run("tests/scenarios-self/set-check/set-account-sc-addr.err3.json"); } #[test] #[should_panic] fn set_check_balance_err_rs() { world().run("tests/scenarios-self/set-check/set-check-balance.err.json"); } #[test] fn set_check_balance_rs() { world().run("tests/scenarios-self/set-check/set-check-balance.scen.json"); } #[test] #[should_panic] fn set_check_code_err_rs() { world().run("tests/scenarios-self/set-check/set-check-code.err.json"); } #[test] fn set_check_code() { world().run("tests/scenarios-self/set-check/set-check-code.scen.json"); } #[test] #[should_panic] fn set_check_kda_err_rs() { world().run("tests/scenarios-self/set-check/set-check-kda.err1.json"); } #[test] fn set_check_kda_rs() { world().run("tests/scenarios-self/set-check/set-check-kda.scen.json"); } #[test] #[should_panic] fn set_check_nonce_err_rs() { world().run("tests/scenarios-self/set-check/set-check-nonce.err.json"); } #[test] fn set_check_nonce_rs() { world().run("tests/scenarios-self/set-check/set-check-nonce.scen.json"); } #[test] #[should_panic] fn set_check_storage_err1_rs() { world().run("tests/scenarios-self/set-check/set-check-storage.err1.json"); } #[test] #[should_panic] fn set_check_storage_err2_rs() { world().run("tests/scenarios-self/set-check/set-check-storage.err2.json"); } #[test] #[should_panic] fn set_check_storage_err3_rs() { world().run("tests/scenarios-self/set-check/set-check-storage.err3.json"); } #[test] #[should_panic] fn set_check_storage_err4_rs() { world().run("tests/scenarios-self/set-check/set-check-storage.err4.json"); } #[test] #[should_panic] fn set_check_storage_err5_rs() { world().run("tests/scenarios-self/set-check/set-check-storage.err5.json"); } #[test] fn set_check_storage_rs() { world().run("tests/scenarios-self/set-check/set-check-storage.scen.json"); } #[test] #[should_panic] fn set_check_username_err_rs() { world().run("tests/scenarios-self/set-check/set-check-username.err.json"); } #[test] fn set_check_username_rs() { world().run("tests/scenarios-self/set-check/set-check-username.scen.json"); } #[test] #[should_panic] fn kda_non_zero_balance_check_err_rs() { world().run("tests/scenarios-self/kda-non-zero-balance-check-err.scen.json"); } #[test] #[should_panic] fn kda_zero_balance_check_err_rs() { world().run("tests/scenarios-self/kda-zero-balance-check-err.scen.json"); } #[test] fn multi_transfer_kda_rs() { world().run("tests/scenarios-self/multi-transfer-kda.scen.json"); } #[test] fn transfer_klv_rs() { world().run("tests/scenarios-self/transfer-klv.scen.json"); } #[test] fn transfer_kda_rs() { world().run("tests/scenarios-self/transfer-kda.scen.json"); }