We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 192788d commit ee905feCopy full SHA for ee905fe
Tests/SQLiteTests/FoundationTests.swift
@@ -26,4 +26,15 @@ class FoundationTests: XCTestCase {
26
XCTAssertEqual(UUID(uuidString: "4ABE10C9-FF12-4CD4-90C1-4B429001BAD3"), uuid)
27
}
28
29
+ func testURLFromString() {
30
+ let string = "http://foo.com"
31
+ let url = URL.fromDatatypeValue(string)
32
+ XCTAssertEqual(URL(string: string), url)
33
+ }
34
+
35
+ func testStringFromURL() {
36
+ let url = URL(string: "http://foo.com")!
37
+ let string = url.datatypeValue
38
+ XCTAssertEqual("http://foo.com", string)
39
40
0 commit comments