Fix trimming tests.
This commit is contained in:
parent
604666ed6a
commit
b030346926
@ -39,7 +39,7 @@ public class WbStringConstant implements WbExpression<StringValue> {
|
||||
Validate.notNull(value);
|
||||
Validate.isTrue(!value.isEmpty()); // for now we don't accept empty strings
|
||||
// because in the variable counterpart of this expression, they are skipped
|
||||
this.value = value;
|
||||
this.value = value.trim();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -54,7 +54,7 @@ public class WbStringVariableTest extends WbVariableTest<StringValue> {
|
||||
|
||||
@Test
|
||||
public void testLeadingWhitespace() {
|
||||
evaluatesTo(Datamodel.makeStringValue("dirty"), " dirty");
|
||||
evaluatesTo(Datamodel.makeStringValue("dirty"), " dirty");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user