Upgrade to edition 2021
This commit is contained in:
@@ -4,7 +4,7 @@ use rustijvm::binread::BinReadable;
|
||||
|
||||
#[test]
|
||||
fn task1_program1() {
|
||||
let machine = rustijvm::Machine::new_from_file("files/task1/program1.ijvm").unwrap();
|
||||
let machine = rustijvm::machine::Machine::new_from_file("files/task1/program1.ijvm").unwrap();
|
||||
|
||||
assert_eq!(machine.block.len(), 7);
|
||||
assert_eq!(machine.block[0], 0x10); // BIPUSH
|
||||
@@ -15,7 +15,7 @@ fn task1_program1() {
|
||||
|
||||
#[test]
|
||||
fn task1_program2() {
|
||||
let machine = rustijvm::Machine::new_from_file("files/task1/program2.ijvm").unwrap();
|
||||
let machine = rustijvm::machine::Machine::new_from_file("files/task1/program2.ijvm").unwrap();
|
||||
|
||||
assert_eq!(machine.block.len(), 16);
|
||||
assert_eq!(machine.block[0], 0x0);
|
||||
@@ -31,7 +31,7 @@ fn task1_program2() {
|
||||
|
||||
#[test]
|
||||
fn task1_program_counter() {
|
||||
let machine = rustijvm::Machine::new_from_file("files/task1/program1.ijvm").unwrap();
|
||||
let machine = rustijvm::machine::Machine::new_from_file("files/task1/program1.ijvm").unwrap();
|
||||
|
||||
assert_eq!(machine.get_program_counter(), 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user