From 3e11cb369f44ef1b805e1928902590c88bb9425c Mon Sep 17 00:00:00 2001 From: Anton Chaplygin Date: Fri, 25 Dec 2020 18:14:59 +0500 Subject: [PATCH] update CHANGELOG.md --- CHANGELOG.md | 3 +++ GrEmit.Tests/Test.cs | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 527346c..fd59d48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v3.3.x - 2020.12.25 +- Fix bug with not passing type parameter for `Ldelem_Ref` instruction + ## v3.3.7 - 2020.05.23 - Support `Localloc` operation diff --git a/GrEmit.Tests/Test.cs b/GrEmit.Tests/Test.cs index ae1170d..e865865 100644 --- a/GrEmit.Tests/Test.cs +++ b/GrEmit.Tests/Test.cs @@ -77,16 +77,16 @@ public void Test_LdElem_OnClass_ShouldEmitType() il.Ret(); } - var check = "12345"; + var expectedResult = "12345"; - var inputs = new StringBuilder[check.Length]; - for (var i = 0; i < check.Length; i++) + var funcArguments = new StringBuilder[expectedResult.Length]; + for (var i = 0; i < expectedResult.Length; i++) { - inputs[i] = new StringBuilder(check[i].ToString()); + funcArguments[i] = new StringBuilder(expectedResult[i].ToString()); } var func = (Func)method.CreateDelegate(typeof(Func)); - Assert.That(func(inputs), Is.EqualTo(check)); + Assert.That(func(funcArguments), Is.EqualTo(expectedResult)); } [Test]