@@ -37,13 +37,14 @@ tape.test("Options", function (test) {
3737
3838 test . test ( test . name + " - message options (Message)" , function ( test ) {
3939 var TestMessageOptionsMsg = root . lookup ( "TestMessageOptionsMsg" ) ;
40- test . equal ( TestMessageOptionsMsg . options [ "(mo_rep_msg).value" ] , 4 , "should take second repeated message option" ) ;
41- test . equal ( TestMessageOptionsMsg . options [ "(mo_rep_msg).rep_value" ] , 6 , "should take second repeated int in second repeated option" ) ;
40+ test . equal ( TestMessageOptionsMsg . options [ "(mo_rep_msg).value" ] , 5 , "should take last repeated message option" ) ;
41+ test . equal ( TestMessageOptionsMsg . options [ "(mo_rep_msg).rep_value" ] , 8 , "should take last repeated int in last repeated option" ) ;
4242 test . equal ( TestMessageOptionsMsg . options [ "(mo_single_msg).value" ] , 7 , "should correctly parse single msg option" ) ;
4343 test . equal ( TestMessageOptionsMsg . options [ "(mo_single_msg).rep_value" ] , 9 , "should take second repeated int in single msg option" ) ;
4444 test . same ( TestMessageOptionsMsg . parsedOptions , [
4545 { "(mo_rep_msg)" : { value : 1 , rep_value : [ 2 , 3 ] } } ,
4646 { "(mo_rep_msg)" : { value : 4 , rep_value : [ 5 , 6 ] } } ,
47+ { "(mo_rep_msg)" : { value : 5 , rep_value : [ 7 , 8 ] } } ,
4748 { "(mo_single_msg)" : { value : 7 , rep_value : [ 8 , 9 ] } } ,
4849 ] , "should take all message options" ) ;
4950 test . end ( ) ;
0 commit comments