Create New Package in Julia: Why the test is fail?

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?


1 Like

Because printing 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.

2 Likes

Thanks for this explanation, the tutorial is wrong then to use print()

1 Like