Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions cool_example.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Distributions package is not installed with PackageExtensionsExample,
# therefore it must be available in your path for this example to be run

# Important: load it first for the package extension to be loaded
using Distributions

using PackageExtensionsExample

@assert length(methods(cool_function)) == 1

cool_function()
# should pring "calling cool_function()"
3 changes: 3 additions & 0 deletions uncool_example.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using PackageExtensionsExample

@assert length(methods(cool_function)) == 0