Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Oct 31, 2024
1 parent 6066089 commit 4e9a177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/multi.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use mlua::{Error, ExternalError, IntoLuaMulti, Lua, MultiValue, Result, String, Value, Variadic};
use mlua::{Error, ExternalError, Integer, IntoLuaMulti, Lua, MultiValue, Result, String, Value, Variadic};

#[test]
fn test_result_conversions() -> Result<()> {
Expand Down Expand Up @@ -65,7 +65,7 @@ fn test_multivalue() {
multi.push_back(Value::Integer(1));
multi.push_back(Value::Integer(2));
multi.push_front(Value::Integer(3));
assert_eq!(multi.iter().filter_map(|v| v.as_integer()).sum::<i64>(), 6);
assert_eq!(multi.iter().filter_map(|v| v.as_integer()).sum::<Integer>(), 6);

let vec = multi.into_vec();
assert_eq!(&vec, &[Value::Integer(3), Value::Integer(1), Value::Integer(2)]);
Expand Down

0 comments on commit 4e9a177

Please sign in to comment.