Skip to content

Commit

Permalink
update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton92nd committed Dec 25, 2020
1 parent 69f1a85 commit 3e11cb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
10 changes: 5 additions & 5 deletions GrEmit.Tests/Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<StringBuilder[], string>)method.CreateDelegate(typeof(Func<StringBuilder[], string>));
Assert.That(func(inputs), Is.EqualTo(check));
Assert.That(func(funcArguments), Is.EqualTo(expectedResult));
}

[Test]
Expand Down

0 comments on commit 3e11cb3

Please sign in to comment.