Skip to content

Commit d2b539b

Browse files
committed
feat: improve code format
1 parent 21de7f6 commit d2b539b

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Package.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ let package = Package(
3333
.product(name: "Regex", package: "Regex"),
3434
.product(name: "NIO", package: "swift-nio"),
3535
.product(name: "NIOTransportServices", package: "swift-nio-transport-services")
36-
3736
]
38-
3937
),
40-
4138
.testTarget(
4239
name: "CasbinTests",
4340
dependencies: ["Casbin"],

Tests/CasbinTests/ConfigTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)