feat: add KeePassIconMapper (iconIndex -> SF Symbol)
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WYqycDFsynHH9VnnK7LNSf
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import XCTest
|
||||
@testable import MyPassCore
|
||||
|
||||
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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user