//! The one-line smoke check: push onto a single-element array.

use immutability_helper::{update, Spec, Value};

#[test]
fn push_y_onto_x() {
    let original = Value::array(vec![Value::from("x")]);
    let result = update(&original, &Spec::push(vec![Value::from("y")])).unwrap();
    assert_eq!(
        result,
        Value::array(vec![Value::from("x"), Value::from("y")])
    );
}
