blob: d45d435682d3608dd852ec75743d1309004f7269 [file] [log] [blame]
/*
* Copyright (c) 2000-2006 JetBrains s.r.o. All Rights Reserved.
*/
package com.intellij.ide.search;
import com.intellij.ide.ui.search.PorterStemmerUtil;
import junit.framework.TestCase;
/**
* User: anna
* Date: 15-Feb-2006
*/
public class PorterStemmerTest extends TestCase {
public void test() throws Exception {
assertEquals("name", PorterStemmerUtil.stem("names"));
assertEquals("j2ee", PorterStemmerUtil.stem("j2ee"));
assertEquals("keyword1", PorterStemmerUtil.stem("keyword1"));
assertEquals("initi", PorterStemmerUtil.stem("initializer"));
assertEquals("initi", PorterStemmerUtil.stem("initialization"));
assertEquals("go2file", PorterStemmerUtil.stem("go2file"));
}
}