@@ -632,7 +632,6 @@ void test_core_buffer__join3(void)
632632void test_core_buffer__11 (void )
633633{
634634 git_buf a = GIT_BUF_INIT ;
635- git_strarray t ;
636635 char * t1 [] = { "nothing" , "in" , "common" };
637636 char * t2 [] = { "something" , "something else" , "some other" };
638637 char * t3 [] = { "something" , "some fun" , "no fun" };
@@ -641,39 +640,25 @@ void test_core_buffer__11(void)
641640 char * t6 [] = { "no" , "nope" , "" };
642641 char * t7 [] = { "" , "doesn't matter" };
643642
644- t .strings = t1 ;
645- t .count = 3 ;
646- cl_git_pass (git_buf_common_prefix (& a , & t ));
643+ cl_git_pass (git_buf_common_prefix (& a , t1 , 3 ));
647644 cl_assert_equal_s (a .ptr , "" );
648645
649- t .strings = t2 ;
650- t .count = 3 ;
651- cl_git_pass (git_buf_common_prefix (& a , & t ));
646+ cl_git_pass (git_buf_common_prefix (& a , t2 , 3 ));
652647 cl_assert_equal_s (a .ptr , "some" );
653648
654- t .strings = t3 ;
655- t .count = 3 ;
656- cl_git_pass (git_buf_common_prefix (& a , & t ));
649+ cl_git_pass (git_buf_common_prefix (& a , t3 , 3 ));
657650 cl_assert_equal_s (a .ptr , "" );
658651
659- t .strings = t4 ;
660- t .count = 3 ;
661- cl_git_pass (git_buf_common_prefix (& a , & t ));
652+ cl_git_pass (git_buf_common_prefix (& a , t4 , 3 ));
662653 cl_assert_equal_s (a .ptr , "happ" );
663654
664- t .strings = t5 ;
665- t .count = 3 ;
666- cl_git_pass (git_buf_common_prefix (& a , & t ));
655+ cl_git_pass (git_buf_common_prefix (& a , t5 , 3 ));
667656 cl_assert_equal_s (a .ptr , "happ" );
668657
669- t .strings = t6 ;
670- t .count = 3 ;
671- cl_git_pass (git_buf_common_prefix (& a , & t ));
658+ cl_git_pass (git_buf_common_prefix (& a , t6 , 3 ));
672659 cl_assert_equal_s (a .ptr , "" );
673660
674- t .strings = t7 ;
675- t .count = 3 ;
676- cl_git_pass (git_buf_common_prefix (& a , & t ));
661+ cl_git_pass (git_buf_common_prefix (& a , t7 , 3 ));
677662 cl_assert_equal_s (a .ptr , "" );
678663
679664 git_buf_dispose (& a );
0 commit comments