@@ -37,13 +37,14 @@ tape.test("Options", function (test) {
37
37
38
38
test . test ( test . name + " - message options (Message)" , function ( test ) {
39
39
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" ) ;
42
42
test . equal ( TestMessageOptionsMsg . options [ "(mo_single_msg).value" ] , 7 , "should correctly parse single msg option" ) ;
43
43
test . equal ( TestMessageOptionsMsg . options [ "(mo_single_msg).rep_value" ] , 9 , "should take second repeated int in single msg option" ) ;
44
44
test . same ( TestMessageOptionsMsg . parsedOptions , [
45
45
{ "(mo_rep_msg)" : { value : 1 , rep_value : [ 2 , 3 ] } } ,
46
46
{ "(mo_rep_msg)" : { value : 4 , rep_value : [ 5 , 6 ] } } ,
47
+ { "(mo_rep_msg)" : { value : 5 , rep_value : [ 7 , 8 ] } } ,
47
48
{ "(mo_single_msg)" : { value : 7 , rep_value : [ 8 , 9 ] } } ,
48
49
] , "should take all message options" ) ;
49
50
test . end ( ) ;
0 commit comments