Skip to content

Commit

Permalink
fix: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
emptyOVO committed Sep 9, 2024
1 parent df1688d commit 3e7b5d2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public void testRandIntegerFunction() throws Exception {
TransformProcessor<String, String> processor2 = TransformProcessor
.create(config2, SourceDecoderFactory.createCsvDecoder(csvSource),
SinkEncoderFactory.createKvEncoder(kvSink));
// case: rand_integer(2, 89)
List<String> output3 = processor2.transform("2|89||", new HashMap<>());
// case: rand_integer(88, 89)
List<String> output3 = processor2.transform("88|89||", new HashMap<>());
Assert.assertEquals(1, output3.size());
Assert.assertEquals(output3.get(0), "result=" + new Random(2).nextInt(89));
Assert.assertEquals(output3.get(0), "result=" + new Random(89).nextInt(88));
}
}

0 comments on commit 3e7b5d2

Please sign in to comment.