Przeglądaj źródła

Merge pull request #517 from morrme/patch-4

binary-search-tree: use Collections.singletonList
Stuart Kent 9 lat temu
rodzic
commit
8eec4e1386

+ 1
- 1
exercises/binary-search-tree/src/test/java/BSTTest.java Wyświetl plik

@@ -105,7 +105,7 @@ public class BSTTest {
105 105
     public void sortsSingleElement() {
106 106
         BST<Integer> sut = new BST<>();
107 107
         List<Integer> expected = Collections.unmodifiableList(
108
-                Arrays.asList(4)
108
+                Collections.singletonList(4)
109 109
         );
110 110
 
111 111
         sut.insert(4);