Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qvacua committed Feb 12, 2020
1 parent f206753 commit c01bd38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NvimView/NvimViewTests/TypesetterTest.swift
Expand Up @@ -343,7 +343,7 @@ class TypesetterWithoutLigaturesTest: XCTestCase {

let run = runs[0]
expect(run.font).to(equalFont(fira))
expect(run.glyphs).to(equal([133, 1023, 1023, 1152, 133]))
expect(run.glyphs).to(equal([134, 1021, 1021, 1171, 134]))
expect(run.positions).to(equal(
(1..<6).map {
CGPoint(x: offset.x + CGFloat($0) * firaWidth, y: offset.y)
Expand Down Expand Up @@ -619,7 +619,7 @@ class TypesetterWithLigaturesTest: XCTestCase {
expect(run.font).to(equalFont(fira))
// Ligatures of popular monospace fonts like Fira Code seem to be composed
// of multiple characters with the same advance as other normal characters.
expect(run.glyphs).to(equal([1623, 1623, 1065, 133]))
expect(run.glyphs).to(equal([1742, 1742, 1054, 134]))
expect(run.positions).to(equal(
(0..<4).map {
CGPoint(x: offset.x + CGFloat($0) * firaWidth, y: offset.y)
Expand Down

0 comments on commit c01bd38

Please sign in to comment.