Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ten0 committed Nov 20, 2024
1 parent 079f403 commit 4877b59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions diesel_tests/tests/expressions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,15 +473,15 @@ fn test_arrays_c() {
use self::numbers::table as numbers;

let connection = &mut connection();
diesel::sql_query("INSERT INTO numbers (n) VALUES (7)")
diesel::sql_query("INSERT INTO numbers (n) VALUES (7), (8)")
.execute(connection)
.unwrap();

let value = diesel::select(array(numbers.select(n)))
let value = diesel::select(array(numbers.select(n).order_by(n)))
.first::<Vec<i32>>(connection)
.unwrap();

assert_eq!(value, vec![7]);
assert_eq!(value, vec![7, 8]);
}

#[test]
Expand Down

0 comments on commit 4877b59

Please sign in to comment.