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

Hi all,

I follow

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!"

for it to pass tests.


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

1 Like