Skip to content

Commit

Permalink
Merge pull request #22 from oxinabox/ox/fixit
Browse files Browse the repository at this point in the history
make sure to use `@iron_debug` not `@debug`
  • Loading branch information
oxinabox authored Feb 17, 2019
2 parents 702b8e3 + 2cb753f commit 9e815bf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/run_non_ui_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ test_files = [
"test_inner_repl.jl",
"test_utils.jl",
"test_breakpoints.jl",
"test_behavour.jl",
]

@testset "MagneticReadHead" begin
Expand Down
19 changes: 19 additions & 0 deletions test/test_behavour.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using MagneticReadHead
using Test

"""
DemoException()
A custom exception type for testing that exceptions are thrown
"""
struct DemoException <: Exception
end

@testset "Should not block throwing errors" begin
foo() = throw(DemoException())
@test_throws(DemoException, (@iron_debug foo()))


bar() = map(_->foo(), 1:10)
@test_throws(DemoException, (@iron_debug foo()))

end

0 comments on commit 9e815bf

Please sign in to comment.