@@ -11,16 +11,16 @@ final class ConfigTests: XCTestCase {
1111 try pool. syncShutdownGracefully ( )
1212 try elg. syncShutdownGracefully ( )
1313 } catch {
14-
1514 }
1615 }
16+
1717 func testGet( ) throws {
1818 let filePath = #file. components ( separatedBy: " ConfigTests.swift " ) [ 0 ] + " examples/testini.ini "
1919 pool. start ( )
2020 let fileIo = NonBlockingFileIO ( threadPool: pool)
2121 var config = try Config . from ( file: filePath, fileIo: fileIo, on: elg. next ( ) )
2222 . wait ( )
23-
23+
2424 XCTAssertEqual ( true , config. getBool ( key: " debug " ) )
2525 XCTAssertEqual ( 64 , config. getInt ( key: " math::math.i64 " ) )
2626 XCTAssertEqual ( 64.1 , config. getFloat ( key: " math::math.f64 " ) )
@@ -37,7 +37,7 @@ final class ConfigTests: XCTestCase {
3737 try pool. syncShutdownGracefully ( )
3838 try elg. syncShutdownGracefully ( )
3939 }
40-
40+
4141 func testFromText( ) throws {
4242 let text = #"""
4343 # test config
@@ -61,7 +61,7 @@ final class ConfigTests: XCTestCase {
6161 math.i64 = 64
6262 math.f64 = 64.1
6363 """#
64-
64+
6565 var config = try Config . from ( text: text, on: elg. next ( ) ) . wait ( )
6666 XCTAssertEqual ( true , config. getBool ( key: " debug " ) )
6767 XCTAssertEqual ( 64 , config. getInt ( key: " math::math.i64 " ) )
@@ -71,7 +71,7 @@ final class ConfigTests: XCTestCase {
7171 XCTAssertEqual ( " new test key " , config. get ( key: " other::key1 " ) )
7272 config. set ( key: " other::key1 " , value: " test key " )
7373 XCTAssertEqual ( " test key " , config. get ( key: " other::key1 " ) )
74-
74+
7575 try pool. syncShutdownGracefully ( )
7676 try elg. syncShutdownGracefully ( )
7777 }
0 commit comments