From eb59d9892dbc0acd8c524b436ace9e2d9da9e606 Mon Sep 17 00:00:00 2001
From: Adam Blank <blank@cs.washington.edu>
Date: Mon, 23 Jan 2017 08:50:45 -0800
Subject: [PATCH] Hash -> Tree

---
 src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java b/src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java
index 2a78382..bf12ff3 100644
--- a/src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java
+++ b/src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java
@@ -2,7 +2,7 @@ package tests.gitlab.ckpt1;
 
 import java.util.Arrays;
 import java.util.Comparator;
-import java.util.HashMap;
+import java.util.TreeMap;
 import java.util.Map;
 import java.util.function.Supplier;
 
@@ -148,7 +148,7 @@ public class NGramToNextChoicesMapTests extends TestsUtility {
         };
         
         // yes this is awful, but i can't think of a better way to do it atm
-        Map<NGram, Item<String, Integer>[]> answers = new HashMap<>();
+        Map<NGram, Item<String, Integer>[]> answers = new TreeMap<>();
         answers.put(ngrams[0], (Item<String, Integer>[]) new Item[3]);
         answers.get(ngrams[0])[0] = new Item<String, Integer>("bip", 1);
         answers.get(ngrams[0])[1] = new Item<String, Integer>("boop", 1);
-- 
GitLab