Skip to content

Commit

Permalink
feat: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloSanchi committed Aug 8, 2024
1 parent 2e0c32e commit 6f54d50
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ void testConfigBuilder() {

@Test
void testConfigThrowErrorWhenChunkSizeIsNegative() {
assertThatThrownBy(() -> Config.builder().chunkSize(-1).build())
.isInstanceOf(IllegalArgumentException.class)
assertThatThrownBy(() -> Config.builder().chunkSize(-1).build()).isInstanceOf(IllegalArgumentException.class)
.hasMessage("Chunk size must be greater than 0");
}

@Test
void testConfigThrowErrorWhenChunkOverlapIsNegative() {
assertThatThrownBy(() -> Config.builder().chunkOverlap(-1).build())
.isInstanceOf(IllegalArgumentException.class)
assertThatThrownBy(() -> Config.builder().chunkOverlap(-1).build()).isInstanceOf(IllegalArgumentException.class)
.hasMessage("Chunk overlap must be greater than or equal to 0");
}

Expand Down

0 comments on commit 6f54d50

Please sign in to comment.