     result =
       with {:ok, n1} <- ok(11),
            n2 = n1 + 10,
-           {:ok, n3} <- ok(22), do: n2 + n3
+           {:ok, n3} <- ok(22),
+           do: n2 + n3
+
     assert result == 43
 
     result =
       with {:ok, n1} <- ok(11),
            n2 = n1 + 10,
-           {:ok, n3} <- error(), do: n2 + n3
+           {:ok, n3} <- error(),
+           do: n2 + n3
+
     assert result == :error
   end
 
   test "does not leak variables to else" do
     state = 1
-    result = with 1 <- state, state = 2, :ok <- error(), do: state, else: (_ -> state)
+
+    result =
+      with 1 <- state,
+           state = 2,
+           :ok <- error(),
+           do: state,
+           else: (_ -> state)
+
     assert result == 1
     assert state == 1
   end

Code.require_file "../test_helper.exs", __DIR__

defmodule Kernel.WithTest do
  use ExUnit.Case, async: true

  end

  test "two levels with" do
    result =
      with(
        {:ok, n1} <- ok(11),
        n2 <- 22,
        do: n1 + n2
      )

    assert result == 33

    result =
      with(
        n1 <- 11,
        {:ok, n2} <- error(),
        do: n1 + n2
      )

    assert result == :error
  end

