Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Jun 27, 2024
1 parent 88ee3a2 commit 3fd2e73
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions test/test_framework_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,17 +701,27 @@ func TestImportContract(t *testing.T) {
// Test access of methods & fields from deployed contract
Test.assertEqual("Hi from BarContract", BarContract.sayHi())
Test.assertEqual(/public/BarContractPublicPath, BarContract.publicPath)
Test.assertEqual(
["one", "two", "three"],
BarContract.proposals
)
// TODO:
//Test.assertEqual(
// &["one", "two", "three"] as &[String],
// BarContract.proposals
//)
Test.assertEqual("one", BarContract.proposals[0])
Test.assertEqual("two", BarContract.proposals[1])
Test.assertEqual("three", BarContract.proposals[2])
// Test access of methods & fields from deployed contract
Test.assertEqual("Hi from FooContract", FooContract.sayHi())
Test.assertEqual(
{1: "one", 2: "two", 3: "three"},
FooContract.numbers
)
// TODO:
//Test.assertEqual(
// &{1: "one", 2: "two", 3: "three"} as &{Int: String},
// FooContract.numbers
//)
Test.assertEqual("one" as String?, FooContract.numbers[1])
Test.assertEqual("two" as String?, FooContract.numbers[2])
Test.assertEqual("three" as String?, FooContract.numbers[3])
// Test access of methods & fields from deployed contract
Test.assertEqual("Hi from BazContract", BazContract.sayHi())
Expand Down

0 comments on commit 3fd2e73

Please sign in to comment.