Skip to content

Commit

Permalink
Renamed contract 'mandos' folders to 'scenarios'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Dec 27, 2022
1 parent c6b70e2 commit 0960061
Show file tree
Hide file tree
Showing 742 changed files with 1,163 additions and 1,574 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#[test]
fn linked_list_repeat_struct_go() {
mx_sc_debug::mandos_go("mandos/linked_list_repeat_struct.scen.json");
mx_sc_debug::mandos_go("scenarios/linked_list_repeat_struct.scen.json");
}

#[test]
fn linked_list_repeat_go() {
mx_sc_debug::mandos_go("mandos/linked_list_repeat.scen.json");
mx_sc_debug::mandos_go("scenarios/linked_list_repeat.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ fn world() -> BlockchainMock {

#[test]
fn linked_list_repeat_struct_rs() {
mx_sc_debug::mandos_rs("mandos/linked_list_repeat_struct.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/linked_list_repeat_struct.scen.json", world());
}

#[test]
fn linked_list_repeat_rs() {
mx_sc_debug::mandos_rs("mandos/linked_list_repeat.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/linked_list_repeat.scen.json", world());
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#[test]
fn map_repeat_struct_go() {
mx_sc_debug::mandos_go("mandos/map_repeat_struct.scen.json");
mx_sc_debug::mandos_go("scenarios/map_repeat_struct.scen.json");
}

#[test]
fn map_repeat_go() {
mx_sc_debug::mandos_go("mandos/map_repeat.scen.json");
mx_sc_debug::mandos_go("scenarios/map_repeat.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ fn world() -> BlockchainMock {

#[test]
fn map_repeat_struct_rs() {
mx_sc_debug::mandos_rs("mandos/map_repeat_struct.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/map_repeat_struct.scen.json", world());
}

#[test]
fn map_repeat_rs() {
mx_sc_debug::mandos_rs("mandos/map_repeat.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/map_repeat.scen.json", world());
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[test]
fn queue_repeat_go() {
mx_sc_debug::mandos_go("mandos/queue_repeat.scen.json");
mx_sc_debug::mandos_go("scenarios/queue_repeat.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ fn world() -> BlockchainMock {

#[test]
fn queue_repeat_struct_rs() {
mx_sc_debug::mandos_rs("mandos/queue_repeat_struct.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/queue_repeat_struct.scen.json", world());
}

#[test]
fn queue_repeat_rs() {
mx_sc_debug::mandos_rs("mandos/queue_repeat.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/queue_repeat.scen.json", world());
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#[test]
fn set_repeat_struct_go() {
mx_sc_debug::mandos_go("mandos/set_repeat_struct.scen.json");
mx_sc_debug::mandos_go("scenarios/set_repeat_struct.scen.json");
}

#[test]
fn set_repeat_go() {
mx_sc_debug::mandos_go("mandos/set_repeat.scen.json");
mx_sc_debug::mandos_go("scenarios/set_repeat.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ fn world() -> BlockchainMock {

#[test]
fn set_repeat_struct_rs() {
mx_sc_debug::mandos_rs("mandos/set_repeat_struct.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/set_repeat_struct.scen.json", world());
}

#[test]
fn set_repeat_rs() {
mx_sc_debug::mandos_rs("mandos/set_repeat.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/set_repeat.scen.json", world());
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#[test]
fn single_value_repeat_struct_go() {
mx_sc_debug::mandos_go("mandos/single_value_repeat_struct.scen.json");
mx_sc_debug::mandos_go("scenarios/single_value_repeat_struct.scen.json");
}

#[test]
fn single_value_repeat_go() {
mx_sc_debug::mandos_go("mandos/single_value_repeat.scen.json");
mx_sc_debug::mandos_go("scenarios/single_value_repeat.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ fn world() -> BlockchainMock {

#[test]
fn single_value_repeat_struct_rs() {
mx_sc_debug::mandos_rs("mandos/single_value_repeat_struct.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/single_value_repeat_struct.scen.json", world());
}

#[test]
fn single_value_repeat_rs() {
mx_sc_debug::mandos_rs("mandos/single_value_repeat.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/single_value_repeat.scen.json", world());
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#[test]
fn vec_repeat_struct_go() {
mx_sc_debug::mandos_go("mandos/vec_repeat_struct.scen.json");
mx_sc_debug::mandos_go("scenarios/vec_repeat_struct.scen.json");
}

#[test]
fn vec_repeat_go() {
mx_sc_debug::mandos_go("mandos/vec_repeat.scen.json");
mx_sc_debug::mandos_go("scenarios/vec_repeat.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ fn world() -> BlockchainMock {

#[test]
fn vec_repeat_struct_rs() {
mx_sc_debug::mandos_rs("mandos/vec_repeat_struct.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/vec_repeat_struct.scen.json", world());
}

#[test]
fn vec_repeat_rs() {
mx_sc_debug::mandos_rs("mandos/vec_repeat.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/vec_repeat.scen.json", world());
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[test]
fn send_tx_repeat_go() {
mx_sc_debug::mandos_go("mandos/send_tx_repeat.scen.json");
mx_sc_debug::mandos_go("scenarios/send_tx_repeat.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ fn world() -> BlockchainMock {

#[test]
fn send_tx_repeat_mandos_rs() {
mx_sc_debug::mandos_rs("mandos/send_tx_repeat.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/send_tx_repeat.scen.json", world());
}
2 changes: 1 addition & 1 deletion contracts/benchmarks/str-repeat/tests/mandos_go_test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[test]
fn str_repeat_go() {
mx_sc_debug::mandos_go("mandos/str_repeat.scen.json");
mx_sc_debug::mandos_go("scenarios/str_repeat.scen.json");
}
2 changes: 1 addition & 1 deletion contracts/benchmarks/str-repeat/tests/mandos_rs_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ fn world() -> BlockchainMock {

#[test]
fn test_str_repeat_mandos_rs() {
mx_sc_debug::mandos_rs("mandos/str_repeat.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/str_repeat.scen.json", world());
}
4 changes: 2 additions & 2 deletions contracts/core/wegld-swap/tests/mandos_go_test.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#[test]
fn unwrap_egld_go() {
mx_sc_debug::mandos_go("mandos/unwrap_egld.scen.json");
mx_sc_debug::mandos_go("scenarios/unwrap_egld.scen.json");
}

#[test]
fn wrap_egld_go() {
mx_sc_debug::mandos_go("mandos/wrap_egld.scen.json");
mx_sc_debug::mandos_go("scenarios/wrap_egld.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn adder_mandos_constructed() {
.execute(&mut world);
assert_eq!(new_address, adder_contract.to_address());

// mandos query, gets saved in the trace
// query, gets saved in the trace
let result: SingleValue<BigUint> = adder_contract.sum().into_vm_query().execute(&mut world);
assert_eq!(result.into(), BigUint::from(5u32));

Expand Down
2 changes: 1 addition & 1 deletion contracts/examples/adder/tests/adder_mandos_go_test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[test]
fn adder_go() {
mx_sc_debug::mandos_go("mandos/adder.scen.json");
mx_sc_debug::mandos_go("scenarios/adder.scen.json");
}
2 changes: 1 addition & 1 deletion contracts/examples/adder/tests/adder_mandos_rs_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ fn world() -> BlockchainMock {

#[test]
fn adder_rs() {
mx_sc_debug::mandos_rs("mandos/adder.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/adder.scen.json", world());
}
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
#[test]
fn deploy_rs() {
mx_sc_debug::mandos_go("mandos/deploy.scen.json");
mx_sc_debug::mandos_go("scenarios/deploy.scen.json");
}

#[test]
fn deposit_rs() {
mx_sc_debug::mandos_go("mandos/deposit.scen.json");
mx_sc_debug::mandos_go("scenarios/deposit.scen.json");
}

#[test]
fn set_bonding_curve_rs() {
mx_sc_debug::mandos_go("mandos/set_bonding_curve.scen.json");
mx_sc_debug::mandos_go("scenarios/set_bonding_curve.scen.json");
}

#[test]
fn buy_rs() {
mx_sc_debug::mandos_go("mandos/buy.scen.json");
mx_sc_debug::mandos_go("scenarios/buy.scen.json");
}

#[test]
fn sell_rs() {
mx_sc_debug::mandos_go("mandos/sell.scen.json");
mx_sc_debug::mandos_go("scenarios/sell.scen.json");
}

#[test]
fn deposit_more_view_rs() {
mx_sc_debug::mandos_go("mandos/deposit_more_view.scen.json");
mx_sc_debug::mandos_go("scenarios/deposit_more_view.scen.json");
}

#[test]
fn claim_rs() {
mx_sc_debug::mandos_go("mandos/claim.scen.json");
mx_sc_debug::mandos_go("scenarios/claim.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,35 @@ fn world() -> BlockchainMock {

#[test]
fn deploy_rs() {
mx_sc_debug::mandos_rs("mandos/deploy.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/deploy.scen.json", world());
}

#[test]
fn deposit_rs() {
mx_sc_debug::mandos_rs("mandos/deposit.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/deposit.scen.json", world());
}

#[test]
fn set_bonding_curve_rs() {
mx_sc_debug::mandos_rs("mandos/set_bonding_curve.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/set_bonding_curve.scen.json", world());
}

#[test]
fn buy_rs() {
mx_sc_debug::mandos_rs("mandos/buy.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/buy.scen.json", world());
}

#[test]
fn sell_rs() {
mx_sc_debug::mandos_rs("mandos/sell.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/sell.scen.json", world());
}

#[test]
fn deposit_more_view_rs() {
mx_sc_debug::mandos_rs("mandos/deposit_more_view.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/deposit_more_view.scen.json", world());
}

#[test]
fn claim_rs() {
mx_sc_debug::mandos_rs("mandos/claim.scen.json", world());
mx_sc_debug::mandos_rs("scenarios/claim.scen.json", world());
}
2 changes: 1 addition & 1 deletion contracts/examples/crowdfunding-esdt/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
output

# Mandos tests generated by the Rust tests
mandos-gen
scenarios-gen
Loading

0 comments on commit 0960061

Please sign in to comment.