Skip to content

Commit 2321fa6

Browse files
committed
[Add] alias, import and use module attrs
1 parent 40c9412 commit 2321fa6

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

alias.exs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
defmodule Stats do
2+
alias Math.List, as: List
3+
end

struct.exs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
defmodule User do
2+
defstruct name: "Mauricio", age: 22
3+
end

use.exs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
defmodule AssertionTest do
2+
use ExUnit.Case, async: true
3+
4+
test "always pass" do
5+
assert true
6+
7+
end
8+
end

0 commit comments

Comments
 (0)