Skip to content

Commit

Permalink
Fixing timezone to avoid test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hadrienk committed Jun 7, 2024
1 parent 12a1363 commit 022cce7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public void testAtZone() throws ScriptException {
@Test
void testTimeAggregation() throws ScriptException {

// This test is an attempt to implement the time aggregate. The stat of the group all
// This test is an attempt to implement the time aggregate. The state of the group all
// prevents us to finish it. See https://github.com/sdmx-twg/vtl/issues/456
var ds1 = new InMemoryDataset(List.of(
new Structured.Component("id", String.class, Dataset.Role.IDENTIFIER),
Expand All @@ -285,7 +285,7 @@ void testTimeAggregation() throws ScriptException {
//engine.eval("res := ds1[aggr test := sum(me1) group all time_agg(\"A\",_,me1)];");

// Test with own function.
engine.eval("res := ds1[aggr test := sum(me1) group all truncate_time(t, \"year\")];");
engine.eval("res := ds1[aggr test := sum(me1) group all truncate_time(t, \"year\", \"Europe/Oslo\")];");
var actual = (Dataset) engine.get("res");
actual.getDataAsMap().forEach(System.out::println);
assertThat(actual.getDataAsMap()).containsExactly(
Expand Down

0 comments on commit 022cce7

Please sign in to comment.