---
title: "Comment by Iaam Onkara on \"Hassle free Testing Elixir modules in iEx shell\" | Hashnode"
description: "so in your example above both types of Calculator will be aliased as Calculator hence the only Calculator you will have access to thru Alias will be Logrithmic"
url: "https://hashnode.com/posts/hassle-free-testing-elixir-modules-in-iex-shell/5f6ef7eb60599c596c472bd3/comment/5f6fa9f75fd46b6601bbf9dc"
---

[Discussion](https://hashnode.com/posts/hassle-free-testing-elixir-modules-in-iex-shell/5f6ef7eb60599c596c472bd3)

Comment [Hassle free Testing Elixir modules in iEx shell](https://hashnode.com/posts/hassle-free-testing-elixir-modules-in-iex-shell/5f6ef7eb60599c596c472bd3)

[Iaam Onkara](https://hashnode.com/@onkara)

[Sep 26, 2020](https://hashnode.com/posts/hassle-free-testing-elixir-modules-in-iex-shell/5f6ef7eb60599c596c472bd3/comment/5f6fa9f75fd46b6601bbf9dc)

so in your example above both types of Calculator will be aliased as Calculator hence the only Calculator you will have access to thru Alias will be Logrithmic one.

Better to do

```
alias Mathematics.Calculator
alias Mathematics.Logrithmic.Calculator, as: LogCalc
```

[AbulAsar S.](https://hashnode.com/@abulasar)

[Sep 26, 2020](https://hashnode.com/posts/hassle-free-testing-elixir-modules-in-iex-shell/5f6ef7eb60599c596c472bd3/comment/5f6fa9f75fd46b6601bbf9dc#reply-5f6fbfc80ba48d6624c91b33)

Ah, thanks for pointing. I randomly added that example. I'll change it. Thanks
