Skip to content

Commit 5be8b9d

Browse files
committed
tests: annotate Apps guidance literals
1 parent a67a3bf commit 5be8b9d

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

‎codex-rs/core/src/context/world_state/apps_instructions_tests.rs‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ fn render(state: AppsInstructionsState, previous: PreviousSectionState<'_, bool>
1313

1414
#[test]
1515
fn renders_only_when_apps_become_available() {
16-
let unavailable = AppsInstructionsState::new(false);
17-
let available = AppsInstructionsState::new(true);
16+
let unavailable = AppsInstructionsState::new(/*available*/ false);
17+
let available = AppsInstructionsState::new(/*available*/ true);
1818
let false_snapshot = false;
1919
let true_snapshot = true;
2020

@@ -40,16 +40,20 @@ fn renders_only_when_apps_become_available() {
4040
#[test]
4141
fn legacy_guidance_is_not_injected_again() {
4242
let mut world_state = super::super::WorldState::default();
43-
world_state.add_section(AppsInstructionsState::new(true));
43+
world_state.add_section(AppsInstructionsState::new(/*available*/ true));
4444
let legacy: ResponseItem = ContextualUserFragment::into(AppsInstructions);
4545

46-
assert!(world_state.render_history_diff(None, &[legacy]).is_empty());
46+
assert!(
47+
world_state
48+
.render_history_diff(/*previous*/ None, &[legacy])
49+
.is_empty()
50+
);
4751
}
4852

4953
#[test]
5054
fn persisted_guidance_is_restored_only_when_missing_from_history() {
5155
let mut world_state = super::super::WorldState::default();
52-
world_state.add_section(AppsInstructionsState::new(true));
56+
world_state.add_section(AppsInstructionsState::new(/*available*/ true));
5357
let snapshot = world_state.snapshot();
5458
let retained: ResponseItem = ContextualUserFragment::into(AppsInstructions);
5559

0 commit comments

Comments
 (0)