Skip to content

Commit

Permalink
- F skip blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
isidore committed Feb 13, 2024
1 parent a9560b2 commit 52ab4ce
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ private static <T> Function1<String, T> getTransformerForClass(Class<T> tranform

public Queryable<Tuple<String, T>> parse(String expected)
{
return Queryable.as(expected.lines()).select(l -> l.split("->")[0].trim()).select(l -> transformer.call(l));
return Queryable.as(expected.lines())
.select(l -> l.split("->")[0].trim())
.where(l -> !l.isEmpty())
.select(l -> transformer.call(l));
}
public String print(String input, Object output)
{
Expand Down

0 comments on commit 52ab4ce

Please sign in to comment.