Begin doctests
parent
19d42c5a25
commit
52f0e6fba0
Binary file not shown.
|
@ -5,6 +5,17 @@ defmodule FarmbotCeleryScript.AST.Factory do
|
|||
|
||||
alias FarmbotCeleryScript.AST
|
||||
|
||||
@doc """
|
||||
Create a new AST to work with.
|
||||
iex(6)> FarmbotCeleryScript.AST.Factory.new()
|
||||
%FarmbotCeleryScript.AST{
|
||||
args: nil,
|
||||
body: [],
|
||||
comment: nil,
|
||||
kind: nil,
|
||||
meta: nil
|
||||
}
|
||||
"""
|
||||
def new do
|
||||
%AST{body: []}
|
||||
end
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
defmodule FarmbotCeleryScript.AST.FactoryTest do
|
||||
use ExUnit.Case, async: true
|
||||
doctest FarmbotCeleryScript.AST.Factory
|
||||
end
|
Loading…
Reference in New Issue