Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pomo-mondreganto committed Oct 8, 2024
1 parent 66333b7 commit a95da98
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions crates/polars-sql/tests/functions_aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,17 @@ fn test_quantile_disc_conformance() {
let mut actual = DataFrame::default();
for &q in &[0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0] {
let res = ctx
.execute(&format!("SELECT {q}::float as q, QUANTILE_DISC(Data, {q}) as Data FROM df"))
.unwrap()
.collect()
.unwrap();
.execute(&format!(
"SELECT {q}::float as q, QUANTILE_DISC(Data, {q}) as Data FROM df"
))
.unwrap()
.collect()
.unwrap();
actual = actual.vstack(&res).unwrap();
}

assert!(expected.equals(&actual), "expected {expected:?}, got {actual:?}")
assert!(
expected.equals(&actual),
"expected {expected:?}, got {actual:?}"
)
}

0 comments on commit a95da98

Please sign in to comment.