[Javamatch-cvs] javamatch/src/net/sourceforge/javamatch/query/test QuerySetTest.java,1.2,1.3
Status: Pre-Alpha
Brought to you by:
iterson
From: Walter v. I. <it...@us...> - 2004-09-14 06:59:47
|
Update of /cvsroot/javamatch/javamatch/src/net/sourceforge/javamatch/query/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23954/src/net/sourceforge/javamatch/query/test Modified Files: QuerySetTest.java Log Message: Also count-in required subqueries when calculating the weight Index: QuerySetTest.java =================================================================== RCS file: /cvsroot/javamatch/javamatch/src/net/sourceforge/javamatch/query/test/QuerySetTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** QuerySetTest.java 13 Sep 2004 13:39:24 -0000 1.2 --- QuerySetTest.java 14 Sep 2004 06:59:37 -0000 1.3 *************** *** 100,104 **** curQuery.addRequired(new ConstantMatch(1.0f)); curQuery.addPreferred(new ConstantMatch(0.3f)); ! assertEquals(0.3f, curQuery.getMatchValue(new Object()), 0.01f); } catch (MatchException me) { fail("unable to match"); --- 100,104 ---- curQuery.addRequired(new ConstantMatch(1.0f)); curQuery.addPreferred(new ConstantMatch(0.3f)); ! assertEquals(0.15f, curQuery.getMatchValue(new Object()), 0.01f); } catch (MatchException me) { fail("unable to match"); |