MystenLabs / sui

Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language
https://sui.io
Apache License 2.0
6.27k stars 11.21k forks source link

Allow to call `init` and debug inner field in a test module #20389

Open yanganto opened 3 days ago

yanganto commented 3 days ago

Steps to Reproduce Issue

The following repo shows the restrictions about the testcase in a different file. https://github.com/yanganto/SuiMoveTestIssue

The demo1 and demo2 are the same, and the testcases are the same, the only different is one is in the module and the other is in the test module.

  1. Call sui move test under /demo1
  2. Call sui move test under /demo2

Expected Result

Expected the demo2 should pass. Specify what outcome you expected should have resulted, but didn't.

Actual Result

The test of demo2 fails, due to the visibility issue.

System Information