Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blarfoon committed Jan 11, 2025
1 parent b66943c commit 3409573
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions crates/carbon_parsing/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ fn test_invalid_log_level() {
parser.feed(input.as_bytes());

match parser.parse_next() {
Err(ParserError::InvalidLogLevel(_)) => {}
Ok(Some(ParsedItem::LogEntry(entry))) => {
assert_eq!(entry.level, LogEntryLevel::Unknown);
}
_ => panic!("Expected InvalidLogLevel error"),
}
}
Expand Down Expand Up @@ -469,18 +471,6 @@ Caused by: java.lang.IllegalStateException: duplicate ASM classes found on class
assert!(next.is_none());
}

#[test]
fn test_log_example() {
let input = include_str!("../fixtures/log_example.log");

let mut parser = LogParser::new();
parser.feed(input.as_bytes());

let items = parser.parse_available().unwrap();

assert_eq!(items.len(), 3233);
}

// #[test]
// fn test_fuzzy_parsing_variations() {
// let log_text = r#"Some plain text before
Expand Down

0 comments on commit 3409573

Please sign in to comment.