Skip to content

Commit

Permalink
Remove broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
commonkestrel committed Nov 17, 2023
1 parent 695e845 commit 7ad01cf
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions src/assembler/lex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -786,50 +786,6 @@ mod tests {
use super::*;
use std::fs;

#[test]
fn file() {
let lexed = match lex("tests/lex.asm") {
Ok(tokens) => tokens,
Err(errors) => {
for error in errors {
error.force_emit();
}
Diagnostic::error("lexing failed due to previous errors").scream();
}
};

// println!(
// "{:?}",
// lexed
// .into_iter()
// .map(|tok| tok.inner)
// .collect::<Vec<TokenInner>>()
// );
}

#[test]
fn string() {
let example = fs::read_to_string("tests/lex.asm")
.expect_or_scream("Unable to open file `tests/lex.asm`");
let lexed = match lex_string(example) {
Ok(tokens) => tokens,
Err(errors) => {
for error in errors {
error.force_emit();
}
Diagnostic::error("lexing failed due to previous errors").scream();
}
};

// println!(
// "{:?}",
// lexed
// .into_iter()
// .map(|tok| tok.inner)
// .collect::<Vec<TokenInner>>()
// );
}

#[test]
fn delim() {
let example = "< )".to_owned();
Expand Down

0 comments on commit 7ad01cf

Please sign in to comment.