Pārlūkot izejas kodu

binary-search-tree: use Collections.singletonList

Fixes: #513
morrme 9 gadus atpakaļ
vecāks
revīzija
1f93082eeb

+ 1
- 1
exercises/binary-search-tree/src/test/java/BSTTest.java Parādīt failu

@@ -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);