defmodule LiveBook.Evaluator.StringFormatterTest do use ExUnit.Case, async: true alias LiveBook.Evaluator.StringFormatter doctest StringFormatter describe "inspect_as_html/2" do test "uses span tags for term highlighting" do assert ~s{[1, 2]} == StringFormatter.inspect_as_html([1, 2]) end test "escapes HTML in the inspect result" do assert ~s{"1 < 2"} == StringFormatter.inspect_as_html("1 < 2") end end end