MCPcopy Index your code
hub / github.com/ccxt/ccxt / testSort

Method testSort

java/tests/src/main/java/tests/base/TestSort.java:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10public class TestSort extends BaseTest
11{
12 public void testSort()
13 {
14 // todo: other argument checks
15 var exchange = new Exchange(new java.util.HashMap<String, Object>() {{
16 put( "id", "sampleexchange" );
17 }});
18 Object arr = new java.util.ArrayList<Object>(java.util.Arrays.asList("b", "a", "c", "d"));
19 Object sortedArr = exchange.sort(arr);
20 AssertDeepEqual(exchange, null, "sort", sortedArr, new java.util.ArrayList<Object>(java.util.Arrays.asList("a", "b", "c", "d")));
21 }
22}

Callers

nothing calls this directly

Calls 2

sortMethod · 0.95
AssertDeepEqualMethod · 0.45

Tested by

no test coverage detected