Skip to content

Commit

Permalink
Add cell with a single attribute to WorksheetTests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDesiatov committed Nov 24, 2018
1 parent b6d9cc3 commit 48cbceb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/CoreXLSXTests/WorksheetTests.swift
Expand Up @@ -34,6 +34,10 @@ private let xml = """
<row r="1" spans="1:5" s="2" customFormat="1" ht="15.75" thickBot="1" x14ac:dyDescent="0.3">
<c r="A1" s="3" t="s"/>
</row>
<row r="2">
<c r="E2">
</c>
</row>
<row r="3" spans="1:5" x14ac:dyDescent="0.25">
<c r="A3" t="s"/>
</row>
Expand Down Expand Up @@ -86,7 +90,7 @@ class WorksheetTests: XCTestCase {
do {
let ws = try decoder.decode(Worksheet.self, from: xml)
XCTAssertEqual(ws.columns?.items, parsed)
XCTAssertEqual(ws.cells(atRows: [1,3]).count, 2)
XCTAssertEqual(ws.cells(atRows: 1...3).count, 3)
} catch {
XCTAssert(false, "unexpected error \(error)")
}
Expand Down

0 comments on commit 48cbceb

Please sign in to comment.