mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-14 11:55:12 +08:00
27 lines
476 B
Elixir
27 lines
476 B
Elixir
defmodule LivebookTest do
|
|
use ExUnit.Case, async: true
|
|
|
|
test "live_markdown_to_elixir/1" do
|
|
markdown = """
|
|
# Lists
|
|
|
|
## Introduction
|
|
|
|
Let's generate a list of numbers:
|
|
|
|
```elixir
|
|
Enum.to_list(1..10)
|
|
```
|
|
"""
|
|
|
|
assert Livebook.live_markdown_to_elixir(markdown) == """
|
|
# Title: Lists
|
|
|
|
# ── Introduction ──
|
|
|
|
# Let's generate a list of numbers:
|
|
|
|
Enum.to_list(1..10)
|
|
"""
|
|
end
|
|
end
|