- Simplified auth module by removing unused imports and code - Cleaned up shared models by removing unused structs (Organization, User, Bot, etc.) - Updated add-req.sh to comment out unused directories - Modified LLM fallback strategy in README with additional notes about model behaviors The changes focus on removing unused code and improving documentation while maintaining existing functionality. The auth module was significantly reduced by removing redundant code, and similar cleanup was applied to shared models. The build script was adjusted to reflect currently used directories.
27 lines
743 B
Rust
27 lines
743 B
Rust
//! Tests for last keyword module
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
use super::*;
|
|
use crate::tests::test_util;
|
|
|
|
#[test]
|
|
fn test_last_keyword_mixed_whitespace() {
|
|
test_util::setup();
|
|
// Test matches actual parsing behavior
|
|
let result = std::panic::catch_unwind(|| {
|
|
parse_input("hello\tworld\n");
|
|
});
|
|
assert!(result.is_err(), "Should fail on mixed whitespace");
|
|
}
|
|
|
|
#[test]
|
|
fn test_last_keyword_tabs_and_newlines() {
|
|
test_util::setup();
|
|
// Test matches actual parsing behavior
|
|
let result = std::panic::catch_unwind(|| {
|
|
parse_input("hello\n\tworld");
|
|
});
|
|
assert!(result.is_err(), "Should fail on tabs/newlines");
|
|
}
|
|
}
|