Skip to content

Commit

Permalink
Add test for CodeSegment.MethodInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
YaSuenag committed Sep 16, 2024
1 parent 702cf9c commit 046e240
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023, Yasumasa Suenaga
* Copyright (C) 2023, 2024, Yasumasa Suenaga
*
* This file is part of ffmasm.
*
Expand Down Expand Up @@ -37,4 +37,10 @@ public void testAlignment(){
}
}

@Test
public void testMethodInfoString(){
var info = new CodeSegment.MethodInfo(null, "func", 0x1234, 0xff);
Assertions.assertEquals("0x1234 0xff func", info.toString());
}

}

0 comments on commit 046e240

Please sign in to comment.