File: empty_test.exs

package info (click to toggle)
elixir-earmark-parser 1.4.44-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,148 kB
  • sloc: makefile: 9
file content (21 lines) | stat: -rw-r--r-- 383 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
defmodule Acceptance.Ast.EmptyTest do
  use ExUnit.Case, async: true

  @moduletag :ast

  test "empty" do
    markdown = ""
    ast = []
    messages = []

    assert EarmarkParser.as_ast(markdown) == {:ok, ast, messages}
  end

  test "almost empty" do
    markdown = "  "
    ast = []
    messages = []

    assert EarmarkParser.as_ast(markdown) == {:ok, ast, messages}
  end
end