                     t.column("parentEmail", .text).references("parent", column: "email", onDelete: .restrict, deferred: true)
                     t.column("weird", .text).references("parent", column: "name").references("parent", column: "email")
                 }
-                XCTAssertEqual(self.lastSQLQuery,
-                    "CREATE TABLE \"child\" (" +
+                XCTAssertEqual(
+                    self.lastSQLQuery,
+                    ("CREATE TABLE \"child\" (" +
                         "\"parentName\" TEXT REFERENCES \"parent\"(\"name\") ON DELETE CASCADE ON UPDATE CASCADE, " +
                         "\"parentEmail\" TEXT REFERENCES \"parent\"(\"email\") ON DELETE RESTRICT DEFERRABLE INITIALLY DEFERRED, " +
                         "\"weird\" TEXT REFERENCES \"parent\"(\"name\") REFERENCES \"parent\"(\"email\")" +
-                    ")")
+                        ")") as String)
             }
         }
     }

                    t.column("d", .text)
                    t.column("e", .text)
                }
                XCTAssertEqual(self.lastSQLQuery,
                    "CREATE TABLE \"child\" (" +
                        "\"c\" TEXT, " +
                        "\"d\" TEXT, " +
                        "\"e\" TEXT, " +
                        "FOREIGN KEY (\"c\", \"d\") REFERENCES \"parent\"(\"a\", \"b\") ON DELETE CASCADE ON UPDATE CASCADE, " +
                        "FOREIGN KEY (\"d\", \"e\") REFERENCES \"parent\"(\"b\", \"a\") ON DELETE RESTRICT DEFERRABLE INITIALLY DEFERRED" +
                    ")")
            }
        }
    }

                    t.foreignKey(["c", "d"], references: "test3")
                    t.primaryKey(["a", "b"])
                }
                XCTAssertEqual(
                    self.lastSQLQuery,
                    ("CREATE TABLE \"test3\" (" +
                        "\"a\" INTEGER, " +
                        "\"b\" INTEGER, " +
                        "\"c\" INTEGER, " +
                        "\"d\" INTEGER, " +
                        "PRIMARY KEY (\"a\", \"b\"), " +
                        "FOREIGN KEY (\"c\", \"d\") REFERENCES \"test3\"(\"a\", \"b\")" +
                        ")") as String)
            }
        }
    }
