Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9845e98

Browse files
committed
Test convert error for float types
1 parent0e4668c commit9845e98

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎src/embed_tests/TestConverter.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
usingSystem;
22
usingSystem.Collections.Generic;
3+
usingSystem.Linq;
4+
35
usingNUnit.Framework;
46

57
usingPython.Runtime;
@@ -63,9 +65,14 @@ public void TestConvertDoubleToManaged(
6365
[Test]
6466
publicvoidCovertTypeError()
6567
{
68+
Type[]floatTypes=newType[]
69+
{
70+
typeof(float),
71+
typeof(double)
72+
};
6673
using(vars=newPyString("abc"))
6774
{
68-
foreach(vartypein_numTypes)
75+
foreach(vartypein_numTypes.Union(floatTypes))
6976
{
7077
objectvalue;
7178
try

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp