Skip to content

Commit

Permalink
Bring a spec's variables values into canonical form when serializing via
Browse files Browse the repository at this point in the history
the `CSV!CSVWrite` operator.

[Bug]
  • Loading branch information
lemmy committed Nov 1, 2022
1 parent 489852f commit 7373da0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/tlc2/overrides/CSV.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public static Value write(final StringValue template, final Value parameter, fin
throw new EvalException(EC.TLC_MODULE_ONE_ARGUMENT_ERROR,
new String[] { "CSVWrite", "sequence", Values.ppr(parameter.toString()) });
}
tv.deepNormalize();
final Object[] params = Arrays.asList(tv.getElems()).stream().map(v -> v.toString())
.toArray(size -> new Object[size]);
Files.write(Paths.get(absolutePath.val.toString()),
Expand Down

0 comments on commit 7373da0

Please sign in to comment.