MCPcopy Create free account
hub / github.com/apache/arrow / AssertRankQuantile_12121

Function AssertRankQuantile_12121

cpp/src/arrow/compute/kernels/vector_sort_test.cc:2728–2741  ·  view source on GitHub ↗

Expecting an input ordered like [1, 2, 1, 2, 1]

Source from the content-addressed store, hash-verified

2726
2727 // Expecting an input ordered like [1, 2, 1, 2, 1]
2728 void AssertRankQuantile_12121() {
2729 for (auto null_placement : AllNullPlacements()) {
2730 AssertRankQuantile(SortOrder::Ascending, null_placement,
2731 "[0.3, 0.8, 0.3, 0.8, 0.3]");
2732 AssertRankQuantile(SortOrder::Descending, null_placement,
2733 "[0.7, 0.2, 0.7, 0.2, 0.7]");
2734 AssertRankNormal(SortOrder::Ascending, null_placement,
2735 "[-0.5244005127080409, 0.8416212335729143, -0.5244005127080409, "
2736 "0.8416212335729143, -0.5244005127080409]");
2737 AssertRankNormal(SortOrder::Descending, null_placement,
2738 "[0.5244005127080407, -0.8416212335729142, 0.5244005127080407, "
2739 "-0.8416212335729142, 0.5244005127080407]");
2740 }
2741 }
2742
2743 // Expecting an input ordered like [null, 1, null, 2, null]
2744 void AssertRankQuantile_N1N2N() {

Callers 2

TEST_FFunction · 0.85

Calls 1

AllNullPlacementsFunction · 0.85

Tested by

no test coverage detected