[jsword-svn] jsword/java/jswordtest/org/crosswire/jsword/passage s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Thu Aug 11 04:28:05 MST 2005


Update of /cvs/jsword/jsword/java/jswordtest/org/crosswire/jsword/passage
In directory www.crosswire.org:/tmp/cvs-serv14264/java/jswordtest/org/crosswire/jsword/passage

Modified Files:
	VerseTest.java 
Log Message:
Some corrections and additions to Bible book names.
Added java calls to simple.xsl

Index: VerseTest.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jswordtest/org/crosswire/jsword/passage/VerseTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** VerseTest.java	27 Jul 2005 23:25:45 -0000	1.10
--- VerseTest.java	11 Aug 2005 11:28:03 -0000	1.11
***************
*** 479,492 ****
      {
          VerseRange vr = new VerseRange(gen11, gen11);
!         assertEquals(AccuracyType.fromText(AccuracyType.tokenize("Gen 1:1"), vr), AccuracyType.BOOK_VERSE); //$NON-NLS-1$
!         assertEquals(AccuracyType.fromText(AccuracyType.tokenize("Gen 1"), vr), AccuracyType.BOOK_CHAPTER); //$NON-NLS-1$
!         assertEquals(AccuracyType.fromText(AccuracyType.tokenize("Jude 1"), vr), AccuracyType.BOOK_VERSE); //$NON-NLS-1$
!         assertEquals(AccuracyType.fromText(AccuracyType.tokenize("Jude 1:1"), vr), AccuracyType.BOOK_VERSE); //$NON-NLS-1$
!         assertEquals(AccuracyType.fromText(AccuracyType.tokenize("Gen"), vr), AccuracyType.BOOK_ONLY); //$NON-NLS-1$
!         assertEquals(AccuracyType.fromText(AccuracyType.tokenize("1:1"), vr), AccuracyType.CHAPTER_VERSE); //$NON-NLS-1$
!         assertEquals(AccuracyType.fromText(AccuracyType.tokenize("1"), vr), AccuracyType.VERSE_ONLY); //$NON-NLS-1$
          try
          {
!             AccuracyType.fromText(AccuracyType.tokenize("complete and utter rubbish"), vr); //$NON-NLS-1$
              fail();
          }
--- 479,492 ----
      {
          VerseRange vr = new VerseRange(gen11, gen11);
!         assertEquals(AccuracyType.fromText("Gen 1:1", AccuracyType.tokenize("Gen 1:1"), vr), AccuracyType.BOOK_VERSE); //$NON-NLS-1$ //$NON-NLS-2$
!         assertEquals(AccuracyType.fromText("Gen 1", AccuracyType.tokenize("Gen 1"), vr), AccuracyType.BOOK_CHAPTER); //$NON-NLS-1$ //$NON-NLS-2$
!         assertEquals(AccuracyType.fromText("Jude 1", AccuracyType.tokenize("Jude 1"), vr), AccuracyType.BOOK_VERSE); //$NON-NLS-1$ //$NON-NLS-2$
!         assertEquals(AccuracyType.fromText("Jude 1:1", AccuracyType.tokenize("Jude 1:1"), vr), AccuracyType.BOOK_VERSE); //$NON-NLS-1$ //$NON-NLS-2$
!         assertEquals(AccuracyType.fromText("Gen", AccuracyType.tokenize("Gen"), vr), AccuracyType.BOOK_ONLY); //$NON-NLS-1$ //$NON-NLS-2$
!         assertEquals(AccuracyType.fromText("1:1", AccuracyType.tokenize("1:1"), vr), AccuracyType.CHAPTER_VERSE); //$NON-NLS-1$ //$NON-NLS-2$
!         assertEquals(AccuracyType.fromText("1", AccuracyType.tokenize("1"), vr), AccuracyType.VERSE_ONLY); //$NON-NLS-1$ //$NON-NLS-2$
          try
          {
!             AccuracyType.fromText("complete and utter rubbish", AccuracyType.tokenize("complete and utter rubbish"), vr); //$NON-NLS-1$ //$NON-NLS-2$
              fail();
          }
***************
*** 496,500 ****
          try
          {
!             AccuracyType.fromText(AccuracyType.tokenize("b 1 1"), vr); //$NON-NLS-1$
              fail();
          }
--- 496,500 ----
          try
          {
!             AccuracyType.fromText("b 1 1", AccuracyType.tokenize("b 1 1"), vr); //$NON-NLS-1$ //$NON-NLS-2$
              fail();
          }
***************
*** 504,508 ****
          try
          {
!             AccuracyType.fromText((String[])null, vr);
              fail();
          }
--- 504,508 ----
          try
          {
!             AccuracyType.fromText(null, (String[])null, vr);
              fail();
          }



More information about the jsword-svn mailing list