Files
Massoud Afrashteh 9dc7611411 Julia samples (#108)
* Add julialang binary search sample

* Add unit test

* Add julialang selection sort sample

* Change julia suffix to jl

* Add recursion and quick sort with tests

* add quick sort

* Add hash table samples

* Add BFS

* Changed file names

* Add dijkstras

* Add Dijkstras test
2019-11-12 09:19:21 -06:00

25 lines
388 B
Julia

using Test
using Suppressor
function greet2(name)
println("how are you, ",name,"?")
end
function bye()
println("ok bye!")
end
function greet(name)
println("hello, ",name,"!")
greet2(name)
println("getting ready to say bye...")
bye()
end
result = @capture_out greet("adit")
@test result == "hello, adit!
how are you, adit?
getting ready to say bye...
ok bye!
"