Skip to content

Commit

Permalink
fixup! More enums tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tzakian committed Jun 28, 2024
1 parent 39db52c commit 88c22d9
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,18 +240,18 @@ task 9 'programmable'. lines 190-191:
mutated: object(_), object(2,8)
gas summary: computation_cost: 500000, storage_cost: 3967200, storage_rebate: 2949408, non_refundable_storage_fee: 29792

task 10 'programmable'. lines 193-197:
task 10 'programmable'. lines 193-198:
mutated: object(_), object(2,8)
gas summary: computation_cost: 500000, storage_cost: 3967200, storage_rebate: 2949408, non_refundable_storage_fee: 29792

task 11 'programmable'. lines 199-200:
task 11 'programmable'. lines 199-202:
Error: Transaction Effects Status: MoveAbort(MoveLocation { module: ModuleId { address: test, name: Identifier("m") }, function: 14, instruction: 18, function_name: Some("check_") }, 0) in command 0
Execution Error: MoveAbort(MoveLocation { module: ModuleId { address: test, name: Identifier("m") }, function: 14, instruction: 18, function_name: Some("check_") }, 0) in command 0

task 12 'programmable'. lines 202-203:
task 12 'programmable'. lines 203-206:
Error: Transaction Effects Status: MoveAbort(MoveLocation { module: ModuleId { address: sui, name: Identifier("dynamic_field") }, function: 11, instruction: 0, function_name: Some("borrow_child_object") }, 1) in command 0
Execution Error: MoveAbort(MoveLocation { module: ModuleId { address: sui, name: Identifier("dynamic_field") }, function: 11, instruction: 0, function_name: Some("borrow_child_object") }, 1) in command 0

task 13 'programmable'. lines 205-206:
task 13 'programmable'. lines 207-208:
Error: Transaction Effects Status: MoveAbort(MoveLocation { module: ModuleId { address: test, name: Identifier("m") }, function: 14, instruction: 26, function_name: Some("check_") }, 0) in command 0
Execution Error: MoveAbort(MoveLocation { module: ModuleId { address: test, name: Identifier("m") }, function: 14, instruction: 26, function_name: Some("check_") }, 0) in command 0
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,17 @@ module test::m {
//# programmable --sender A --inputs object(2,8)@4 vector[] --dev-inspect
//> test::m::check(Input(0), Input(1))


// dev-inspect with 'check' and _incorrect_ values

// Should fail since the field exists but with a different field.
//# programmable --sender A --inputs object(2,8)@3 vector[0] --dev-inspect
//> test::m::check(Input(0), Input(1))

// Should fail since the field has been deleted.
//# programmable --sender A --inputs object(2,8)@4 vector[112] --dev-inspect
//> test::m::check(Input(0), Input(1))

// Should fail since at the version of the object we're passing in the field exists still
//# programmable --sender A --inputs object(2,8)@2 vector[] --dev-inspect
//> test::m::check(Input(0), Input(1))

Original file line number Diff line number Diff line change
Expand Up @@ -216,18 +216,18 @@ task 9 'programmable'. lines 157-158:
mutated: object(_), object(2,8)
gas summary: computation_cost: 500000, storage_cost: 3936800, storage_rebate: 2919312, non_refundable_storage_fee: 29488

task 10 'programmable'. lines 160-164:
task 10 'programmable'. lines 160-165:
mutated: object(_), object(2,8)
gas summary: computation_cost: 500000, storage_cost: 3936800, storage_rebate: 2919312, non_refundable_storage_fee: 29488

task 11 'programmable'. lines 166-167:
task 11 'programmable'. lines 166-169:
Error: Transaction Effects Status: MoveAbort(MoveLocation { module: ModuleId { address: test, name: Identifier("m") }, function: 12, instruction: 12, function_name: Some("check_") }, 0) in command 0
Execution Error: MoveAbort(MoveLocation { module: ModuleId { address: test, name: Identifier("m") }, function: 12, instruction: 12, function_name: Some("check_") }, 0) in command 0

task 12 'programmable'. lines 169-170:
task 12 'programmable'. lines 170-173:
Error: Transaction Effects Status: MoveAbort(MoveLocation { module: ModuleId { address: sui, name: Identifier("dynamic_field") }, function: 11, instruction: 0, function_name: Some("borrow_child_object") }, 1) in command 0
Execution Error: MoveAbort(MoveLocation { module: ModuleId { address: sui, name: Identifier("dynamic_field") }, function: 11, instruction: 0, function_name: Some("borrow_child_object") }, 1) in command 0

task 13 'programmable'. lines 172-173:
task 13 'programmable'. lines 174-175:
Error: Transaction Effects Status: MoveAbort(MoveLocation { module: ModuleId { address: test, name: Identifier("m") }, function: 12, instruction: 20, function_name: Some("check_") }, 0) in command 0
Execution Error: MoveAbort(MoveLocation { module: ModuleId { address: test, name: Identifier("m") }, function: 12, instruction: 20, function_name: Some("check_") }, 0) in command 0
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,16 @@ module test::m {
//# programmable --sender A --inputs object(2,8)@4 vector[] --dev-inspect
//> test::m::check(Input(0), Input(1))


// dev-inspect with 'check' and _incorrect_ values

// Should fail since the field exists but with a different field.
//# programmable --sender A --inputs object(2,8)@3 vector[0] --dev-inspect
//> test::m::check(Input(0), Input(1))

// Should fail since the field has been deleted.
//# programmable --sender A --inputs object(2,8)@4 vector[112] --dev-inspect
//> test::m::check(Input(0), Input(1))

// Should fail since at the version of the object we're passing in the field exists still
//# programmable --sender A --inputs object(2,8)@2 vector[] --dev-inspect
//> test::m::check(Input(0), Input(1))
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ task 9 'programmable'. lines 243-244:
mutated: object(_), object(2,9)
gas summary: computation_cost: 500000, storage_cost: 2234400, storage_rebate: 1233936, non_refundable_storage_fee: 12464

task 10 'programmable'. lines 246-250:
task 10 'programmable'. lines 246-251:
mutated: object(_), object(2,9)
gas summary: computation_cost: 500000, storage_cost: 2234400, storage_rebate: 1233936, non_refundable_storage_fee: 12464

task 11 'programmable'. lines 252-253:
task 11 'programmable'. lines 252-255:
Error: Transaction Effects Status: MoveAbort(MoveLocation { module: ModuleId { address: test, name: Identifier("m") }, function: 15, instruction: 12, function_name: Some("check_") }, 0) in command 0
Execution Error: MoveAbort(MoveLocation { module: ModuleId { address: test, name: Identifier("m") }, function: 15, instruction: 12, function_name: Some("check_") }, 0) in command 0

task 12 'programmable'. lines 255-256:
task 12 'programmable'. lines 256-259:
Error: Transaction Effects Status: MoveAbort(MoveLocation { module: ModuleId { address: sui, name: Identifier("dynamic_field") }, function: 11, instruction: 0, function_name: Some("borrow_child_object") }, 1) in command 0
Execution Error: MoveAbort(MoveLocation { module: ModuleId { address: sui, name: Identifier("dynamic_field") }, function: 11, instruction: 0, function_name: Some("borrow_child_object") }, 1) in command 0

task 13 'programmable'. lines 258-259:
task 13 'programmable'. lines 260-261:
Error: Transaction Effects Status: MoveAbort(MoveLocation { module: ModuleId { address: test, name: Identifier("m") }, function: 15, instruction: 20, function_name: Some("check_") }, 0) in command 0
Execution Error: MoveAbort(MoveLocation { module: ModuleId { address: test, name: Identifier("m") }, function: 15, instruction: 20, function_name: Some("check_") }, 0) in command 0
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,16 @@ module test::m {
//# programmable --sender A --inputs object(2,9)@4 vector[] --dev-inspect
//> test::m::check(Input(0), Input(1))


// dev-inspect with 'check' and _incorrect_ values

// Should fail since the field exists but with a different field.
//# programmable --sender A --inputs object(2,9)@3 vector[0] --dev-inspect
//> test::m::check(Input(0), Input(1))

// Should fail since the field has been deleted.
//# programmable --sender A --inputs object(2,9)@4 vector[112] --dev-inspect
//> test::m::check(Input(0), Input(1))

// Should fail since at the version of the object we're passing in the field exists still
//# programmable --sender A --inputs object(2,9)@2 vector[] --dev-inspect
//> test::m::check(Input(0), Input(1))

0 comments on commit 88c22d9

Please sign in to comment.