mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-28 02:54:31 +03:00
GH-666 Reformat
This commit is contained in:
parent
d8707f7dea
commit
b891fc45b2
@ -26,11 +26,16 @@ class UGridTest: XCTestCase {
|
||||
chunk: " 12 45678 ".compactMap { String($0) },
|
||||
attrIds: Array<Int>(repeating: 0, count: 10))
|
||||
|
||||
expect(self.ugrid.leftBoundaryOfWord(at: Position(row: 0, column: 9))).to(equal(9))
|
||||
expect(self.ugrid.leftBoundaryOfWord(at: Position(row: 0, column: 8))).to(equal(4))
|
||||
expect(self.ugrid.leftBoundaryOfWord(at: Position(row: 0, column: 4))).to(equal(4))
|
||||
expect(self.ugrid.leftBoundaryOfWord(at: Position(row: 0, column: 3))).to(equal(3))
|
||||
expect(self.ugrid.leftBoundaryOfWord(at: Position(row: 0, column: 0))).to(equal(0))
|
||||
expect(self.ugrid.leftBoundaryOfWord(at: Position(row: 0, column: 9)))
|
||||
.to(equal(9))
|
||||
expect(self.ugrid.leftBoundaryOfWord(at: Position(row: 0, column: 8)))
|
||||
.to(equal(4))
|
||||
expect(self.ugrid.leftBoundaryOfWord(at: Position(row: 0, column: 4)))
|
||||
.to(equal(4))
|
||||
expect(self.ugrid.leftBoundaryOfWord(at: Position(row: 0, column: 3)))
|
||||
.to(equal(3))
|
||||
expect(self.ugrid.leftBoundaryOfWord(at: Position(row: 0, column: 0)))
|
||||
.to(equal(0))
|
||||
|
||||
self.ugrid.update(row: 1,
|
||||
startCol: 0,
|
||||
@ -40,7 +45,8 @@ class UGridTest: XCTestCase {
|
||||
chunk: "0123456789".compactMap { String($0) },
|
||||
attrIds: Array<Int>(repeating: 0, count: 10))
|
||||
|
||||
expect(self.ugrid.leftBoundaryOfWord(at: Position(row: 1, column: 0))).to(equal(0))
|
||||
expect(self.ugrid.leftBoundaryOfWord(at: Position(row: 1, column: 0)))
|
||||
.to(equal(0))
|
||||
}
|
||||
|
||||
func testRightBoundaryOfWord() {
|
||||
@ -52,11 +58,16 @@ class UGridTest: XCTestCase {
|
||||
chunk: " 12345 78 ".compactMap { String($0) },
|
||||
attrIds: Array<Int>(repeating: 0, count: 10))
|
||||
|
||||
expect(self.ugrid.rightBoundaryOfWord(at: Position(row: 0, column: 9))).to(equal(9))
|
||||
expect(self.ugrid.rightBoundaryOfWord(at: Position(row: 0, column: 8))).to(equal(8))
|
||||
expect(self.ugrid.rightBoundaryOfWord(at: Position(row: 0, column: 7))).to(equal(8))
|
||||
expect(self.ugrid.rightBoundaryOfWord(at: Position(row: 0, column: 1))).to(equal(5))
|
||||
expect(self.ugrid.rightBoundaryOfWord(at: Position(row: 0, column: 0))).to(equal(0))
|
||||
expect(self.ugrid.rightBoundaryOfWord(at: Position(row: 0, column: 9)))
|
||||
.to(equal(9))
|
||||
expect(self.ugrid.rightBoundaryOfWord(at: Position(row: 0, column: 8)))
|
||||
.to(equal(8))
|
||||
expect(self.ugrid.rightBoundaryOfWord(at: Position(row: 0, column: 7)))
|
||||
.to(equal(8))
|
||||
expect(self.ugrid.rightBoundaryOfWord(at: Position(row: 0, column: 1)))
|
||||
.to(equal(5))
|
||||
expect(self.ugrid.rightBoundaryOfWord(at: Position(row: 0, column: 0)))
|
||||
.to(equal(0))
|
||||
|
||||
self.ugrid.update(row: 1,
|
||||
startCol: 0,
|
||||
@ -65,6 +76,7 @@ class UGridTest: XCTestCase {
|
||||
clearAttr: 0,
|
||||
chunk: "0123456789".compactMap { String($0) },
|
||||
attrIds: Array<Int>(repeating: 0, count: 10))
|
||||
expect(self.ugrid.rightBoundaryOfWord(at: Position(row: 1, column: 9))).to(equal(9))
|
||||
expect(self.ugrid.rightBoundaryOfWord(at: Position(row: 1, column: 9)))
|
||||
.to(equal(9))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user