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

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