Add greater than comparison

This commit is contained in:
Ahmad Sattar 2023-01-18 20:21:57 +01:00
parent 3683e9d436
commit 6670a5d205
No known key found for this signature in database
GPG key ID: 6EAC5AB400A49604
5 changed files with 128 additions and 2 deletions

View file

@ -1402,7 +1402,7 @@ fn lte_u64() {
}
#[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn gt_u64() {
assert_evals_to!("2u64 > 1u64", true, bool);
assert_evals_to!("2u64 > 2u64", false, bool);
@ -1440,7 +1440,7 @@ fn lte_i64() {
}
#[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn gt_i64() {
assert_evals_to!("2 > 1", true, bool);
assert_evals_to!("2 > 2", false, bool);