forked from SciSharp/Numpy.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNumPy_other.tests.cs
More file actions
44 lines (38 loc) · 1.14 KB
/
NumPy_other.tests.cs
File metadata and controls
44 lines (38 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) 2020 by Meinrad Recheis (Member of SciSharp)
// Code generated by CodeMinion: https://github.com/SciSharp/CodeMinion
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using Python.Runtime;
using Numpy.Models;
#if PYTHON_INCLUDED
using Python.Included;
#endif
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Assert = NUnit.Framework.Assert;
namespace Numpy.UnitTest
{
[TestClass]
public class NumPy_otherTest : BaseTestCase
{
[TestMethod]
public void rootsTest()
{
// >>> coeff = [3.2, 2, 1]
// >>> np.roots(coeff)
// array([-0.3125+0.46351241j, -0.3125-0.46351241j])
//
#if TODO
var given= coeff = [3.2, 2, 1];
given= np.roots(coeff);
var expected=
"array([-0.3125+0.46351241j, -0.3125-0.46351241j])";
Assert.AreEqual(expected, given.repr);
#endif
}
}
}