fix clippy unnecessary hashes

This commit is contained in:
Anton-4 2024-01-01 16:38:36 +01:00
parent 5d98783cf2
commit 1126f85b5a
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
21 changed files with 4158 additions and 4158 deletions

View file

@ -20,9 +20,9 @@ use roc_std::RocList;
fn empty_len() {
assert_evals_to!(
indoc!(
r#"
r"
Set.len (Set.empty {})
"#
"
),
0,
usize
@ -34,9 +34,9 @@ fn empty_len() {
fn single_len() {
assert_evals_to!(
indoc!(
r#"
r"
Set.len (Set.single 42)
"#
"
),
1,
usize
@ -48,9 +48,9 @@ fn single_len() {
fn single_to_list() {
assert_evals_to!(
indoc!(
r#"
r"
Set.toList (Set.single 42)
"#
"
),
RocList::from_slice(&[42]),
RocList<i64>
@ -58,9 +58,9 @@ fn single_to_list() {
assert_evals_to!(
indoc!(
r#"
r"
Set.toList (Set.single 1)
"#
"
),
RocList::from_slice(&[1]),
RocList<i64>
@ -72,13 +72,13 @@ fn single_to_list() {
fn insert() {
assert_evals_to!(
indoc!(
r#"
r"
Set.empty {}
|> Set.insert 0
|> Set.insert 1
|> Set.insert 2
|> Set.toList
"#
"
),
RocList::from_slice(&[0, 1, 2]),
RocList<i64>
@ -90,14 +90,14 @@ fn insert() {
fn remove() {
assert_evals_to!(
indoc!(
r#"
r"
Set.empty {}
|> Set.insert 0
|> Set.insert 1
|> Set.remove 1
|> Set.remove 2
|> Set.toList
"#
"
),
RocList::from_slice(&[0]),
RocList<i64>
@ -109,7 +109,7 @@ fn remove() {
fn union() {
assert_evals_to!(
indoc!(
r#"
r"
set1 : Set.Set I64
set1 = Set.fromList [1,2]
@ -118,7 +118,7 @@ fn union() {
Set.union set1 set2
|> Set.toList
"#
"
),
RocList::from_slice(&[1, 3, 4, 2]),
RocList<i64>
@ -130,7 +130,7 @@ fn union() {
fn difference() {
assert_evals_to!(
indoc!(
r#"
r"
set1 : Set.Set I64
set1 = Set.fromList [1,2]
@ -139,7 +139,7 @@ fn difference() {
Set.difference set1 set2
|> Set.toList
"#
"
),
RocList::from_slice(&[2]),
RocList<i64>
@ -151,7 +151,7 @@ fn difference() {
fn intersection() {
assert_evals_to!(
indoc!(
r#"
r"
set1 : Set.Set I64
set1 = Set.fromList [1,2]
@ -160,7 +160,7 @@ fn intersection() {
Set.intersection set1 set2
|> Set.toList
"#
"
),
RocList::from_slice(&[1]),
RocList<i64>
@ -172,9 +172,9 @@ fn intersection() {
fn walk_sum() {
assert_evals_to!(
indoc!(
r#"
r"
Set.walk (Set.fromList [1,2,3]) 0 (\x, y -> x + y)
"#
"
),
6,
i64
@ -186,9 +186,9 @@ fn walk_sum() {
fn contains() {
assert_evals_to!(
indoc!(
r#"
r"
Set.contains (Set.fromList [1,3,4]) 4
"#
"
),
true,
bool
@ -196,9 +196,9 @@ fn contains() {
assert_evals_to!(
indoc!(
r#"
r"
Set.contains (Set.fromList [1,3,4]) 2
"#
"
),
false,
bool
@ -210,11 +210,11 @@ fn contains() {
fn from_list() {
assert_evals_to!(
indoc!(
r#"
r"
[1,2,2,3,1,4]
|> Set.fromList
|> Set.toList
"#
"
),
RocList::from_slice(&[1, 2, 3, 4]),
RocList<i64>
@ -222,14 +222,14 @@ fn from_list() {
assert_evals_to!(
indoc!(
r#"
r"
empty : List I64
empty = []
empty
|> Set.fromList
|> Set.toList
"#
"
),
RocList::<i64>::default(),
RocList<i64>
@ -242,11 +242,11 @@ fn from_list() {
fn from_list_void() {
assert_evals_to!(
indoc!(
r#"
r"
[]
|> Set.fromList
|> Set.toList
"#
"
),
RocList::<i64>::default(),
RocList<i64>
@ -258,9 +258,9 @@ fn from_list_void() {
fn to_list_empty() {
assert_evals_to!(
indoc!(
r#"
r"
Set.toList (Set.empty {})
"#
"
),
RocList::<std::convert::Infallible>::default(),
RocList<std::convert::Infallible>