@@ -247,7 +247,7 @@ describe('Given an instance of Athlib.HighJumpCompetition', function(){
247247 }
248248 expect ( r ) . to . be . equal ( 1 ) ;
249249 } ) ;
250- it ( "81 is not allowed to jump again" , ( ) => {
250+ it ( "B is not allowed to jump again" , ( ) => {
251251 var r = 0 , e ;
252252 try {
253253 c . failed ( 'B' ) ;
@@ -268,8 +268,8 @@ describe('Given an instance of Athlib.HighJumpCompetition', function(){
268268 it ( "c.state == finished" , ( ) => { expect ( c . state ) . to . be . equal ( 'finished' ) } ) ;
269269 it ( "A.highestCleared == 2.12" , ( ) => { expect ( A . highestCleared ) . to . be . equal ( 2.12 ) } ) ;
270270 it ( "B.highestCleared == 2.12" , ( ) => { expect ( B . highestCleared ) . to . be . equal ( 2.12 ) } ) ;
271- it ( "A.rankingKey == [0, -2.12, 1, 2]" , ( ) => { expect ( c . _compareKeys ( A . rankingKey , [ 0 , - 2.12 , 1 , 2 ] ) ) . to . be . equal ( 0 ) } ) ;
272- it ( "B.rankingKey == [0, -2.12, 2, 2]" , ( ) => { expect ( c . _compareKeys ( B . rankingKey , [ 0 , - 2.12 , 2 , 2 ] ) ) . to . be . equal ( 0 ) } ) ;
271+ it ( "A.rankingKey == [0, -2.12, 1, 2]" , ( ) => { expect ( c . _compareKeys ( A . rankingKey , [ 2 , - 2.12 , 1 , 2 ] ) ) . to . be . equal ( 0 ) } ) ;
272+ it ( "B.rankingKey == [0, -2.12, 2, 2]" , ( ) => { expect ( c . _compareKeys ( B . rankingKey , [ 2 , - 2.12 , 2 , 2 ] ) ) . to . be . equal ( 0 ) } ) ;
273273 } ) ;
274274 describe ( 'Test total failure rank' , function ( ) {
275275 // Run through to where the jumpoff began - ninth bar position
@@ -302,7 +302,7 @@ describe('Given an instance of Athlib.HighJumpCompetition', function(){
302302 it ( "A.highestCleared == 2.08" , ( ) => { expect ( A . highestCleared ) . to . be . equal ( 2.08 ) } ) ;
303303 it ( "B.highestCleared == 0" , ( ) => { expect ( B . highestCleared ) . to . be . equal ( 0 ) } ) ;
304304 it ( "A.rankingKey == [0, -2.08, 0, 0]" , ( ) => { expect ( c . _compareKeys ( A . rankingKey , [ 0 , - 2.08 , 0 , 0 ] ) ) . to . be . equal ( 0 ) } ) ;
305- it ( "B.rankingKey == [2, -0, 0, 0]" , ( ) => { expect ( c . _compareKeys ( B . rankingKey , [ 2 , - 0 , 0 , 0 ] ) ) . to . be . equal ( 0 ) } ) ;
305+ it ( "B.rankingKey == [2, -0, 0, 0]" , ( ) => { expect ( c . _compareKeys ( B . rankingKey , [ 3 , - 0 , 0 , 0 ] ) ) . to . be . equal ( 0 ) } ) ;
306306 } ) ;
307307 describe ( 'Test countback to total failures' , function ( ) {
308308 // Run through to where the jumpoff began - ninth bar position
@@ -323,7 +323,7 @@ describe('Given an instance of Athlib.HighJumpCompetition', function(){
323323 }
324324 expect ( r ) . to . be . equal ( 1 ) ;
325325 } ) ;
326- it ( "81 is not allowed to jump again" , ( ) => {
326+ it ( "B is not allowed to jump again" , ( ) => {
327327 var r = 0 , e ;
328328 try {
329329 c . failed ( 'B' ) ;
@@ -344,8 +344,8 @@ describe('Given an instance of Athlib.HighJumpCompetition', function(){
344344 it ( "c.state == finished" , ( ) => { expect ( c . state ) . to . be . equal ( 'finished' ) } ) ;
345345 it ( "A.highestCleared == 2.12" , ( ) => { expect ( A . highestCleared ) . to . be . equal ( 2.12 ) } ) ;
346346 it ( "B.highestCleared == 2.12" , ( ) => { expect ( B . highestCleared ) . to . be . equal ( 2.12 ) } ) ;
347- it ( "A.rankingKey == [0, -2.12, 1, 2]" , ( ) => { expect ( c . _compareKeys ( A . rankingKey , [ 0 , - 2.12 , 1 , 2 ] ) ) . to . be . equal ( 0 ) } ) ;
348- it ( "B.rankingKey == [0, -2.12, 1, 3]" , ( ) => { expect ( c . _compareKeys ( B . rankingKey , [ 0 , - 2.12 , 1 , 3 ] ) ) . to . be . equal ( 0 ) } ) ;
347+ it ( "A.rankingKey == [0, -2.12, 1, 2]" , ( ) => { expect ( c . _compareKeys ( A . rankingKey , [ 2 , - 2.12 , 1 , 2 ] ) ) . to . be . equal ( 0 ) } ) ;
348+ it ( "B.rankingKey == [0, -2.12, 1, 3]" , ( ) => { expect ( c . _compareKeys ( B . rankingKey , [ 2 , - 2.12 , 1 , 3 ] ) ) . to . be . equal ( 0 ) } ) ;
349349 } ) ;
350350 describe ( 'Test won ending' , function ( ) {
351351 it ( "test scheduled-->started-->won-->finished" , ( ) => {
0 commit comments