// #[test] // fn test_basics() { // // try to compile a .pasm file to an object // let assembler = phantasm::Assembler::new(); // assembler.validate("") // assembler.assemble("examples/1.pasm", "examples/1.o"); // // decompile // let deassembler = phantasm::Deassembler::new(); // deassembler.disassemble("examples/1.o", "examples/1.o.disassembled"); // // print the differences in code // use phantasm::tools::Diff; // let diffs = Diff::diff("examples/1.pasm", "examples/1.o.disassembled"); // println!("PRINTING DIFFS\n{}", diffs); // // ensure same logic // let validator = phantasm::Validator::new(); // let result = validator.cmp("examples/1.pasm", "examples/1.o.disassembled"); // assert!(result); // } // #[test] // fn test_basics2() { // let linter = phantasm::Linter::new(); // linter.lint("examples/1.pasm"); // linter.fix("examples/1.pasm"); // let syntax_highlighter = phantasm::LanguageServer::new(); // syntax_highlighter.highlight("examples/1.pasm", "examples/1.png"); // }