Hi all,
I follow https://julialang.org/contribute/developing_package/
but when I test the package, it fails, it just the beginning of Hello World, not even complicated. Why is it fails?
Hi all,
I follow https://julialang.org/contribute/developing_package/
but when I test the package, it fails, it just the beginning of Hello World, not even complicated. Why is it fails?
Because print
ing a string and returning it are very different (even though they behave similarly in the REPL). In particular, print
(ln
) return nothing
; you’d need to implement your function as
function greet_nagiconomi()
return "Bonjour!"
end
for it to pass tests.
Thanks for this explanation, the tutorial is wrong then to use print()