Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit eb0e263

Browse files
committed
more linter
1 parent d2d203d commit eb0e263

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

worker/internal/benthos/transformers/generate_float_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func Test_GenerateRandomFloatPositiveRange(t *testing.T) {
2020

2121
assert.GreaterOrEqual(t, res, min, "The result should be greater or equal to the minimum")
2222
assert.LessOrEqual(t, res, max, "The result should be less or equal to the maximum")
23-
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res), "The float shoudl have reduced precision based on the ")
23+
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res), "The float should have reduced precision based on the ")
2424

2525
}
2626

@@ -36,7 +36,7 @@ func Test_GenerateRandomFloatNegativeRange(t *testing.T) {
3636
// swapped because negative min number is the max
3737
assert.GreaterOrEqual(t, res, max, "The result should be greater or equal to the minimum")
3838
assert.LessOrEqual(t, res, min, "The result should be less or equal to the maximum")
39-
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res), "The float shoudl have reduced precision based on the ")
39+
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res), "The float should have reduced precision based on the ")
4040

4141
}
4242

@@ -51,7 +51,7 @@ func Test_GenerateRandomFloatNegativetoPositiveRange(t *testing.T) {
5151

5252
assert.GreaterOrEqual(t, res, min, "The result should be greater or equal to the minimum")
5353
assert.LessOrEqual(t, res, max, "The result should be less or equal to the maximum")
54-
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res), "The float shoudl have reduced precision based on the ")
54+
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res), "The float should have reduced precision based on the ")
5555

5656
}
5757

@@ -75,7 +75,7 @@ func Test_GenerateRandomFloatRandomizePositive(t *testing.T) {
7575
assert.LessOrEqual(t, res, -min, "The result should be less or equal to the maximum")
7676
}
7777

78-
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res), "The float shoudl have reduced precision based on the ")
78+
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res), "The float should have reduced precision based on the ")
7979

8080
}
8181

@@ -97,7 +97,7 @@ func Test_GenerateRandomFloatRandomizeNegative(t *testing.T) {
9797
assert.GreaterOrEqual(t, res, max, "The result should be greater or equal to the minimum")
9898
assert.LessOrEqual(t, res, min, "The result should be less or equal to the maximum")
9999
}
100-
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res), "The float shoudl have reduced precision based on the ")
100+
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res), "The float should have reduced precision based on the ")
101101

102102
}
103103

@@ -119,7 +119,7 @@ func Test_GenerateRandomFloatRandomizeNegativeToPositive(t *testing.T) {
119119
assert.GreaterOrEqual(t, res, -max, "The result should be greater or equal to the minimum")
120120
assert.LessOrEqual(t, res, min, "The result should be less or equal to the maximum")
121121
}
122-
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res), "The float shoudl have reduced precision based on the ")
122+
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res), "The float should have reduced precision based on the ")
123123

124124
}
125125

@@ -139,6 +139,6 @@ func Test_GenerateRandomFloatTransformer(t *testing.T) {
139139

140140
assert.GreaterOrEqual(t, res.(float64), min, "The result should be greater or equal to the minimum")
141141
assert.LessOrEqual(t, res.(float64), max, "The result should be less or equal to the maximum")
142-
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res.(float64)), "The float shoudl have reduced precision based on the ")
142+
assert.Equal(t, precision, transformer_utils.GetFloat64Length(res.(float64)), "The float should have reduced precision based on the ")
143143

144144
}

0 commit comments

Comments
 (0)