feat(keyboard): ship AI hint carousel, home library cards, and clipboard polish
Rotate AI idle suggestions with optional remote packs, move history/dictionary onto self-sizing Home preview cards, harden clipboard capture/prompting, and simplify keyboard chrome by dropping most liquid-glass shadows.
This commit is contained in:
@@ -5,12 +5,21 @@ final class EditLastInputPromptTests: XCTestCase {
|
||||
func testPayloadEscapesSourceAndInstruction() {
|
||||
let payload = EditLastInputPromptComposer.userMessage(
|
||||
.init(
|
||||
sourceText: "<ignore> & original",
|
||||
spokenInstruction: "replace \"original\""
|
||||
sourceText: "<ignore> & original > \"quoted\" 'single' &",
|
||||
spokenInstruction: "replace \"original\" with 'updated' > old"
|
||||
)
|
||||
)
|
||||
XCTAssertTrue(
|
||||
payload.contains(
|
||||
"<ignore> & original > "quoted" "
|
||||
+ "'single' &amp;"
|
||||
)
|
||||
)
|
||||
XCTAssertTrue(
|
||||
payload.contains(
|
||||
"replace "original" with 'updated' > old"
|
||||
)
|
||||
)
|
||||
XCTAssertTrue(payload.contains("<ignore> & original"))
|
||||
XCTAssertTrue(payload.contains("replace "original""))
|
||||
XCTAssertFalse(payload.contains("<ignore>"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user