diff options
author | TSRBerry <20988865+TSRBerry@users.noreply.github.com> | 2023-02-09 02:24:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-09 02:24:32 +0100 |
commit | ec8d4f3af5d951776ab9d494ca1c5cae7809c08f (patch) | |
tree | d8d4d9deb25bbbea422ea5bc09a63dc31ed8dc1f /Ryujinx.Tests/Cpu/CpuTestAluImm32.cs | |
parent | b3f0978869c7b621bf1c62ea6a8fc51f1e3a5c24 (diff) |
Replace unicorn bindings with Nuget package (#4378)1.1.611
* Replace unicorn bindings with Nuget package
* Use nameof for ValueSource args
* Remove redundant code from test projects
* Fix wrong values for EmuStart()
Add notes to address this later again
* Improve formatting
* Fix formatting/alignment issues
Diffstat (limited to 'Ryujinx.Tests/Cpu/CpuTestAluImm32.cs')
-rw-r--r-- | Ryujinx.Tests/Cpu/CpuTestAluImm32.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Ryujinx.Tests/Cpu/CpuTestAluImm32.cs b/Ryujinx.Tests/Cpu/CpuTestAluImm32.cs index 440642c3..cc12f387 100644 --- a/Ryujinx.Tests/Cpu/CpuTestAluImm32.cs +++ b/Ryujinx.Tests/Cpu/CpuTestAluImm32.cs @@ -12,7 +12,7 @@ namespace Ryujinx.Tests.Cpu #region "ValueSource (Opcodes)" private static uint[] _opcodes() { - return new uint[] + return new[] { 0xe2a00000u, // ADC R0, R0, #0 0xe2b00000u, // ADCS R0, R0, #0 @@ -33,10 +33,9 @@ namespace Ryujinx.Tests.Cpu #endregion private const int RndCnt = 2; - private const int RndCntAmount = 2; [Test, Pairwise] - public void TestCpuTestAluImm32([ValueSource("_opcodes")] uint opcode, + public void TestCpuTestAluImm32([ValueSource(nameof(_opcodes))] uint opcode, [Values(0u, 13u)] uint rd, [Values(1u, 13u)] uint rn, [Random(RndCnt)] uint imm, @@ -53,4 +52,4 @@ namespace Ryujinx.Tests.Cpu } #endif } -} +}
\ No newline at end of file |