diff options
author | Mary <mary@mary.zone> | 2022-06-24 21:11:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 21:11:56 +0200 |
commit | 2382717600939e0e970f47f404cd62672c097ad4 (patch) | |
tree | 361edd30df4a9bd2d19cd0f367db432236c2f4d8 /Ryujinx.Tests/Time/TimeZoneRuleTests.cs | |
parent | 30ee70a9bc9529772198a51b1b9a605932d2ea96 (diff) |
timezone: Fix regression caused by #3361 (#3418)1.1.157
Because of that PR, TimeZoneRule was bigger than 0x4000 thanks to a
misuse of a constant.
This commit address this issue and add a new unit test to ensure the size of
TimeZoneRule is 0x4000 bytes.
Also address suggestions that were lost on the original PR.
Diffstat (limited to 'Ryujinx.Tests/Time/TimeZoneRuleTests.cs')
-rw-r--r-- | Ryujinx.Tests/Time/TimeZoneRuleTests.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Ryujinx.Tests/Time/TimeZoneRuleTests.cs b/Ryujinx.Tests/Time/TimeZoneRuleTests.cs new file mode 100644 index 00000000..4d5c4eaa --- /dev/null +++ b/Ryujinx.Tests/Time/TimeZoneRuleTests.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; +using Ryujinx.HLE.HOS.Services.Time.TimeZone; +using System.Runtime.CompilerServices; + +namespace Ryujinx.Tests.Time +{ + internal class TimeZoneRuleTests + { + class EffectInfoParameterTests + { + [Test] + public void EnsureTypeSize() + { + Assert.AreEqual(0x4000, Unsafe.SizeOf<TimeZoneRule>()); + } + } + } +} |