// Path: src/main/java/io/github/karols/hocr4j/MatchWords.java
// @Nullable
// public static Bounds[] ofList(@Nonnull List<Word> words, @Nonnull String[] strings) {
//     Parser parser = new Parser(words, Arrays.asList(strings));
//     List<ListW2SM> parses = parser.parse();
//     if (parses.size() == 1) {
//         Bounds[] result = new Bounds[strings.length];
//         ListW2SM onlyParse = parses.get(0);
//         assert (onlyParse.length == strings.length);
//         int i = 0;
//         for (WordToStringMatch match : onlyParse) {
//             result[i] = Bounds.ofAll(match.words);
//             i++;
//         }
//         return result;
//     }
//     return null;
// }//tested for easy examples


import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static io.github.karols.hocr4j.MatchWords.ofList;
import static org.junit.Assert.assertArrayEquals;
package io.github.karols.hocr4j;




/**
 * MatchWords Tester.
 *
 * @author <Authors name>
 * @version 1.0
 * @since <pre>Nov 20, 2013</pre>
 */
public class MatchWordsTest {

    private Bounds b12 = new Bounds(1, 0, 2, 0);
// Path: src/main/java/io/github/karols/hocr4j/MatchWords.java
// @Nullable
// public static Bounds[] ofList(@Nonnull List<Word> words, @Nonnull String[] strings) {
//     Parser parser = new Parser(words, Arrays.asList(strings));
//     List<ListW2SM> parses = parser.parse();
//     if (parses.size() == 1) {
//         Bounds[] result = new Bounds[strings.length];
//         ListW2SM onlyParse = parses.get(0);
//         assert (onlyParse.length == strings.length);
//         int i = 0;
//         for (WordToStringMatch match : onlyParse) {
//             result[i] = Bounds.ofAll(match.words);
//             i++;
//         }
//         return result;
//     }
//     return null;
// }//tested for easy examples


// Path: src/test/java/io/github/karols/hocr4j/MatchWordsTest.java
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static io.github.karols.hocr4j.MatchWords.ofList;
import static org.junit.Assert.assertArrayEquals;

package io.github.karols.hocr4j;




/**
 * MatchWords Tester.
 *
 * @author <Authors name>
 * @version 1.0
 * @since <pre>Nov 20, 2013</pre>
 */
public class MatchWordsTest {

    private Bounds b12 = new Bounds(1, 0, 2, 0);
    private Bounds b13 = new Bounds(1, 0, 3, 0);