[jsword-svn] jsword/java/jswordtest/org/crosswire/jsword/book s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Sat Jun 11 19:39:31 MST 2005
Update of /cvs/jsword/jsword/java/jswordtest/org/crosswire/jsword/book
In directory www.crosswire.org:/tmp/cvs-serv32246/java/jswordtest/org/crosswire/jsword/book
Modified Files:
SentanceUtilTest.java
Log Message:
Made full book names a configurable default and used it.
Fixed the name of Readings.
Index: SentanceUtilTest.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jswordtest/org/crosswire/jsword/book/SentanceUtilTest.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** SentanceUtilTest.java 17 May 2005 00:43:17 -0000 1.11
--- SentanceUtilTest.java 12 Jun 2005 02:39:28 -0000 1.12
***************
*** 122,129 ****
assertEquals(CaseType.getCase("F-ed"), CaseType.SENTENCE); //$NON-NLS-1$
assertEquals(CaseType.getCase("F00d"), CaseType.SENTENCE); //$NON-NLS-1$
- assertEquals(CaseType.getCase("fRED"), CaseType.MIXED); //$NON-NLS-1$
- assertEquals(CaseType.getCase("frED"), CaseType.MIXED); //$NON-NLS-1$
- assertEquals(CaseType.getCase("freD"), CaseType.MIXED); //$NON-NLS-1$
- assertEquals(CaseType.getCase("LORD's"), CaseType.MIXED); //$NON-NLS-1$
assertEquals(CaseType.getCase(""), CaseType.LOWER); //$NON-NLS-1$
// The results of this are undefined so
--- 122,125 ----
***************
*** 151,156 ****
assertEquals(CaseType.SENTENCE.setCase("fr00"), "Fr00"); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(CaseType.SENTENCE.setCase("fr=_"), "Fr=_"); //$NON-NLS-1$ //$NON-NLS-2$
- assertEquals(CaseType.MIXED.setCase("lord's"), "LORD's"); //$NON-NLS-1$ //$NON-NLS-2$
- assertEquals(CaseType.MIXED.setCase("LORD's"), "LORD's"); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(CaseType.LOWER.setCase("no-one"), "no-one"); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(CaseType.UPPER.setCase("no-one"), "NO-ONE"); //$NON-NLS-1$ //$NON-NLS-2$
--- 147,150 ----
***************
*** 165,170 ****
assertEquals(CaseType.UPPER.setCase(""), ""); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(CaseType.SENTENCE.setCase(""), ""); //$NON-NLS-1$ //$NON-NLS-2$
- try { CaseType.MIXED.setCase("god-inspired"); fail(); } //$NON-NLS-1$
- catch (IllegalArgumentException ex) { }
}
--- 159,162 ----
More information about the jsword-svn
mailing list