Skip to content

Commit

Permalink
Use Compat.Printf correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnoack committed Feb 2, 2018
1 parent e7a80b7 commit 34cd5d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion samples/sample_pango_text.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## header to provide surface and context
using Cairo, Compat, Printf
using Cairo
using Compat.Printf

c = CairoRGBSurface(256,256);
cr = CairoContext(c);

Expand Down
9 changes: 4 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,13 @@ end
samples_files = setdiff(samples_files, files_to_exclude)
end

sc = asyncmap(samples_files, ntasks=4) do test_file_name
b = success(`$(Base.julia_cmd()) $(joinpath(samples_dir_path, test_file_name))`)
@testset "sample: $test_file_name" for test_file_name in samples_files
mod = Module(Symbol(test_file_name))
@eval mod include($(joinpath(samples_dir_path, test_file_name)))
output_png_name = replace(test_file_name,".jl",".png")
b &= isfile(output_png_name)
@test isfile(output_png_name)
rm(output_png_name)
return b
end
@test all(sc)
end

# Run some painting, check the colored pixels by counting them
Expand Down

0 comments on commit 34cd5d8

Please sign in to comment.