test: fix build and tests

This commit is contained in:
William Casarin
2023-07-21 15:14:07 -07:00
parent 61051ee853
commit ad0e1f28b7
7 changed files with 15 additions and 16 deletions

View File

@@ -26,13 +26,13 @@ final class NdbTests: XCTestCase {
let id = "20d0ff27d6fcb13de8366328c5b1a7af26bcac07f2e558fbebd5e9242e608c09"
XCTAssertEqual(hex_encode(note.id), id)
XCTAssertEqual(note.tags().underestimatedCount, 786)
XCTAssertEqual(note.tags().underestimatedCount, 786)
XCTAssertEqual(note.tags().reduce(0, { sum, _ in sum + 1 }), 786)
XCTAssertEqual(note.tags().reduce(0, { sum, _ in sum + 1 }), 786)
//let tags = note.tags()
for tag in note.tags() {
for elem in tag {
print("test_ndb_iterator \(elem.)")
print("test_ndb_iterator \(elem.string())")
}
}