mirror of
https://github.com/bitwarden/ios.git
synced 2025-12-11 04:34:55 -06:00
17 lines
419 B
Swift
17 lines
419 B
Swift
import XCTest
|
|
|
|
@testable import BitwardenKit
|
|
|
|
class DataTests: BitwardenTestCase {
|
|
// MARK: Tests
|
|
|
|
/// `asHexString()` converts the Data object into a hex formatted string.
|
|
func test_asHexString() {
|
|
let subject = Data(repeating: 1, count: 32)
|
|
XCTAssertEqual(
|
|
subject.asHexString(),
|
|
"0101010101010101010101010101010101010101010101010101010101010101"
|
|
)
|
|
}
|
|
}
|