Skip to content

Commit 1fabcc7

Browse files
author
prayas7102
committed
clang-format changes
1 parent 8b90381 commit 1fabcc7

File tree

1 file changed

+13
-22
lines changed

1 file changed

+13
-22
lines changed

src/test/java/com/thealgorithms/searches/BM25InvertedIndexTest.java

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
package com.thealgorithms.searches;
22

3-
import org.junit.jupiter.api.BeforeAll;
4-
import org.junit.jupiter.api.Test;
5-
6-
import java.util.List;
7-
83
import static org.junit.jupiter.api.Assertions.assertEquals;
9-
import static org.junit.jupiter.api.Assertions.assertTrue;
104
import static org.junit.jupiter.api.Assertions.assertFalse;
5+
import static org.junit.jupiter.api.Assertions.assertTrue;
6+
7+
import java.util.List;
8+
import org.junit.jupiter.api.BeforeAll;
9+
import org.junit.jupiter.api.Test;
1110

1211
/**
1312
* Test Cases for Inverted Index with BM25
@@ -21,22 +20,14 @@ class BM25InvertedIndexTest {
2120
@BeforeAll
2221
static void setUp() {
2322
index = new BM25InvertedIndex();
24-
index.addMovie(1, "The Shawshank Redemption", 9.3, 1994,
25-
"Hope is a good thing. Maybe the best of things. And no good thing ever dies.");
26-
index.addMovie(2, "The Godfather", 9.2, 1972,
27-
"I'm gonna make him an offer he can't refuse.");
28-
index.addMovie(3, "The Dark Knight", 9.0, 2008,
29-
"You either die a hero or live long enough to see yourself become the villain.");
30-
index.addMovie(4, "Pulp Fiction", 8.9, 1994,
31-
"You know what they call a Quarter Pounder with Cheese in Paris? They call it a Royale with Cheese.");
32-
index.addMovie(5, "Good Will Hunting", 8.3, 1997,
33-
"Will Hunting is a genius and he has a good heart. The best of his abilities is yet to be explored.");
34-
index.addMovie(6, "It's a Wonderful Life", 8.6, 1946,
35-
"Each man's life touches so many other lives. If he wasn't around, it would leave an awfully good hole.");
36-
index.addMovie(7, "The Pursuit of Happyness", 8.0, 2006,
37-
"It was the pursuit of a better life, and a good opportunity to change things for the better.");
38-
index.addMovie(8, "A Few Good Men", 7.7, 1992,
39-
"You can't handle the truth! This movie has a lot of good moments and intense drama.");
23+
index.addMovie(1, "The Shawshank Redemption", 9.3, 1994, "Hope is a good thing. Maybe the best of things. And no good thing ever dies.");
24+
index.addMovie(2, "The Godfather", 9.2, 1972, "I'm gonna make him an offer he can't refuse.");
25+
index.addMovie(3, "The Dark Knight", 9.0, 2008, "You either die a hero or live long enough to see yourself become the villain.");
26+
index.addMovie(4, "Pulp Fiction", 8.9, 1994, "You know what they call a Quarter Pounder with Cheese in Paris? They call it a Royale with Cheese.");
27+
index.addMovie(5, "Good Will Hunting", 8.3, 1997, "Will Hunting is a genius and he has a good heart. The best of his abilities is yet to be explored.");
28+
index.addMovie(6, "It's a Wonderful Life", 8.6, 1946, "Each man's life touches so many other lives. If he wasn't around, it would leave an awfully good hole.");
29+
index.addMovie(7, "The Pursuit of Happyness", 8.0, 2006, "It was the pursuit of a better life, and a good opportunity to change things for the better.");
30+
index.addMovie(8, "A Few Good Men", 7.7, 1992, "You can't handle the truth! This movie has a lot of good moments and intense drama.");
4031
}
4132

4233
@Test

0 commit comments

Comments
 (0)