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

Function AssertRankQuantile_12121

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

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

Source from the content-addressed store, hash-verified

2699
2700 // Expecting an input ordered like [1, 2, 1, 2, 1]
2701 void AssertRankQuantile_12121() {
2702 for (auto null_placement : AllNullPlacements()) {
2703 AssertRankQuantile(SortOrder::Ascending, null_placement,
2704 "[0.3, 0.8, 0.3, 0.8, 0.3]");
2705 AssertRankQuantile(SortOrder::Descending, null_placement,
2706 "[0.7, 0.2, 0.7, 0.2, 0.7]");
2707 AssertRankNormal(SortOrder::Ascending, null_placement,
2708 "[-0.5244005127080409, 0.8416212335729143, -0.5244005127080409, "
2709 "0.8416212335729143, -0.5244005127080409]");
2710 AssertRankNormal(SortOrder::Descending, null_placement,
2711 "[0.5244005127080407, -0.8416212335729142, 0.5244005127080407, "
2712 "-0.8416212335729142, 0.5244005127080407]");
2713 }
2714 }
2715
2716 // Expecting an input ordered like [null, 1, null, 2, null]
2717 void AssertRankQuantile_N1N2N() {

Callers 2

TEST_FFunction · 0.85

Calls 1

AllNullPlacementsFunction · 0.85

Tested by

no test coverage detected