@@ -39,7 +39,7 @@ class RowFromDictionaryLiteralTests : RowTestCase {
3939 XCTAssertEqual ( row [ " a " ] as Int , 0 )
4040 }
4141
42- func testRowValueAtIndex( ) {
42+ func testRowValueAtIndex( ) throws {
4343 let row : Row = [ " a " : 0 , " b " : 1 , " c " : 2 ]
4444
4545 let aIndex = row. distance ( from: row. startIndex, to: row. firstIndex ( where: { ( column, value) in column == " a " } ) !)
@@ -52,22 +52,22 @@ class RowFromDictionaryLiteralTests : RowTestCase {
5252 assertRowRawValueEqual ( row, index: cIndex, value: 2 as Int64 )
5353
5454 // DatabaseValueConvertible & StatementColumnConvertible
55- assertRowConvertedValueEqual ( row, index: aIndex, value: 0 as Int )
56- assertRowConvertedValueEqual ( row, index: bIndex, value: 1 as Int )
57- assertRowConvertedValueEqual ( row, index: cIndex, value: 2 as Int )
55+ try assertRowConvertedValueEqual ( row, index: aIndex, value: 0 as Int )
56+ try assertRowConvertedValueEqual ( row, index: bIndex, value: 1 as Int )
57+ try assertRowConvertedValueEqual ( row, index: cIndex, value: 2 as Int )
5858
5959 // DatabaseValueConvertible
60- assertRowConvertedValueEqual ( row, index: aIndex, value: CustomValue . a)
61- assertRowConvertedValueEqual ( row, index: bIndex, value: CustomValue . b)
62- assertRowConvertedValueEqual ( row, index: cIndex, value: CustomValue . c)
60+ try assertRowConvertedValueEqual ( row, index: aIndex, value: CustomValue . a)
61+ try assertRowConvertedValueEqual ( row, index: bIndex, value: CustomValue . b)
62+ try assertRowConvertedValueEqual ( row, index: cIndex, value: CustomValue . c)
6363
6464 // Expect fatal error:
6565 //
6666 // row[-1]
6767 // row[3]
6868 }
6969
70- func testRowValueNamed( ) {
70+ func testRowValueNamed( ) throws {
7171 let row : Row = [ " a " : 0 , " b " : 1 , " c " : 2 ]
7272
7373 // Raw extraction
@@ -76,17 +76,17 @@ class RowFromDictionaryLiteralTests : RowTestCase {
7676 assertRowRawValueEqual ( row, name: " c " , value: 2 as Int64 )
7777
7878 // DatabaseValueConvertible & StatementColumnConvertible
79- assertRowConvertedValueEqual ( row, name: " a " , value: 0 as Int )
80- assertRowConvertedValueEqual ( row, name: " b " , value: 1 as Int )
81- assertRowConvertedValueEqual ( row, name: " c " , value: 2 as Int )
79+ try assertRowConvertedValueEqual ( row, name: " a " , value: 0 as Int )
80+ try assertRowConvertedValueEqual ( row, name: " b " , value: 1 as Int )
81+ try assertRowConvertedValueEqual ( row, name: " c " , value: 2 as Int )
8282
8383 // DatabaseValueConvertible
84- assertRowConvertedValueEqual ( row, name: " a " , value: CustomValue . a)
85- assertRowConvertedValueEqual ( row, name: " b " , value: CustomValue . b)
86- assertRowConvertedValueEqual ( row, name: " c " , value: CustomValue . c)
84+ try assertRowConvertedValueEqual ( row, name: " a " , value: CustomValue . a)
85+ try assertRowConvertedValueEqual ( row, name: " b " , value: CustomValue . b)
86+ try assertRowConvertedValueEqual ( row, name: " c " , value: CustomValue . c)
8787 }
8888
89- func testRowValueFromColumn( ) {
89+ func testRowValueFromColumn( ) throws {
9090 let row : Row = [ " a " : 0 , " b " : 1 , " c " : 2 ]
9191
9292 // Raw extraction
@@ -95,14 +95,14 @@ class RowFromDictionaryLiteralTests : RowTestCase {
9595 assertRowRawValueEqual ( row, column: Column ( " c " ) , value: 2 as Int64 )
9696
9797 // DatabaseValueConvertible & StatementColumnConvertible
98- assertRowConvertedValueEqual ( row, column: Column ( " a " ) , value: 0 as Int )
99- assertRowConvertedValueEqual ( row, column: Column ( " b " ) , value: 1 as Int )
100- assertRowConvertedValueEqual ( row, column: Column ( " c " ) , value: 2 as Int )
98+ try assertRowConvertedValueEqual ( row, column: Column ( " a " ) , value: 0 as Int )
99+ try assertRowConvertedValueEqual ( row, column: Column ( " b " ) , value: 1 as Int )
100+ try assertRowConvertedValueEqual ( row, column: Column ( " c " ) , value: 2 as Int )
101101
102102 // DatabaseValueConvertible
103- assertRowConvertedValueEqual ( row, column: Column ( " a " ) , value: CustomValue . a)
104- assertRowConvertedValueEqual ( row, column: Column ( " b " ) , value: CustomValue . b)
105- assertRowConvertedValueEqual ( row, column: Column ( " c " ) , value: CustomValue . c)
103+ try assertRowConvertedValueEqual ( row, column: Column ( " a " ) , value: CustomValue . a)
104+ try assertRowConvertedValueEqual ( row, column: Column ( " b " ) , value: CustomValue . b)
105+ try assertRowConvertedValueEqual ( row, column: Column ( " c " ) , value: CustomValue . c)
106106 }
107107
108108 func testWithUnsafeData( ) throws {
0 commit comments