Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Feb 19, 2024
1 parent ecd9f55 commit 99d229b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ void testInitDurationListSub(boolean enableUniformContractDuration, int duplicat
// enableUniformContractDurationがtrueの場合の検証
assertEquals(duplicatePhoneNumberRate * 2 + expirationDateRate + noExpirationDateRate, list.size());
for (Duration d : list) {
assertEquals(start, d.start);
assertEquals(start.getTime(), d.start);
assertNull(d.end);
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ void testCreateParamsList() throws IOException {
// === numberOfHistoryRecordsがmaxNumberOfLinesHistoryCsvより大きいケース ===

config.numberOfHistoryRecords = 9123456;
generator = new TestDataGenerator(config, new Random(config.randomSeed), accessor);
List<Params> list = generator.createParamsList(config.maxNumberOfLinesHistoryCsv);
assertEquals(10, list.size());;

Expand Down Expand Up @@ -362,6 +363,7 @@ void testCreateParamsList() throws IOException {
config.numberOfHistoryRecords = 10000000000L;
config.numberOfContractsRecords = 1000000;
config.maxNumberOfLinesHistoryCsv = 1000000000;
generator = new TestDataGenerator(config, new Random(config.randomSeed), accessor);
list = generator.createParamsList(config.maxNumberOfLinesHistoryCsv);
assertEquals(config.numberOfHistoryRecords / config.maxNumberOfLinesHistoryCsv , list.size());;

Expand Down

0 comments on commit 99d229b

Please sign in to comment.