Reenable some tests

This commit is contained in:
Vadim Petrochenkov
2020-11-27 00:19:26 +03:00
committed by Emilio Cobos Álvarez
parent 98b7a3f9b9
commit 7980288a94
20 changed files with 31 additions and 74 deletions
+2 -5
View File
@@ -23,11 +23,8 @@ pub const NEG_ONE: i8 = -1;
// Some doc for shifting //
pub const SHIFT: i64 = 3;
pub const XBOOL: i64 = 1;
// pub const XFALSE: i64 = (0 << SHIFT) | XBOOL; // Crashes Cython compiler
// pub const XTRUE: i64 = 1 << (SHIFT | XBOOL); // Crashes Cython compiler
pub const XFALSE1: i64 = (0 << 3) | 1;
pub const XTRUE1: i64 = 1 << (3 | 1);
pub const XFALSE2: i64 = 0 << SHIFT;
pub const XFALSE: i64 = (0 << SHIFT) | XBOOL;
pub const XTRUE: i64 = 1 << (SHIFT | XBOOL);
pub const CAST: u8 = 'A' as u8;
pub const DOUBLE_CAST: u32 = 1 as f32 as u32;
+2 -6
View File
@@ -11,14 +11,10 @@ pub enum AbsoluteFontWeight {
}
#[no_mangle]
pub extern "C" fn root(x: NamedLenArray, y: ValuedLenArray, z: AbsoluteFontWeight) { }
pub extern "C" fn root(x: NamedLenArray, y: ValuedLenArray, z: AbsoluteFontWeight) {}
#[no_mangle]
pub const X: i64 = 22 << 22;
// #[no_mangle]
// pub const Y: i64 = X + X; // Crashes Cython compiler
#[no_mangle]
pub const Y1: i64 = (22 << 22) + (22 << 22);
#[no_mangle]
pub const Y2: i64 = X;
pub const Y: i64 = X + X;