From acb2a0cd26a4e9b48817ed0c2ff6a3408b2ba2d1 Mon Sep 17 00:00:00 2001 From: Ben Elkin <8xe8n-cm@online.de> Date: Mon, 29 Apr 2024 17:09:29 +0200 Subject: [PATCH] add examples --- cool_example.jl | 12 ++++++++++++ uncool_example.jl | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 cool_example.jl create mode 100644 uncool_example.jl diff --git a/cool_example.jl b/cool_example.jl new file mode 100644 index 0000000..3986d63 --- /dev/null +++ b/cool_example.jl @@ -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()" \ No newline at end of file diff --git a/uncool_example.jl b/uncool_example.jl new file mode 100644 index 0000000..7ded530 --- /dev/null +++ b/uncool_example.jl @@ -0,0 +1,3 @@ +using PackageExtensionsExample + +@assert length(methods(cool_function)) == 0 \ No newline at end of file