Skip to content

Commit c7466ea

Browse files
committed
Fix testInsertInvalidJSON
1 parent a2d387b commit c7466ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/SQLiteTests/SQLiteDatabaseTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ final class SQLiteDatabaseTests: XCTestCase {
516516

517517
try database.execute(raw: _createTableWithIDAsStringAndNullableString)
518518

519-
let invalidJSON = "\"text\": What is this supposed to be?"
519+
let invalidJSON = "\"text\\: What is this supposed to be?"
520520
let write: SQL = "INSERT INTO test VALUES (:id, json(:string));"
521521
let args: SQLiteArguments = ["id": .text("1"), "string": .text(invalidJSON)]
522522
XCTAssertThrowsError(try database.write(write, arguments: args))

0 commit comments

Comments
 (0)