@@ -6,7 +6,7 @@ import XCTest
66
77class Dstu9112ATests : XCTestCase {
88
9- func test_c2lr_DSTU_9112_A( ) throws {
9+ func test_c2lr_DSTU_9112_A( ) {
1010 let data : [ ( String , String ) ] = [
1111 (
1212 " Україна, Хмельницький " ,
@@ -79,21 +79,21 @@ class Dstu9112ATests: XCTestCase {
7979 ]
8080
8181 for (cyr, lat) in data {
82- let enc = try encode ( cyr, table: UKLatnTable . DSTU_9112_A)
82+ let enc = encode ( cyr, table: UKLatnTable . DSTU_9112_A)
8383 XCTAssertEqual ( lat, enc)
84- let dec = try decode ( lat, table: UKLatnTable . DSTU_9112_A)
84+ let dec = decode ( lat, table: UKLatnTable . DSTU_9112_A)
8585 XCTAssertEqual ( cyr, dec)
8686 }
8787
8888 for (cyr, lat) in data {
89- let enc = try encode ( cyr)
89+ let enc = encode ( cyr)
9090 XCTAssertEqual ( lat, enc)
91- let dec = try decode ( lat)
91+ let dec = decode ( lat)
9292 XCTAssertEqual ( cyr, dec)
9393 }
9494 }
9595
96- func test_c2l_DSTU_9112_A( ) throws {
96+ func test_c2l_DSTU_9112_A( ) {
9797 let data : [ ( String , String ) ] = [
9898 (
9999 " в’я в'я " ,
@@ -106,17 +106,17 @@ class Dstu9112ATests: XCTestCase {
106106 ]
107107
108108 for (cyr, lat) in data {
109- let enc = try encode ( cyr, table: UKLatnTable . DSTU_9112_A)
109+ let enc = encode ( cyr, table: UKLatnTable . DSTU_9112_A)
110110 XCTAssertEqual ( lat, enc)
111111 }
112112
113113 for (cyr, lat) in data {
114- let enc = try encode ( cyr)
114+ let enc = encode ( cyr)
115115 XCTAssertEqual ( lat, enc)
116116 }
117117 }
118118
119- func test_l2c_DSTU_9112_A( ) throws {
119+ func test_l2c_DSTU_9112_A( ) {
120120 let data : [ ( String , String ) ] = [
121121 (
122122 " я є ю " ,
@@ -141,12 +141,12 @@ class Dstu9112ATests: XCTestCase {
141141 ]
142142
143143 for (cyr, lat) in data {
144- let dec = try decode ( lat, table: UKLatnTable . DSTU_9112_A)
144+ let dec = decode ( lat, table: UKLatnTable . DSTU_9112_A)
145145 XCTAssertEqual ( cyr, dec)
146146 }
147147
148148 for (cyr, lat) in data {
149- let dec = try decode ( lat)
149+ let dec = decode ( lat)
150150 XCTAssertEqual ( cyr, dec)
151151 }
152152 }
@@ -155,7 +155,7 @@ class Dstu9112ATests: XCTestCase {
155155
156156class Dstu9112BTests : XCTestCase {
157157
158- func test_c2lr_DSTU_9112_B( ) throws {
158+ func test_c2lr_DSTU_9112_B( ) {
159159 let data : [ ( String , String ) ] = [
160160 (
161161 " Україна, Хмельницький " ,
@@ -228,14 +228,14 @@ class Dstu9112BTests: XCTestCase {
228228 ]
229229
230230 for (cyr, lat) in data {
231- let enc = try encode ( cyr, table: UKLatnTable . DSTU_9112_B)
231+ let enc = encode ( cyr, table: UKLatnTable . DSTU_9112_B)
232232 XCTAssertEqual ( lat, enc)
233- let dec = try decode ( lat, table: UKLatnTable . DSTU_9112_B)
233+ let dec = decode ( lat, table: UKLatnTable . DSTU_9112_B)
234234 XCTAssertEqual ( cyr, dec)
235235 }
236236 }
237237
238- func test_c2l_DSTU_9112_B( ) throws {
238+ func test_c2l_DSTU_9112_B( ) {
239239 let data : [ ( String , String ) ] = [
240240 (
241241 " в’я в'я " ,
@@ -248,12 +248,12 @@ class Dstu9112BTests: XCTestCase {
248248 ]
249249
250250 for (cyr, lat) in data {
251- let enc = try encode ( cyr, table: UKLatnTable . DSTU_9112_B)
251+ let enc = encode ( cyr, table: UKLatnTable . DSTU_9112_B)
252252 XCTAssertEqual ( lat, enc)
253253 }
254254 }
255255
256- func test_l2c_DSTU_9112_B( ) throws {
256+ func test_l2c_DSTU_9112_B( ) {
257257 let data : [ ( String , String ) ] = [
258258 (
259259 " я ї є ю г ж х щ ш ч ь " ,
@@ -270,7 +270,7 @@ class Dstu9112BTests: XCTestCase {
270270 ]
271271
272272 for (cyr, lat) in data {
273- let dec = try decode ( lat, table: UKLatnTable . DSTU_9112_B)
273+ let dec = decode ( lat, table: UKLatnTable . DSTU_9112_B)
274274 XCTAssertEqual ( cyr, dec)
275275 }
276276 }
@@ -279,7 +279,7 @@ class Dstu9112BTests: XCTestCase {
279279
280280class Kmu55Tests : XCTestCase {
281281
282- func test_c2l_KMU_55( ) throws {
282+ func test_c2l_KMU_55( ) {
283283 let data : [ ( String , String ) ] = [
284284 (
285285 " Україна, Хмельницький " ,
@@ -352,16 +352,8 @@ class Kmu55Tests: XCTestCase {
352352 ]
353353
354354 for (cyr, lat) in data {
355- let enc = try encode ( cyr, table: UKLatnTable . KMU_55)
355+ let enc = encode ( cyr, table: UKLatnTable . KMU_55)
356356 XCTAssertEqual ( lat, enc)
357357 }
358358 }
359-
360- func test_decode_KMU_55_throws( ) throws {
361- XCTAssertThrowsError (
362- try decode ( " lat " , table: UKLatnTable . KMU_55)
363- ) { error in
364- XCTAssertEqual ( error as? UKLatnError , UKLatnError . invalidTable ( UKLatnTable . KMU_55. rawValue) )
365- }
366- }
367359}
0 commit comments