| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,7 @@ | |||
| 1 | 1 | using System; | |
| 2 | 2 | using System.Collections.Generic; | |
| 3 | + using System.Linq; | ||
| 4 | + | ||
| 3 | 5 | using NUnit.Framework; | |
| 4 | 6 | ||
| 5 | 7 | using Python.Runtime; | |
@@ -63,9 +65,14 @@ public void TestConvertDoubleToManaged( | |||
| 63 | 65 | [Test] | |
| 64 | 66 | public void CovertTypeError() | |
| 65 | 67 | { | |
| 68 | + Type[] floatTypes = new Type[] | ||
| 69 | + { | ||
| 70 | + typeof(float), | ||
| 71 | + typeof(double) | ||
| 72 | + }; | ||
| 66 | 73 | using (var s = new PyString("abc")) | |
| 67 | 74 | { | |
| 68 | - foreach (var type in _numTypes) | ||
| 75 | + foreach (var type in _numTypes.Union(floatTypes)) | ||
| 69 | 76 | { | |
| 70 | 77 | object value; | |
| 71 | 78 | try | |
| Back | FazBrowse Home | New Git URL |
0 commit comments