}

#[test]
fn test_in_array_invalid_null() {
    let mut params = Map::new();
    params.assign("in", Value::Null).ok();
    params.assign("other",
                  Value::Array(vec![Value::String("1".into()), Value::U64(2)]))
        .ok();

    let mut rules = BTreeMap::new();
    rules.insert("in", vec![Rule::InArray("other")]);

    let result = validate(&rules, params);
