use super::*;
use burn_tensor::TensorData;

#[test]
fn should_support_int_empty() {
    let shape = [2, 2];
    let tensor = TestTensorInt::<2>::empty(shape, &Default::default());
    assert_eq!(tensor.shape(), shape.into())
}

#[test]
fn should_support_int_zeros() {
    let shape = [2, 2];
    let tensor = TestTensorInt::<2>::zeros(shape, &Default::default());
    assert_eq!(tensor.shape(), shape.into());

    tensor
        .into_data()
        .assert_eq(&TensorData::from([[0, 0], [0, 0]]), false);
}

#[test]
fn should_support_int_ones() {
    let shape = [2, 2];
    let tensor = TestTensorInt::<2>::ones(shape, &Default::default());
    assert_eq!(tensor.shape(), shape.into());

    tensor
        .into_data()
        .assert_eq(&TensorData::from([[1, 1], [1, 1]]), false);
}
