From a09e71223e75ca569c7a1dbfc51fa1a4d139456b Mon Sep 17 00:00:00 2001 From: xuyunshi <405029644@qq.com> Date: Mon, 11 Mar 2024 15:57:33 +0800 Subject: [PATCH] Exclude special error localize --- Flat_Test/ApiErrorLocalizeTest.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Flat_Test/ApiErrorLocalizeTest.swift b/Flat_Test/ApiErrorLocalizeTest.swift index 27c1b475..77db3725 100644 --- a/Flat_Test/ApiErrorLocalizeTest.swift +++ b/Flat_Test/ApiErrorLocalizeTest.swift @@ -11,6 +11,7 @@ import XCTest class ApiErrorLocalizeTest: XCTestCase { func testUnlocalizedError() { let allErrors = FlatApiError.allCases + .filter { $0 != .RoomNotBegin || $0 != .RoomNotBeginAndAddList } // Exclude special error. let unlocalizedErrors = allErrors.filter { error in error.errorDescription == String(describing: error) }