Begin doctests

pull/1186/head
Rick Carlino 2020-04-03 14:22:27 -05:00
parent 19d42c5a25
commit 52f0e6fba0
3 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,4 @@
defmodule FarmbotCeleryScript.AST.FactoryTest do
use ExUnit.Case, async: true
doctest FarmbotCeleryScript.AST.Factory
end