Firstborn/Library/PackageCache/com.unity.mathematics@1.2.6/Tests/Tests/Shared/TestBool3x4.gen.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

408 lines
23 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using NUnit.Framework;
using static Unity.Mathematics.math;
using Burst.Compiler.IL.Tests;
namespace Unity.Mathematics.Tests
{
[TestFixture]
public class TestBool3x4
{
[TestCompiler]
public static void bool3x4_operator_equal_wide_wide()
{
bool3x4 a0 = bool3x4(true, false, true, false, false, true, false, false, true, false, true, false);
bool3x4 b0 = bool3x4(true, false, false, false, true, false, false, true, false, false, false, false);
bool3x4 r0 = bool3x4(true, true, false, true, false, false, true, false, false, true, false, true);
TestUtils.AreEqual(r0, a0 == b0);
bool3x4 a1 = bool3x4(true, true, false, true, true, false, false, true, true, true, false, true);
bool3x4 b1 = bool3x4(true, false, false, false, true, false, false, true, false, true, false, true);
bool3x4 r1 = bool3x4(true, false, true, false, true, true, true, true, false, true, true, true);
TestUtils.AreEqual(r1, a1 == b1);
bool3x4 a2 = bool3x4(true, true, false, true, true, true, false, true, false, true, false, true);
bool3x4 b2 = bool3x4(true, true, true, true, true, false, false, false, false, true, false, false);
bool3x4 r2 = bool3x4(true, true, false, true, true, false, true, false, true, true, true, false);
TestUtils.AreEqual(r2, a2 == b2);
bool3x4 a3 = bool3x4(false, true, true, false, true, false, false, false, false, true, true, false);
bool3x4 b3 = bool3x4(true, true, false, true, false, false, false, true, true, true, true, false);
bool3x4 r3 = bool3x4(false, true, false, false, false, true, true, false, false, true, true, true);
TestUtils.AreEqual(r3, a3 == b3);
}
[TestCompiler]
public static void bool3x4_operator_equal_wide_scalar()
{
bool3x4 a0 = bool3x4(false, true, false, false, false, false, true, false, false, false, true, true);
bool b0 = (true);
bool3x4 r0 = bool3x4(false, true, false, false, false, false, true, false, false, false, true, true);
TestUtils.AreEqual(r0, a0 == b0);
bool3x4 a1 = bool3x4(false, false, true, false, false, false, true, false, false, false, false, false);
bool b1 = (true);
bool3x4 r1 = bool3x4(false, false, true, false, false, false, true, false, false, false, false, false);
TestUtils.AreEqual(r1, a1 == b1);
bool3x4 a2 = bool3x4(false, false, false, false, false, false, true, true, false, false, false, false);
bool b2 = (false);
bool3x4 r2 = bool3x4(true, true, true, true, true, true, false, false, true, true, true, true);
TestUtils.AreEqual(r2, a2 == b2);
bool3x4 a3 = bool3x4(true, false, true, true, false, false, true, false, true, true, false, false);
bool b3 = (true);
bool3x4 r3 = bool3x4(true, false, true, true, false, false, true, false, true, true, false, false);
TestUtils.AreEqual(r3, a3 == b3);
}
[TestCompiler]
public static void bool3x4_operator_equal_scalar_wide()
{
bool a0 = (false);
bool3x4 b0 = bool3x4(true, false, true, false, false, true, false, false, true, false, true, true);
bool3x4 r0 = bool3x4(false, true, false, true, true, false, true, true, false, true, false, false);
TestUtils.AreEqual(r0, a0 == b0);
bool a1 = (false);
bool3x4 b1 = bool3x4(true, false, true, true, true, false, false, true, false, true, true, false);
bool3x4 r1 = bool3x4(false, true, false, false, false, true, true, false, true, false, false, true);
TestUtils.AreEqual(r1, a1 == b1);
bool a2 = (true);
bool3x4 b2 = bool3x4(true, true, true, true, true, false, true, true, false, false, false, true);
bool3x4 r2 = bool3x4(true, true, true, true, true, false, true, true, false, false, false, true);
TestUtils.AreEqual(r2, a2 == b2);
bool a3 = (true);
bool3x4 b3 = bool3x4(true, false, true, true, true, false, false, true, false, true, true, false);
bool3x4 r3 = bool3x4(true, false, true, true, true, false, false, true, false, true, true, false);
TestUtils.AreEqual(r3, a3 == b3);
}
[TestCompiler]
public static void bool3x4_operator_not_equal_wide_wide()
{
bool3x4 a0 = bool3x4(true, true, true, false, false, true, false, false, false, false, true, true);
bool3x4 b0 = bool3x4(true, false, false, false, true, false, false, false, false, true, true, true);
bool3x4 r0 = bool3x4(false, true, true, false, true, true, false, false, false, true, false, false);
TestUtils.AreEqual(r0, a0 != b0);
bool3x4 a1 = bool3x4(true, true, true, true, true, true, false, true, false, true, true, true);
bool3x4 b1 = bool3x4(false, false, true, true, true, false, true, true, false, false, true, false);
bool3x4 r1 = bool3x4(true, true, false, false, false, true, true, false, false, true, false, true);
TestUtils.AreEqual(r1, a1 != b1);
bool3x4 a2 = bool3x4(true, false, false, true, false, true, true, true, true, true, false, true);
bool3x4 b2 = bool3x4(false, false, true, false, true, false, true, false, false, false, false, false);
bool3x4 r2 = bool3x4(true, false, true, true, true, true, false, true, true, true, false, true);
TestUtils.AreEqual(r2, a2 != b2);
bool3x4 a3 = bool3x4(true, true, true, false, true, true, true, false, true, false, false, false);
bool3x4 b3 = bool3x4(false, true, false, true, false, true, false, false, false, true, false, false);
bool3x4 r3 = bool3x4(true, false, true, true, true, false, true, false, true, true, false, false);
TestUtils.AreEqual(r3, a3 != b3);
}
[TestCompiler]
public static void bool3x4_operator_not_equal_wide_scalar()
{
bool3x4 a0 = bool3x4(false, true, false, true, true, false, false, false, false, false, false, false);
bool b0 = (false);
bool3x4 r0 = bool3x4(false, true, false, true, true, false, false, false, false, false, false, false);
TestUtils.AreEqual(r0, a0 != b0);
bool3x4 a1 = bool3x4(false, false, false, false, false, true, true, false, true, true, true, true);
bool b1 = (true);
bool3x4 r1 = bool3x4(true, true, true, true, true, false, false, true, false, false, false, false);
TestUtils.AreEqual(r1, a1 != b1);
bool3x4 a2 = bool3x4(true, false, true, true, true, false, false, true, false, true, false, true);
bool b2 = (true);
bool3x4 r2 = bool3x4(false, true, false, false, false, true, true, false, true, false, true, false);
TestUtils.AreEqual(r2, a2 != b2);
bool3x4 a3 = bool3x4(false, false, true, true, true, false, false, true, false, true, false, true);
bool b3 = (false);
bool3x4 r3 = bool3x4(false, false, true, true, true, false, false, true, false, true, false, true);
TestUtils.AreEqual(r3, a3 != b3);
}
[TestCompiler]
public static void bool3x4_operator_not_equal_scalar_wide()
{
bool a0 = (true);
bool3x4 b0 = bool3x4(false, false, true, false, false, false, true, true, true, false, false, false);
bool3x4 r0 = bool3x4(true, true, false, true, true, true, false, false, false, true, true, true);
TestUtils.AreEqual(r0, a0 != b0);
bool a1 = (false);
bool3x4 b1 = bool3x4(false, true, false, false, true, false, false, false, true, true, false, false);
bool3x4 r1 = bool3x4(false, true, false, false, true, false, false, false, true, true, false, false);
TestUtils.AreEqual(r1, a1 != b1);
bool a2 = (true);
bool3x4 b2 = bool3x4(false, false, true, true, false, true, false, false, true, true, true, true);
bool3x4 r2 = bool3x4(true, true, false, false, true, false, true, true, false, false, false, false);
TestUtils.AreEqual(r2, a2 != b2);
bool a3 = (true);
bool3x4 b3 = bool3x4(true, true, true, false, false, true, true, false, false, false, true, true);
bool3x4 r3 = bool3x4(false, false, false, true, true, false, false, true, true, true, false, false);
TestUtils.AreEqual(r3, a3 != b3);
}
[TestCompiler]
public static void bool3x4_operator_bitwise_and_wide_wide()
{
bool3x4 a0 = bool3x4(false, false, true, true, false, false, true, true, true, false, true, true);
bool3x4 b0 = bool3x4(false, false, true, false, true, true, false, false, true, true, false, false);
bool3x4 r0 = bool3x4(false, false, true, false, false, false, false, false, true, false, false, false);
TestUtils.AreEqual(r0, a0 & b0);
bool3x4 a1 = bool3x4(true, true, false, false, true, true, true, false, true, true, false, true);
bool3x4 b1 = bool3x4(false, false, true, false, true, false, true, true, true, true, true, true);
bool3x4 r1 = bool3x4(false, false, false, false, true, false, true, false, true, true, false, true);
TestUtils.AreEqual(r1, a1 & b1);
bool3x4 a2 = bool3x4(true, false, true, true, true, false, false, true, true, false, false, true);
bool3x4 b2 = bool3x4(true, true, true, false, false, false, true, false, false, true, true, true);
bool3x4 r2 = bool3x4(true, false, true, false, false, false, false, false, false, false, false, true);
TestUtils.AreEqual(r2, a2 & b2);
bool3x4 a3 = bool3x4(true, false, true, false, false, false, true, false, false, true, false, true);
bool3x4 b3 = bool3x4(false, true, true, false, true, true, false, false, false, true, true, true);
bool3x4 r3 = bool3x4(false, false, true, false, false, false, false, false, false, true, false, true);
TestUtils.AreEqual(r3, a3 & b3);
}
[TestCompiler]
public static void bool3x4_operator_bitwise_and_wide_scalar()
{
bool3x4 a0 = bool3x4(true, false, false, true, true, false, false, false, false, false, true, true);
bool b0 = (true);
bool3x4 r0 = bool3x4(true, false, false, true, true, false, false, false, false, false, true, true);
TestUtils.AreEqual(r0, a0 & b0);
bool3x4 a1 = bool3x4(true, false, true, true, true, false, true, false, true, true, true, false);
bool b1 = (false);
bool3x4 r1 = bool3x4(false, false, false, false, false, false, false, false, false, false, false, false);
TestUtils.AreEqual(r1, a1 & b1);
bool3x4 a2 = bool3x4(false, false, false, true, false, true, false, false, false, false, true, false);
bool b2 = (false);
bool3x4 r2 = bool3x4(false, false, false, false, false, false, false, false, false, false, false, false);
TestUtils.AreEqual(r2, a2 & b2);
bool3x4 a3 = bool3x4(true, true, false, false, true, false, true, false, true, false, true, false);
bool b3 = (false);
bool3x4 r3 = bool3x4(false, false, false, false, false, false, false, false, false, false, false, false);
TestUtils.AreEqual(r3, a3 & b3);
}
[TestCompiler]
public static void bool3x4_operator_bitwise_and_scalar_wide()
{
bool a0 = (false);
bool3x4 b0 = bool3x4(false, false, true, true, true, false, true, false, false, false, true, false);
bool3x4 r0 = bool3x4(false, false, false, false, false, false, false, false, false, false, false, false);
TestUtils.AreEqual(r0, a0 & b0);
bool a1 = (false);
bool3x4 b1 = bool3x4(false, true, true, true, true, false, true, true, true, true, true, false);
bool3x4 r1 = bool3x4(false, false, false, false, false, false, false, false, false, false, false, false);
TestUtils.AreEqual(r1, a1 & b1);
bool a2 = (true);
bool3x4 b2 = bool3x4(false, true, false, false, false, true, true, true, true, true, false, true);
bool3x4 r2 = bool3x4(false, true, false, false, false, true, true, true, true, true, false, true);
TestUtils.AreEqual(r2, a2 & b2);
bool a3 = (false);
bool3x4 b3 = bool3x4(false, true, true, true, false, true, true, true, true, true, false, false);
bool3x4 r3 = bool3x4(false, false, false, false, false, false, false, false, false, false, false, false);
TestUtils.AreEqual(r3, a3 & b3);
}
[TestCompiler]
public static void bool3x4_operator_bitwise_or_wide_wide()
{
bool3x4 a0 = bool3x4(true, true, true, false, true, false, true, true, false, true, true, true);
bool3x4 b0 = bool3x4(false, false, false, false, true, true, true, false, false, true, false, false);
bool3x4 r0 = bool3x4(true, true, true, false, true, true, true, true, false, true, true, true);
TestUtils.AreEqual(r0, a0 | b0);
bool3x4 a1 = bool3x4(true, true, true, false, true, true, false, true, true, false, true, false);
bool3x4 b1 = bool3x4(true, true, true, true, true, true, false, true, true, true, false, true);
bool3x4 r1 = bool3x4(true, true, true, true, true, true, false, true, true, true, true, true);
TestUtils.AreEqual(r1, a1 | b1);
bool3x4 a2 = bool3x4(true, true, false, true, false, false, false, false, false, false, true, true);
bool3x4 b2 = bool3x4(false, true, false, false, true, true, true, true, false, false, false, true);
bool3x4 r2 = bool3x4(true, true, false, true, true, true, true, true, false, false, true, true);
TestUtils.AreEqual(r2, a2 | b2);
bool3x4 a3 = bool3x4(true, false, false, false, false, true, false, false, true, false, true, false);
bool3x4 b3 = bool3x4(false, false, false, true, false, false, true, true, true, true, true, false);
bool3x4 r3 = bool3x4(true, false, false, true, false, true, true, true, true, true, true, false);
TestUtils.AreEqual(r3, a3 | b3);
}
[TestCompiler]
public static void bool3x4_operator_bitwise_or_wide_scalar()
{
bool3x4 a0 = bool3x4(true, true, false, true, true, true, true, false, true, false, false, true);
bool b0 = (true);
bool3x4 r0 = bool3x4(true, true, true, true, true, true, true, true, true, true, true, true);
TestUtils.AreEqual(r0, a0 | b0);
bool3x4 a1 = bool3x4(false, true, false, true, true, true, true, true, true, true, true, false);
bool b1 = (false);
bool3x4 r1 = bool3x4(false, true, false, true, true, true, true, true, true, true, true, false);
TestUtils.AreEqual(r1, a1 | b1);
bool3x4 a2 = bool3x4(true, false, false, true, true, true, true, true, true, false, true, false);
bool b2 = (false);
bool3x4 r2 = bool3x4(true, false, false, true, true, true, true, true, true, false, true, false);
TestUtils.AreEqual(r2, a2 | b2);
bool3x4 a3 = bool3x4(false, false, true, false, true, true, false, true, true, false, true, false);
bool b3 = (true);
bool3x4 r3 = bool3x4(true, true, true, true, true, true, true, true, true, true, true, true);
TestUtils.AreEqual(r3, a3 | b3);
}
[TestCompiler]
public static void bool3x4_operator_bitwise_or_scalar_wide()
{
bool a0 = (true);
bool3x4 b0 = bool3x4(true, true, false, false, true, true, true, false, false, true, true, false);
bool3x4 r0 = bool3x4(true, true, true, true, true, true, true, true, true, true, true, true);
TestUtils.AreEqual(r0, a0 | b0);
bool a1 = (true);
bool3x4 b1 = bool3x4(true, false, false, false, false, true, true, true, true, true, false, true);
bool3x4 r1 = bool3x4(true, true, true, true, true, true, true, true, true, true, true, true);
TestUtils.AreEqual(r1, a1 | b1);
bool a2 = (false);
bool3x4 b2 = bool3x4(true, true, false, true, true, false, true, true, false, false, true, true);
bool3x4 r2 = bool3x4(true, true, false, true, true, false, true, true, false, false, true, true);
TestUtils.AreEqual(r2, a2 | b2);
bool a3 = (true);
bool3x4 b3 = bool3x4(false, false, false, false, false, false, true, true, false, true, true, true);
bool3x4 r3 = bool3x4(true, true, true, true, true, true, true, true, true, true, true, true);
TestUtils.AreEqual(r3, a3 | b3);
}
[TestCompiler]
public static void bool3x4_operator_bitwise_xor_wide_wide()
{
bool3x4 a0 = bool3x4(true, false, false, true, false, false, false, true, false, false, true, true);
bool3x4 b0 = bool3x4(true, true, false, true, false, true, false, true, false, false, false, true);
bool3x4 r0 = bool3x4(false, true, false, false, false, true, false, false, false, false, true, false);
TestUtils.AreEqual(r0, a0 ^ b0);
bool3x4 a1 = bool3x4(false, false, true, false, true, false, false, false, true, false, true, false);
bool3x4 b1 = bool3x4(false, false, true, true, false, false, false, false, false, true, false, false);
bool3x4 r1 = bool3x4(false, false, false, true, true, false, false, false, true, true, true, false);
TestUtils.AreEqual(r1, a1 ^ b1);
bool3x4 a2 = bool3x4(true, false, false, false, true, true, true, true, true, true, false, false);
bool3x4 b2 = bool3x4(false, true, false, true, true, false, false, true, false, true, true, false);
bool3x4 r2 = bool3x4(true, true, false, true, false, true, true, false, true, false, true, false);
TestUtils.AreEqual(r2, a2 ^ b2);
bool3x4 a3 = bool3x4(true, true, true, true, true, true, false, true, false, false, true, true);
bool3x4 b3 = bool3x4(true, false, false, false, false, true, false, true, false, true, true, true);
bool3x4 r3 = bool3x4(false, true, true, true, true, false, false, false, false, true, false, false);
TestUtils.AreEqual(r3, a3 ^ b3);
}
[TestCompiler]
public static void bool3x4_operator_bitwise_xor_wide_scalar()
{
bool3x4 a0 = bool3x4(false, false, true, true, false, false, false, false, false, false, false, true);
bool b0 = (false);
bool3x4 r0 = bool3x4(false, false, true, true, false, false, false, false, false, false, false, true);
TestUtils.AreEqual(r0, a0 ^ b0);
bool3x4 a1 = bool3x4(false, true, true, true, false, true, false, false, true, false, false, false);
bool b1 = (true);
bool3x4 r1 = bool3x4(true, false, false, false, true, false, true, true, false, true, true, true);
TestUtils.AreEqual(r1, a1 ^ b1);
bool3x4 a2 = bool3x4(true, true, true, true, true, false, true, false, false, true, true, false);
bool b2 = (false);
bool3x4 r2 = bool3x4(true, true, true, true, true, false, true, false, false, true, true, false);
TestUtils.AreEqual(r2, a2 ^ b2);
bool3x4 a3 = bool3x4(true, false, false, true, false, true, false, false, true, true, false, true);
bool b3 = (true);
bool3x4 r3 = bool3x4(false, true, true, false, true, false, true, true, false, false, true, false);
TestUtils.AreEqual(r3, a3 ^ b3);
}
[TestCompiler]
public static void bool3x4_operator_bitwise_xor_scalar_wide()
{
bool a0 = (true);
bool3x4 b0 = bool3x4(true, false, true, true, false, true, true, false, false, true, true, false);
bool3x4 r0 = bool3x4(false, true, false, false, true, false, false, true, true, false, false, true);
TestUtils.AreEqual(r0, a0 ^ b0);
bool a1 = (false);
bool3x4 b1 = bool3x4(true, false, true, true, false, true, true, true, false, false, false, true);
bool3x4 r1 = bool3x4(true, false, true, true, false, true, true, true, false, false, false, true);
TestUtils.AreEqual(r1, a1 ^ b1);
bool a2 = (true);
bool3x4 b2 = bool3x4(true, false, false, false, true, true, false, true, false, false, true, true);
bool3x4 r2 = bool3x4(false, true, true, true, false, false, true, false, true, true, false, false);
TestUtils.AreEqual(r2, a2 ^ b2);
bool a3 = (true);
bool3x4 b3 = bool3x4(true, false, false, false, true, false, false, false, true, true, false, false);
bool3x4 r3 = bool3x4(false, true, true, true, false, true, true, true, false, false, true, true);
TestUtils.AreEqual(r3, a3 ^ b3);
}
[TestCompiler]
public static void bool3x4_operator_logical_not()
{
bool3x4 a0 = bool3x4(true, true, false, false, true, false, true, false, true, false, false, false);
bool3x4 r0 = bool3x4(false, false, true, true, false, true, false, true, false, true, true, true);
TestUtils.AreEqual(r0, !a0);
bool3x4 a1 = bool3x4(false, true, false, false, true, true, true, false, true, true, true, false);
bool3x4 r1 = bool3x4(true, false, true, true, false, false, false, true, false, false, false, true);
TestUtils.AreEqual(r1, !a1);
bool3x4 a2 = bool3x4(false, true, false, true, false, false, true, true, false, true, false, false);
bool3x4 r2 = bool3x4(true, false, true, false, true, true, false, false, true, false, true, true);
TestUtils.AreEqual(r2, !a2);
bool3x4 a3 = bool3x4(false, true, true, false, false, true, false, true, false, true, false, true);
bool3x4 r3 = bool3x4(true, false, false, true, true, false, true, false, true, false, true, false);
TestUtils.AreEqual(r3, !a3);
}
[TestCase]
public static void bool3x4_EqualsObjectOverride()
{
TestUtils.IsFalse(new bool3x4().Equals((object)new int()));
TestUtils.IsTrue(new bool3x4().Equals((object)new bool3x4()));
}
}
}