2026-09-19 16:53:49 +02:00
|
|
|
import XCTest
|
2026-09-20 15:05:19 +02:00
|
|
|
@testable import KeeVaultCore
|
2026-09-19 16:53:49 +02:00
|
|
|
|
|
|
|
|
final class KeePassIconMapperTests: XCTestCase {
|
|
|
|
|
func test_knownIndex_returnsMappedSymbol() {
|
|
|
|
|
XCTAssertEqual(KeePassIconMapper.symbolName(forIconIndex: 14), "envelope.fill")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func test_indexZero_isKeyFill() {
|
|
|
|
|
XCTAssertEqual(KeePassIconMapper.symbolName(forIconIndex: 0), "key.fill")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func test_unmappedIndex_fallsBackToKeyFill() {
|
|
|
|
|
XCTAssertEqual(KeePassIconMapper.symbolName(forIconIndex: 999), "key.fill")
|
|
|
|
|
}
|
|
|
|
|
}
|