Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Jul 20, 2023
1 parent 994fb37 commit 0acec99
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ void substrSubstringTest(SubstringInfo strInfo, SubstrSubstring substrSubstring)
assertEquals(strInfo.getRes(), eval(expr).stringValue());
}

/** Test `LTRIM` function. */
@ParameterizedTest
@MethodSource("getStringsForTrim")
void ltrim(String str) {
Expand All @@ -157,19 +156,17 @@ void ltrim(String str) {
assertEquals(str.stripLeading(), eval(expression).stringValue());
}

/** Test `RTRIM` function. */
@ParameterizedTest
@MethodSource("getStringsForTrim")
public void rtrim(String str) {
void rtrim(String str) {
FunctionExpression expression = DSL.rtrim(DSL.literal(str));
assertEquals(STRING, expression.type());
assertEquals(str.stripTrailing(), eval(expression).stringValue());
}

/** Test `TRIM` function. */
@ParameterizedTest
@MethodSource("getStringsForTrim")
public void trim(String str) {
void trim(String str) {
FunctionExpression expression = DSL.trim(DSL.literal(str));
assertEquals(STRING, expression.type());
assertEquals(str.trim(), eval(expression).stringValue());
Expand Down

0 comments on commit 0acec99

Please sign in to comment.