@@ -155,4 +155,29 @@ describe('VerseRef', () => {
155155 expect ( vref . versification ) . toEqual ( ScrVers . Septuagint ) ;
156156 } ) ;
157157 } ) ;
158+
159+ // Tests that don't exist in the C#.
160+ describe ( 'Extra (TS-only tests)' , ( ) => {
161+ it ( 'should convert to empty string' , ( ) => {
162+ const vref = new VerseRef ( ) ;
163+ expect ( vref . toString ( ) ) . toEqual ( '' ) ;
164+ } ) ;
165+
166+ it ( 'should convert to string' , ( ) => {
167+ const vref = new VerseRef ( 1 , 2 , 3 , ScrVers . Septuagint ) ;
168+ expect ( vref . toString ( ) ) . toEqual ( 'GEN 2:3' ) ;
169+ } ) ;
170+
171+ it ( 'should confirm when refs are equal' , ( ) => {
172+ const vref = new VerseRef ( 1 , 2 , 3 , ScrVers . Septuagint ) ;
173+ const vrefClone = vref . clone ( ) ;
174+ expect ( vref . equals ( vrefClone ) ) . toBe ( true ) ;
175+ } ) ;
176+
177+ it ( 'should confirm when refs are not equal' , ( ) => {
178+ const vref = new VerseRef ( 1 , 2 , 3 , ScrVers . Septuagint ) ;
179+ const vrefNotEqual = new VerseRef ( 1 , 20 , 3 , ScrVers . Septuagint ) ;
180+ expect ( vref . equals ( vrefNotEqual ) ) . toBe ( false ) ;
181+ } ) ;
182+ } ) ;
158183} ) ;
0 commit comments