feat: center square Hope presence and guide secure certificate setup
This commit is contained in:
1 parent
6f2659421c
commit
15c6389ffb
12 files changed
+252
-129
No files matched your search
@@ -85,6 +85,39 @@ struct ConversationStateTests {
|
||||
#expect(!model.isThinkingChipVisible)
|
||||
}
|
||||
|
||||
@Test("square LED presence responds to input and emphasizes assistant output")
|
||||
func ledPresenceAudioResponse() {
|
||||
let quiet = LightwellView.dot(row: 10, column: 10, phase: .listening(level: 0), time: 0, reduceMotion: false)
|
||||
let listening = LightwellView.dot(row: 10, column: 10, phase: .listening(level: 0.8), time: 0, reduceMotion: false)
|
||||
let speaking = LightwellView.dot(row: 10, column: 10, phase: .speaking(level: 0.8), time: 0, reduceMotion: false)
|
||||
#expect(listening.opacity > quiet.opacity)
|
||||
#expect(listening.scale > quiet.scale)
|
||||
#expect(speaking.opacity > listening.opacity)
|
||||
#expect(speaking.scale > listening.scale)
|
||||
}
|
||||
|
||||
@Test("LED reduce motion freezes audio geometry and pending waves")
|
||||
func ledReduceMotion() {
|
||||
for phase: LightwellView.Phase in [.connecting, .thinking, .speaking(level: 0.8)] {
|
||||
#expect(LightwellView.dot(row: 8, column: 9, phase: phase, time: 0, reduceMotion: true)
|
||||
== LightwellView.dot(row: 8, column: 9, phase: phase, time: 7, reduceMotion: true))
|
||||
}
|
||||
#expect(LightwellView.dot(row: 10, column: 10, phase: .listening(level: 0), time: 0, reduceMotion: true)
|
||||
== LightwellView.dot(row: 10, column: 10, phase: .listening(level: 1), time: 0, reduceMotion: true))
|
||||
}
|
||||
|
||||
@Test("LED state patterns are distinct and invalid signal levels remain bounded")
|
||||
func ledStatePatterns() {
|
||||
let dormant = LightwellView.dot(row: 10, column: 10, phase: .idle, time: 0, reduceMotion: false)
|
||||
let thinking = LightwellView.dot(row: 10, column: 10, phase: .thinking, time: 0, reduceMotion: true)
|
||||
#expect(thinking.opacity > dormant.opacity)
|
||||
for level in [Double.nan, Double.infinity, -1, 10] {
|
||||
let dot = LightwellView.dot(row: 10, column: 10, phase: .speaking(level: level), time: 0, reduceMotion: false)
|
||||
#expect(dot.opacity.isFinite && (0...1).contains(dot.opacity))
|
||||
#expect(dot.scale.isFinite && dot.scale >= 1)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Interruption begin mute decision (Iteration 08 Item 1)
|
||||
|
||||
/// Pure decision seam test: verifies that the interruption-begin mute
|
||||
|
||||
Reference in new issue
Block a user