Skip to content

Commit

Permalink
fix tests by updating opcodes.json path
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanballs committed Sep 9, 2024
1 parent ab3c963 commit 1a08522
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/instructions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,7 @@ mod test {
#[test]
fn opcodes_json() {
// Read the JSON file
let filename = Path::new(file!())
.parent()
.unwrap()
.join("instructions/opcodes.json");
let filename = Path::new(file!()).parent().unwrap().join("opcodes.json");

let mut file = File::open(filename).unwrap();
let mut contents = String::new();
Expand Down

0 comments on commit 1a08522

Please sign in to comment.