From 3fd2e73c35c07c4e082413fc1b1f5e7325d14a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Thu, 27 Jun 2024 14:20:31 -0700 Subject: [PATCH] adjust tests --- test/test_framework_test.go | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/test/test_framework_test.go b/test/test_framework_test.go index d5d782d0..d6530755 100644 --- a/test/test_framework_test.go +++ b/test/test_framework_test.go @@ -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())