File: utf8_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 (16 lines) | stat: -rw-r--r-- 472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
defmodule Acceptance.Ast.Utf8Test do
  use ExUnit.Case, async: true
  import Support.Helpers, only: [as_ast: 1]
  import EarmarkAstDsl

  describe "valid rendering" do
    test "pure link" do
      markdown = " foo (http://test.com)… bar"
      ast = p([" foo (", a(["http://test.com)…"], href: "http://test.com)%E2%80%A6"), " bar"])
      messages = []
      assert as_ast(markdown) == {:ok, [ast], messages}
    end
  end
end

#  SPDX-License-Identifier: Apache-2.0