We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ff8f3d commit 9dcfb77Copy full SHA for 9dcfb77
unity/test/Src/Cases/Python/CrossLang/GenericTest.cs
@@ -25,6 +25,22 @@ public void ListGenericPythonTest()
25
Assert.AreEqual(res, 6);
26
pythonEnv.Dispose();
27
}
28
+
29
+ [Test]
30
+ public void ListGenericWrapperPythonTest()
31
+ {
32
+ var pythonEnv = new ScriptEnv(new BackendPython());
33
+ var res = pythonEnv.Eval<int>(@"
34
+exec('''
35
+import System.Collections.Generic.List as List
36
+import System.String as String
37
+ListString = List[String]
38
+ls = ListString()
39
+ls.Add('hello')
40
+'')
41
+");
42
+ pythonEnv.Dispose();
43
+ }
44
45
[Test]
46
public void StaticGenericMethodPythonTest()
0 commit comments