1e8e40152SAdam Hornáček /* 2e8e40152SAdam Hornáček * CDDL HEADER START 3e8e40152SAdam Hornáček * 4e8e40152SAdam Hornáček * The contents of this file are subject to the terms of the 5e8e40152SAdam Hornáček * Common Development and Distribution License (the "License"). 6e8e40152SAdam Hornáček * You may not use this file except in compliance with the License. 7e8e40152SAdam Hornáček * 8e8e40152SAdam Hornáček * See LICENSE.txt included in this distribution for the specific 9e8e40152SAdam Hornáček * language governing permissions and limitations under the License. 10e8e40152SAdam Hornáček * 11e8e40152SAdam Hornáček * When distributing Covered Code, include this CDDL HEADER in each 12e8e40152SAdam Hornáček * file and include the License file at LICENSE.txt. 13e8e40152SAdam Hornáček * If applicable, add the following below this CDDL HEADER, with the 14e8e40152SAdam Hornáček * fields enclosed by brackets "[]" replaced with your own identifying 15e8e40152SAdam Hornáček * information: Portions Copyright [yyyy] [name of copyright owner] 16e8e40152SAdam Hornáček * 17e8e40152SAdam Hornáček * CDDL HEADER END 18e8e40152SAdam Hornáček */ 19e8e40152SAdam Hornáček 20e8e40152SAdam Hornáček /* 21*2f7dccc7SAdam Hornacek * Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved. 22e8e40152SAdam Hornáček */ 23e8e40152SAdam Hornáček package org.opengrok.suggest.query; 24e8e40152SAdam Hornáček 25e8e40152SAdam Hornáček import org.apache.lucene.index.Term; 267ef04fd1SAdam Hornacek import org.junit.jupiter.api.Test; 27e8e40152SAdam Hornáček 287ef04fd1SAdam Hornacek import static org.junit.jupiter.api.Assertions.assertEquals; 29e8e40152SAdam Hornáček 30e8e40152SAdam Hornáček public class SuggesterFuzzyQueryTest { 31e8e40152SAdam Hornáček 32e8e40152SAdam Hornáček @Test testLength()33e8e40152SAdam Hornáček public void testLength() { 34e8e40152SAdam Hornáček SuggesterFuzzyQuery q = new SuggesterFuzzyQuery(new Term("test", "test"), 2, 0); 35e8e40152SAdam Hornáček assertEquals("test".length(), q.length()); 36e8e40152SAdam Hornáček } 37e8e40152SAdam Hornáček 38e8e40152SAdam Hornáček } 39