// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // using System; using System.Numerics; internal partial class VectorTest { private static int VectorIntEquals() { const int Pass = 100; const int Fail = -1; Vector A = new Vector(3); Vector B = new Vector(3); Vector C = new Vector(5); bool result = A.Equals(B); if (!result) { return Fail; } result = A.Equals(C); if (result) { return Fail; } if (A.Equals(Vector.Zero)) { return Fail; } if (!Vector.Zero.Equals(Vector.Zero)) { return Fail; } if (Vector.Zero.Equals(B)) { return Fail; } if (!(A == B)) { return Fail; } if (A == Vector.Zero) { return Fail; } if (!(A != Vector.Zero)) { return Fail; } if (A != B) { return Fail; } if (!(A != C)) { return Fail; } if (!(Vector.Zero != A)) { return Fail; } if (Vector.Zero != Vector.Zero) { return Fail; } return Pass; } private static int Main() { return VectorIntEquals(); } }