             #{line}
         """)
 
-        acc
+        {cases + 1, failures + 1}
       end
     end)
   end

defmodule GraphemesTest do
  def run do
    IO.puts("Running GraphemeBreakTest.txt")
    count = run_grapheme_break()
    IO.puts("Got #{count} failures")
  end

  defp run_grapheme_break do

    |> File.stream!()
    |> Stream.filter(&match?("÷" <> _, &1))
    |> Stream.reject(&(&1 =~ "D800"))
    |> Enum.reduce({0, 0}, fn line, {cases, failures} ->
      [string | _] = String.split(line, "#", parts: 2)
      {string, graphemes} = parse_grapheme_break(string)

      if String.graphemes(string) == graphemes do
        {cases + 1, failures}
      else
        IO.puts("""
        ============== Failure ##{failures + 1} ==============

            String.graphemes(#{inspect(string)})

