19 lines
No EOL
648 B
Rust
19 lines
No EOL
648 B
Rust
//! Unit tests migrated from src/basic/keywords/remember.rs
|
|
//! These tests were originally in botserver and have been migrated to bottest.
|
|
|
|
#![allow(unused_imports)]
|
|
#![allow(unused_variables)]
|
|
#![allow(dead_code)]
|
|
// Original: use super::*; - tests used internal functions from botserver
|
|
|
|
#[test]
|
|
|
|
|
|
fn test_parse_duration() {
|
|
// Test various duration formats
|
|
assert!(parse_duration("30 days").is_ok());
|
|
assert!(parse_duration("1 hour").is_ok());
|
|
assert!(parse_duration("forever").is_ok());
|
|
assert!(parse_duration("5 minutes").is_ok());
|
|
assert!(parse_duration("invalid").is_err());
|
|
} |