ag-protocol 0.19.4

Agentty is an ADE (Agentic Development Environment) for structured, controllable AI-assisted software development.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Clarification question construction unit tests.

use crate::question::QuestionItem;

#[test]
/// Ensures predefined answer options are kept in order with the question.
fn test_question_item_with_options_keeps_text_and_options() {
    // Arrange
    let options = vec!["Yes".to_string(), "No".to_string()];

    // Act
    let question = QuestionItem::with_options("Ship it?", options.clone());

    // Assert
    assert_eq!(question.text, "Ship it?");
    assert_eq!(question.options, options);
}