Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xF6 committed May 22, 2020
1 parent 0f2bef0 commit c9499d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/vm_test/ModulesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ public void ParseFunctionsTest()
new ret(),
new call_i("test3()"),
new nop(),
}.Reverse().ToArray();
}.ToArray();

var assembly = new DynamicAssembly("test");
var ilGen = assembly.GetGenerator();
ilGen.Emit(mem.Select(x => (OpCode)x).ToArray());
var module = new Module("test.module");
Module.modules.Add(module.GetHashCode(), module);
state.LoadMeta(mem.Reverse().SelectMany(x => x.GetMetaDataILBytes()).ToArray());
state.LoadMeta(mem.SelectMany(x => x.GetMetaDataILBytes()).ToArray());

var functions = Module.ImportFunctions(assembly.GetILCode(), module);

Expand Down

0 comments on commit c9499d4

Please sign in to comment.