Ejemplo n.º 1
0
        public void IVector_Div_Scalar(IVector factory, double[] op1Data, double op2Data, double[] expected)
        {
            IVector v1 = factory.FromArray(op1Data);

            IVector actual = v1.Div(op2Data);

            _out.WriteLine("Length of data");
            Assert.Equal(expected.Length, actual.Count);
            for (int i = 0; i < expected.Length; i++)
            {
                _out.WriteLine($"ex: {expected[i]}, ac: {actual[i]}");
                Assert.Equal(expected[i], actual[i]);
            }
        }