123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- discard """
- output: ''''''
- disabled: "true"
- """
- # All operations involving uint64 are commented out
- # as they're not yet supported.
- # All other operations are handled by implicit conversions from uints to ints
- # uint64 could be supported but would need special implementation of the operators
- # unsigned < signed
- doAssert 10'u8 < 20'i8
- doAssert 10'u8 < 20'i16
- doAssert 10'u8 < 20'i32
- doAssert 10'u8 < 20'i64
- doAssert 10'u16 < 20'i8
- doAssert 10'u16 < 20'i16
- doAssert 10'u16 < 20'i32
- doAssert 10'u16 < 20'i64
- doAssert 10'u32 < 20'i8
- doAssert 10'u32 < 20'i16
- doAssert 10'u32 < 20'i32
- doAssert 10'u32 < 20'i64
- # doAssert 10'u64 < 20'i8
- # doAssert 10'u64 < 20'i16
- # doAssert 10'u64 < 20'i32
- # doAssert 10'u64 < 20'i64
- # signed < unsigned
- doAssert 10'i8 < 20'u8
- doAssert 10'i8 < 20'u16
- doAssert 10'i8 < 20'u32
- # doAssert 10'i8 < 20'u64
- doAssert 10'i16 < 20'u8
- doAssert 10'i16 < 20'u16
- doAssert 10'i16 < 20'u32
- # doAssert 10'i16 < 20'u64
- doAssert 10'i32 < 20'u8
- doAssert 10'i32 < 20'u16
- doAssert 10'i32 < 20'u32
- # doAssert 10'i32 < 20'u64
- doAssert 10'i64 < 20'u8
- doAssert 10'i64 < 20'u16
- doAssert 10'i64 < 20'u32
- # doAssert 10'i64 < 20'u64
- # unsigned <= signed
- doAssert 10'u8 <= 20'i8
- doAssert 10'u8 <= 20'i16
- doAssert 10'u8 <= 20'i32
- doAssert 10'u8 <= 20'i64
- doAssert 10'u16 <= 20'i8
- doAssert 10'u16 <= 20'i16
- doAssert 10'u16 <= 20'i32
- doAssert 10'u16 <= 20'i64
- doAssert 10'u32 <= 20'i8
- doAssert 10'u32 <= 20'i16
- doAssert 10'u32 <= 20'i32
- doAssert 10'u32 <= 20'i64
- # doAssert 10'u64 <= 20'i8
- # doAssert 10'u64 <= 20'i16
- # doAssert 10'u64 <= 20'i32
- # doAssert 10'u64 <= 20'i64
- # signed <= unsigned
- doAssert 10'i8 <= 20'u8
- doAssert 10'i8 <= 20'u16
- doAssert 10'i8 <= 20'u32
- # doAssert 10'i8 <= 20'u64
- doAssert 10'i16 <= 20'u8
- doAssert 10'i16 <= 20'u16
- doAssert 10'i16 <= 20'u32
- # doAssert 10'i16 <= 20'u64
- doAssert 10'i32 <= 20'u8
- doAssert 10'i32 <= 20'u16
- doAssert 10'i32 <= 20'u32
- # doAssert 10'i32 <= 20'u64
- doAssert 10'i64 <= 20'u8
- doAssert 10'i64 <= 20'u16
- doAssert 10'i64 <= 20'u32
- # doAssert 10'i64 <= 20'u64
- # signed == unsigned
- doAssert 10'i8 == 10'u8
- doAssert 10'i8 == 10'u16
- doAssert 10'i8 == 10'u32
- # doAssert 10'i8 == 10'u64
- doAssert 10'i16 == 10'u8
- doAssert 10'i16 == 10'u16
- doAssert 10'i16 == 10'u32
- # doAssert 10'i16 == 10'u64
- doAssert 10'i32 == 10'u8
- doAssert 10'i32 == 10'u16
- doAssert 10'i32 == 10'u32
- # doAssert 10'i32 == 10'u64
- doAssert 10'i64 == 10'u8
- doAssert 10'i64 == 10'u16
- doAssert 10'i64 == 10'u32
- # doAssert 10'i64 == 10'u64
- # unsigned == signed
- doAssert 10'u8 == 10'i8
- doAssert 10'u8 == 10'i16
- doAssert 10'u8 == 10'i32
- # doAssert 10'u8 == 10'i64
- doAssert 10'u16 == 10'i8
- doAssert 10'u16 == 10'i16
- doAssert 10'u16 == 10'i32
- # doAssert 10'u16 == 10'i64
- doAssert 10'u32 == 10'i8
- doAssert 10'u32 == 10'i16
- doAssert 10'u32 == 10'i32
- # doAssert 10'u32 == 10'i64
- # doAssert 10'u64 == 10'i8
- # doAssert 10'u64 == 10'i16
- # doAssert 10'u64 == 10'i32
- # doAssert 10'u64 == 10'i64
|