   alias Mix.Tasks.Profile.Cprof
 
   @moduletag apps: [:sample]
-  @expr "Enum.each(1..5, fn x -> String.Chars.Integer.to_string(x) end)"
+  @expr "Enum.each(1..5, &String.Chars.Integer.to_string/1)"
 
   setup do
     Mix.Project.push MixTest.Case.Sample

    end
  end

  test "applies func spec with {m, f, a}", context do
    in_tmp context.test, fn ->
      assert capture_io(fn ->
        Cprof.run(["--matching", "Enum.each/8", "-e", @expr])

    end
  end

  test "Module matching", context do
    in_tmp context.test, fn ->
      refute capture_io(fn ->
        Cprof.run(["--matching", "Enum", "-e", @expr])
