This commit is contained in:
Kevin Gibbons 2019-04-25 21:17:25 -07:00
parent a32d2553fc
commit 70480ad29d

View File

@ -132,6 +132,8 @@ fn from_entries() {
entry_one.push(&"bar".into());
entry_two.push(&"baz".into());
entry_two.push(&42.into());
array.push(&entry_one);
array.push(&entry_two);
let object = Object::from_entries(&array).unwrap();
assert_eq!(Reflect::get(object.as_ref(), &"foo".into()).unwrap(), "bar");