Skip to content
This repository was archived by the owner on Nov 18, 2018. It is now read-only.

Commit cd8c70e

Browse files
committed
updated unit tests
1 parent a2b98be commit cd8c70e

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Sources/UnitTests/BSONTests.swift

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,18 @@ class BSONTests: XCTestCase {
5555
}
5656
}
5757

58-
func testToJSONString() {
58+
func testJSONString() {
59+
60+
let document = sampleDocument()
61+
62+
print("Document: \n\(document)\n")
63+
64+
let jsonString = BSON.toJSONString(document)
65+
66+
print("JSON: \n\(jsonString)\n")
67+
}
68+
69+
func testJSONEncodable() {
5970

6071
let document = sampleDocument()
6172

@@ -72,7 +83,7 @@ class BSONTests: XCTestCase {
7283

7384
let convertedJSON = document.toJSON()
7485

75-
print("Converted JSON: \n\(convertedJSON)\n")
86+
print("Converted JSON: \n\(convertedJSON)\n")
7687

7788
XCTAssert(parsedJSON == convertedJSON, "Converted JSON should equal parsed JSON")
7889
}

0 commit comments

Comments
 (0)