Skip to content

Commit

Permalink
Add test proving #56 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Aug 31, 2019
1 parent 1c58049 commit 601b3cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ Cassette = "0.2.2"
CodeTracking = "0.5.0"
OrderedCollections = "1.1"
Revise = "2.1.3"
TimerOutputs = "~0.5.0"
julia = "1.1"


[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"

[targets]
test = ["Test"]
8 changes: 8 additions & 0 deletions test/test_pass.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,11 @@ end
res = Cassette.recurse(ctx, danger19)
@test res == 2
end

@testset "TimerOutputs based breaking case" begin
# This is the case from https://github.com/oxinabox/MagneticReadHead.jl/issues/56
# if that was not fixed then the `@run` line will cause errors
iob = IOBuffer()
@run TimerOutputs.print_header(iob, 0.5, 0.1, 3, 3, 7, false, true, 11, true, "oio")
@test !isempty(String(take!(iob)))
end

0 comments on commit 601b3cf

Please sign in to comment.