 
     @tag :pending
     test "score map with one entry gives one result" do
-      {jose, score} = @jose
-      scores_by_player =
-        HighScore.new()
-        |> HighScore.add_player(jose)
-        |> HighScore.update_score(jose, score)
-        |> HighScore.order_by_players()
-
-      assert scores_by_player == [@jose]
+      scores_by_player =
+        HighScore.new()
+        |> HighScore.add_player("José Valim")
+        |> HighScore.update_score("José Valim", 486_373)
+        |> HighScore.order_by_players()
+
+      assert scores_by_player == [{"José Valim", 486_373}]
     end
 
     @tag :pending
     test "score map with two entries gives ordered result" do
-      {jose, jose_score} = @jose
-      {dave, dave_score} = @dave
-      scores_by_player =
-        HighScore.new()
-        |> HighScore.add_player(jose, jose_score)
-        |> HighScore.add_player(dave, dave_score)
-        |> HighScore.order_by_players()
-
-      assert scores_by_player == [@dave, @jose]
+      scores_by_player =
+        HighScore.new()
+        |> HighScore.add_player("José Valim", 486_373)
+        |> HighScore.add_player("Dave Thomas", 2_374)
+        |> HighScore.order_by_players()
+
+      assert scores_by_player == [{"Dave Thomas", 2_374}, {"José Valim", 486_373}]
     end
 
     @tag :pending
     test "score map with multiple entries gives ordered result" do
-      {jose, jose_score} = @jose
-      {dave, dave_score} = @dave
-      {chris, chris_score} = @chris
-      {sasa, sasa_score} = @sasa
-
-      scores_by_player =
-        HighScore.new()
-        |> HighScore.add_player(jose, jose_score)
-        |> HighScore.add_player(dave, dave_score)
-        |> HighScore.add_player(chris, chris_score)
-        |> HighScore.add_player(sasa, sasa_score)
-        |> HighScore.order_by_players()
-
-      assert scores_by_player == [@chris, @dave, @jose, @sasa]
+      scores_by_player =
+        HighScore.new()
+        |> HighScore.add_player("José Valim", 486_373)
+        |> HighScore.add_player("Dave Thomas", 2_374)
+        |> HighScore.add_player("Chris McCord", 0)
+        |> HighScore.add_player("Saša Jurić", 762)
+        |> HighScore.order_by_players()
+
+      assert scores_by_player == [
+               {"Chris McCord", 0},
+               {"Dave Thomas", 2_374},
+               {"José Valim", 486_373},
+               {"Saša Jurić", 762}
+             ]
     end
   end
 

defmodule HighScoreTest do
  use ExUnit.Case

  # Trivia: Scores are based on lines added to the elixir-lang/elixir
  # github repository as of Apr 27, 2020.
  @chris {"Chris McCord", 0}
  @jose {"José Valim", 486_373}
  @dave {"Dave Thomas", 2_374}
  @sasa {"Saša Jurić", 762}

  # @tag :pending
  test "new/1 result in empty score map" do


    @tag :pending
    test "score map with one entry gives one result" do
      scores_by_player =
        HighScore.new()
        |> HighScore.add_player("José Valim")
        |> HighScore.update_score("José Valim", 486_373)
        |> HighScore.order_by_scores()

      assert scores_by_player == [{"José Valim", 486_373}]
    end

    @tag :pending
    test "score map with two entries gives ordered result" do
      scores_by_player =
        HighScore.new()
        |> HighScore.add_player("José Valim", 486_373)
        |> HighScore.add_player("Dave Thomas", 2_374)
        |> HighScore.order_by_scores()

      assert scores_by_player == [{"José Valim", 486_373}, {"Dave Thomas", 2_374}]
    end

    @tag :pending
    test "score map with multiple entries gives ordered result" do
      scores_by_player =
        HighScore.new()
        |> HighScore.add_player("José Valim", 486_373)
        |> HighScore.add_player("Dave Thomas", 2_374)
        |> HighScore.add_player("Chris McCord", 0)
        |> HighScore.add_player("Saša Jurić", 762)
        |> HighScore.order_by_scores()

      assert scores_by_player == [
               {"José Valim", 486_373},
               {"Dave Thomas", 2_374},
               {"Saša Jurić", 762},
               {"Chris McCord", 0}
             ]
    end
  end
end
