Skip to content

Commit

Permalink
adding another test
Browse files Browse the repository at this point in the history
  • Loading branch information
snf committed Mar 16, 2016
1 parent 1bf2831 commit 5232837
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ fn x86_jcc() {
assert_eq!(bytes, [0x90, 0x74, 0x02, 0x90, 0x90]);
}


#[test]
fn x86_je() {
let bytes = assemble(Arch::X86_64, "je here;here:").unwrap();
assert_eq!(bytes, [0x74, 0x00]);
}

#[test]
fn x86_jmp_rel() {
let addr = 0x1000;
Expand Down

0 comments on commit 5232837

Please sign in to comment.