use cpp_core::Ref;
use qt_core::QVectorOfInt;

#[test]
fn vector1() {
    unsafe {
        let mut vec = QVectorOfInt::new_0a();
        vec.append_int(Ref::from_raw_ref(&1));
        vec.append_int(Ref::from_raw_ref(&2));
        vec.append_int(Ref::from_raw_ref(&4));
        assert_eq!(vec.count_0a(), 3);
        assert_eq!(*vec.at(0), 1);
        assert_eq!(*vec.at(1), 2);
        assert_eq!(*vec.at(2), 4);
    }
}
