Skip to content

Commit 4d4d3eb

Browse files
committed
Add test for random string helper
1 parent 6d4a2cd commit 4d4d3eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/SteamPressTests/AdminTests/AdminPostTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,12 @@ class AdminPostTests: XCTestCase {
535535
let post = try createPostViaRequest(title: title)
536536
XCTAssertEqual(expectedSlugUrl, post.slugUrl)
537537
}
538+
539+
func testRandomStringHelperDoesntProduceTheSameStringKinda() throws {
540+
let string1 = try String.random()
541+
let string2 = try String.random()
542+
XCTAssertNotEqual(string1, string2)
543+
}
538544

539545
// MARK: - Helpers
540546

0 commit comments

Comments
 (0)