use ravencol::RawFrame;
use ravencol::Datum;
use std::ffi::OsString;
#[test]
fn columns_test(){
let datos = get_data();
assert_eq!(datos.columns.get(1),Some("col_b"));
}
#[test]
fn row_test(){
let datos = get_data();
assert_eq!(datos.records[1].get(0),Some("13"));
assert_eq!(datos.records[1].get(1),Some("25a"));
}
#[test]
fn index_test(){
let datos = get_data();
assert_eq!(datos.col_index("col_b"),Some(1));
}
#[test]
fn full_col_test(){
let datos = get_data();
let mut iter = datos.column("col_b").unwrap();
assert_eq!(iter.next().unwrap(), Datum::Integer(18));
assert_eq!(iter.next().unwrap(), Datum::NotNumber("25a"));
assert_eq!(iter.next().unwrap(), Datum::Float(23.0));
assert_eq!(iter.next().unwrap(), Datum::None);
assert_eq!(iter.next().unwrap(), Datum::Integer(3));
assert_eq!(iter.next(), None);
}
#[test]
fn type_col_test(){
let datos = get_data();
let col_typ_test: Vec