Skip to content

Commit af5a949

Browse files
committed
adapt tests
1 parent 51ef2e4 commit af5a949

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/runtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using Test
1313
@test FA.ft_init()
1414
end
1515

16-
face = FA.findfont("hack")
16+
face = FA.findfont("hack")[2]
1717

1818
@testset "basics" begin
1919
@test :size in propertynames(face)
@@ -261,12 +261,12 @@ end
261261
append!(FA.valid_fontpaths, valid_fontpaths)
262262
for font in fonts
263263
@testset "finding $font" begin
264-
@test findfont(font) !== nothing
264+
@test findfont(font)[2] !== nothing
265265
end
266266
end
267267
@testset "find in additional dir" begin
268-
@test findfont("Hack") === nothing
269-
@test findfont("Hack", additional_fonts = @__DIR__) !== nothing
268+
@test findfont("Hack")[2] === nothing
269+
@test findfont("Hack", additional_fonts = @__DIR__)[2] !== nothing
270270
end
271271
end
272272

0 commit comments

Comments
 (0)