emulatorr 0.1.0-alpha

A 6502 emulator written in Rust, with TUI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::PathBuf;

use emulatorr::io;

#[test]
fn read_existing() {
    // TODO: write to a new file before testing, this one could change
    // let path = dirs::home_dir().unwrap().join(PathBuf::from("rom.txt"));
    // let result = io::load_bytes(&path).unwrap();
    // assert_eq!(result, vec![0xA9, 0, 0, 0xE3, 0xF1]);
}

#[test]
fn read_nonexisting() {
    let path = dirs::home_dir().unwrap().join(PathBuf::from("idontexist.txt"));
    io::load_bytes(&path).expect_err("File does exist, somehow.");
}