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

**URL:** https://discourse.julialang.org/t/create-new-package-in-julia-why-the-test-is-fail/84166
**Category:** General Usage
**Created:** [July 13, 2022, 12:00pm UTC](https://discourse.julialang.org/t/create-new-package-in-julia-why-the-test-is-fail/84166 "2022-07-13T12:00:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [July 13, 2022, 12:00pm UTC](https://discourse.julialang.org/t/create-new-package-in-julia-why-the-test-is-fail/84166/1 "2022-07-13T12:00:47Z")

</div>

Hi all,

I follow [https://julialang.org/contribute/developing\_package/](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?

 ![Capture d’écran_2022-07-13_18-55-22](https://global.discourse-cdn.com/julialang/original/3X/1/c/1cfc34e498963c802a83961596a4df0b070c7134.png)  
 ![Capture d’écran_2022-07-13_18-55-34](https://global.discourse-cdn.com/julialang/original/3X/7/6/763af11ff62208ca82b72bd2b7aab1ee45052055.png)

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [July 13, 2022, 12:18pm UTC](https://discourse.julialang.org/t/create-new-package-in-julia-why-the-test-is-fail/84166/2 "2022-07-13T12:18:04Z")

</div>

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

```julia
function greet_nagiconomi()
    return "Bonjour!"
end

```

for it to pass tests.

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [July 13, 2022, 12:43pm UTC](https://discourse.julialang.org/t/create-new-package-in-julia-why-the-test-is-fail/84166/3 "2022-07-13T12:43:14Z")

</div>

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