mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
clippy
This commit is contained in:
parent
1b7f2e7b55
commit
5f878aee93
11 changed files with 84 additions and 84 deletions
|
@ -1,5 +1,5 @@
|
|||
#![cfg(all(
|
||||
any(feature = "gen-llvm"),
|
||||
feature = "gen-llvm",
|
||||
not(debug_assertions) // https://github.com/roc-lang/roc/issues/3898
|
||||
))]
|
||||
|
||||
|
@ -16,7 +16,7 @@ use indoc::indoc;
|
|||
use roc_std::RocList;
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn empty_len() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -30,7 +30,7 @@ fn empty_len() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn single_len() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -44,7 +44,7 @@ fn single_len() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn single_to_list() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -68,7 +68,7 @@ fn single_to_list() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn insert() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -86,7 +86,7 @@ fn insert() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn remove() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -105,7 +105,7 @@ fn remove() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn union() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -126,7 +126,7 @@ fn union() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn difference() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -147,7 +147,7 @@ fn difference() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn intersection() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -168,7 +168,7 @@ fn intersection() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn walk_sum() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -182,7 +182,7 @@ fn walk_sum() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn contains() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -206,7 +206,7 @@ fn contains() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn from_list() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -238,7 +238,7 @@ fn from_list() {
|
|||
|
||||
#[test]
|
||||
#[ignore]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn from_list_void() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -254,7 +254,7 @@ fn from_list_void() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn to_list_empty() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -268,7 +268,7 @@ fn to_list_empty() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn from_list_result() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -289,7 +289,7 @@ fn from_list_result() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[cfg(feature = "gen-llvm")]
|
||||
fn resolve_set_eq_issue_4671() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue