From dfc6ad2c85f70dff286d755bdc97963bd39f9539 Mon Sep 17 00:00:00 2001 From: Adam Blank <blank@cs.washington.edu> Date: Fri, 20 Jan 2017 23:33:56 -0800 Subject: [PATCH] Fixes NGramToNextChoicesMapTests.java to use BST --- src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java b/src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java index ff587dc..2a78382 100644 --- a/src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java +++ b/src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java @@ -10,16 +10,16 @@ import cse332.datastructures.containers.Item; import cse332.interfaces.misc.Dictionary; import cse332.types.AlphabeticString; import cse332.types.NGram; -import datastructures.dictionaries.HashTrieMap; +import cse332.datastructures.trees.BinarySearchTree; import p2.wordsuggestor.NGramToNextChoicesMap; import tests.TestsUtility; public class NGramToNextChoicesMapTests extends TestsUtility { private static Supplier<Dictionary<NGram, Dictionary<AlphabeticString, Integer>>> newOuter = - () -> new HashTrieMap<String, NGram, Dictionary<AlphabeticString, Integer>>(NGram.class); + () -> new BinarySearchTree(); - private static Supplier<Dictionary<AlphabeticString, Integer>> newInner = - () -> new HashTrieMap<Character, AlphabeticString, Integer>(AlphabeticString.class); + private static Supplier<Dictionary<AlphabeticString, Integer>> newInner = + () -> new BinarySearchTree(); public static void main(String[] args) { new NGramToNextChoicesMapTests().run(); -- GitLab