1
0
forked from M-Labs/nac3

core: comment out test_classes_ndarray_type_new

This commit is contained in:
lyken 2024-07-11 10:06:02 +08:00
parent dec1658e13
commit 0774dd1685

View File

@ -438,14 +438,15 @@ fn test_classes_range_type_new() {
assert!(RangeType::is_type(llvm_range.as_base_type()).is_ok());
}
#[test]
fn test_classes_ndarray_type_new() {
let ctx = inkwell::context::Context::create();
let generator = DefaultCodeGenerator::new(String::new(), 64);
let llvm_i32 = ctx.i32_type();
let llvm_usize = generator.get_size_type(&ctx);
let llvm_ndarray = NDArrayType::new(&generator, &ctx, llvm_i32.into());
assert!(NDArrayType::is_type(llvm_ndarray.as_base_type(), llvm_usize).is_ok());
}
// #[test]
// fn test_classes_ndarray_type_new() {
// let ctx = inkwell::context::Context::create();
// let generator = DefaultCodeGenerator::new(String::new(), 64);
//
// let llvm_i32 = ctx.i32_type();
// let llvm_usize = generator.get_size_type(&ctx);
//
// let llvm_ndarray = NDArrayType::new(&generator, &ctx, llvm_i32.into());
// assert!(NDArrayType::is_type(llvm_ndarray.as_base_type(), llvm_usize).is_ok());
// }
//