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 -4
View File
@@ -38,11 +38,9 @@
#define XBOOL 1
#define XFALSE1 ((0 << 3) | 1)
#define XFALSE ((0 << SHIFT) | XBOOL)
#define XTRUE1 (1 << (3 | 1))
#define XFALSE2 (0 << SHIFT)
#define XTRUE (1 << (SHIFT | XBOOL))
#define CAST (uint8_t)'A'
+2 -4
View File
@@ -38,11 +38,9 @@
#define XBOOL 1
#define XFALSE1 ((0 << 3) | 1)
#define XFALSE ((0 << SHIFT) | XBOOL)
#define XTRUE1 (1 << (3 | 1))
#define XFALSE2 (0 << SHIFT)
#define XTRUE (1 << (SHIFT | XBOOL))
#define CAST (uint8_t)'A'
+2 -4
View File
@@ -38,11 +38,9 @@
#define XBOOL 1
#define XFALSE1 ((0 << 3) | 1)
#define XFALSE ((0 << SHIFT) | XBOOL)
#define XTRUE1 (1 << (3 | 1))
#define XFALSE2 (0 << SHIFT)
#define XTRUE (1 << (SHIFT | XBOOL))
#define CAST (uint8_t)'A'
+2 -4
View File
@@ -38,11 +38,9 @@
#define XBOOL 1
#define XFALSE1 ((0 << 3) | 1)
#define XFALSE ((0 << SHIFT) | XBOOL)
#define XTRUE1 (1 << (3 | 1))
#define XFALSE2 (0 << SHIFT)
#define XTRUE (1 << (SHIFT | XBOOL))
#define CAST (uint8_t)'A'
+2 -4
View File
@@ -35,11 +35,9 @@ static const int64_t SHIFT = 3;
static const int64_t XBOOL = 1;
static const int64_t XFALSE1 = ((0 << 3) | 1);
static const int64_t XFALSE = ((0 << SHIFT) | XBOOL);
static const int64_t XTRUE1 = (1 << (3 | 1));
static const int64_t XFALSE2 = (0 << SHIFT);
static const int64_t XTRUE = (1 << (SHIFT | XBOOL));
static const uint8_t CAST = (uint8_t)'A';
+2 -4
View File
@@ -37,11 +37,9 @@ cdef extern from *:
const int64_t XBOOL # = 1
const int64_t XFALSE1 # = ((0 << 3) | 1)
const int64_t XFALSE # = ((0 << SHIFT) | XBOOL)
const int64_t XTRUE1 # = (1 << (3 | 1))
const int64_t XFALSE2 # = (0 << SHIFT)
const int64_t XTRUE # = (1 << (SHIFT | XBOOL))
const uint8_t CAST # = <uint8_t>'A'
+2 -4
View File
@@ -38,11 +38,9 @@
#define XBOOL 1
#define XFALSE1 ((0 << 3) | 1)
#define XFALSE ((0 << SHIFT) | XBOOL)
#define XTRUE1 (1 << (3 | 1))
#define XFALSE2 (0 << SHIFT)
#define XTRUE (1 << (SHIFT | XBOOL))
#define CAST (uint8_t)'A'
+2 -4
View File
@@ -38,11 +38,9 @@
#define XBOOL 1
#define XFALSE1 ((0 << 3) | 1)
#define XFALSE ((0 << SHIFT) | XBOOL)
#define XTRUE1 (1 << (3 | 1))
#define XFALSE2 (0 << SHIFT)
#define XTRUE (1 << (SHIFT | XBOOL))
#define CAST (uint8_t)'A'
+2 -4
View File
@@ -37,11 +37,9 @@ cdef extern from *:
const int64_t XBOOL # = 1
const int64_t XFALSE1 # = ((0 << 3) | 1)
const int64_t XFALSE # = ((0 << SHIFT) | XBOOL)
const int64_t XTRUE1 # = (1 << (3 | 1))
const int64_t XFALSE2 # = (0 << SHIFT)
const int64_t XTRUE # = (1 << (SHIFT | XBOOL))
const uint8_t CAST # = <uint8_t>'A'
+1 -3
View File
@@ -7,9 +7,7 @@
#define PREFIX_X (22 << 22)
#define PREFIX_Y1 ((22 << 22) + (22 << 22))
#define PREFIX_Y2 PREFIX_X
#define PREFIX_Y (PREFIX_X + PREFIX_X)
typedef int32_t PREFIX_NamedLenArray[PREFIX_LEN];
+1 -3
View File
@@ -7,9 +7,7 @@
#define PREFIX_X (22 << 22)
#define PREFIX_Y1 ((22 << 22) + (22 << 22))
#define PREFIX_Y2 PREFIX_X
#define PREFIX_Y (PREFIX_X + PREFIX_X)
typedef int32_t PREFIX_NamedLenArray[PREFIX_LEN];
+1 -3
View File
@@ -7,9 +7,7 @@
#define PREFIX_X (22 << 22)
#define PREFIX_Y1 ((22 << 22) + (22 << 22))
#define PREFIX_Y2 PREFIX_X
#define PREFIX_Y (PREFIX_X + PREFIX_X)
typedef int32_t PREFIX_NamedLenArray[PREFIX_LEN];
+1 -3
View File
@@ -7,9 +7,7 @@
#define PREFIX_X (22 << 22)
#define PREFIX_Y1 ((22 << 22) + (22 << 22))
#define PREFIX_Y2 PREFIX_X
#define PREFIX_Y (PREFIX_X + PREFIX_X)
typedef int32_t PREFIX_NamedLenArray[PREFIX_LEN];
+1 -3
View File
@@ -8,9 +8,7 @@ static const int32_t PREFIX_LEN = 22;
static const int64_t PREFIX_X = (22 << 22);
static const int64_t PREFIX_Y1 = ((22 << 22) + (22 << 22));
static const int64_t PREFIX_Y2 = PREFIX_X;
static const int64_t PREFIX_Y = (PREFIX_X + PREFIX_X);
using PREFIX_NamedLenArray = int32_t[PREFIX_LEN];
+1 -3
View File
@@ -10,9 +10,7 @@ cdef extern from *:
const int64_t PREFIX_X # = (22 << 22)
const int64_t PREFIX_Y1 # = ((22 << 22) + (22 << 22))
const int64_t PREFIX_Y2 # = PREFIX_X
const int64_t PREFIX_Y # = (PREFIX_X + PREFIX_X)
ctypedef int32_t PREFIX_NamedLenArray[PREFIX_LEN];
+1 -3
View File
@@ -7,9 +7,7 @@
#define PREFIX_X (22 << 22)
#define PREFIX_Y1 ((22 << 22) + (22 << 22))
#define PREFIX_Y2 PREFIX_X
#define PREFIX_Y (PREFIX_X + PREFIX_X)
typedef int32_t PREFIX_NamedLenArray[PREFIX_LEN];
+1 -3
View File
@@ -7,9 +7,7 @@
#define PREFIX_X (22 << 22)
#define PREFIX_Y1 ((22 << 22) + (22 << 22))
#define PREFIX_Y2 PREFIX_X
#define PREFIX_Y (PREFIX_X + PREFIX_X)
typedef int32_t PREFIX_NamedLenArray[PREFIX_LEN];
+1 -3
View File
@@ -10,9 +10,7 @@ cdef extern from *:
const int64_t PREFIX_X # = (22 << 22)
const int64_t PREFIX_Y1 # = ((22 << 22) + (22 << 22))
const int64_t PREFIX_Y2 # = PREFIX_X
const int64_t PREFIX_Y # = (PREFIX_X + PREFIX_X)
ctypedef int32_t PREFIX_NamedLenArray[PREFIX_LEN];
+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;