Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions crates/forge_main/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,34 @@ mod tests {
);
}

#[test]
fn test_parse_retry_command() {
let fixture = ForgeCommandManager::default();
let actual = fixture.parse("/retry").unwrap();

assert_eq!(actual, AppCommand::Retry);
}

#[test]
fn test_parse_retry_alias() {
let fixture = ForgeCommandManager::default();
let actual = fixture.parse("/r").unwrap();

assert_eq!(actual, AppCommand::Retry);
}

#[test]
fn test_retry_command_in_default_commands() {
let manager = ForgeCommandManager::default();
let commands = manager.list();
let contains_retry = commands.iter().any(|cmd| cmd.name == "retry");

assert!(
contains_retry,
"Retry command should be in default commands"
);
}

#[test]
fn test_sanitize_agent_id_basic() {
// Test basic sanitization
Expand Down