|  | @@ -15,6 +15,7 @@
 | 
	
		
			
				|  |  |  #include "absl/strings/substitute.h"
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  #include <cstdint>
 | 
	
		
			
				|  |  | +#include <vector>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  #include "gtest/gtest.h"
 | 
	
		
			
				|  |  |  #include "absl/strings/str_cat.h"
 | 
	
	
		
			
				|  | @@ -172,6 +173,17 @@ TEST(SubstituteTest, SubstituteAndAppend) {
 | 
	
		
			
				|  |  |    EXPECT_EQ("a b c d e f g h i j", str);
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +TEST(SubstituteTest, VectorBoolRef) {
 | 
	
		
			
				|  |  | +  std::vector<bool> v = {true, false};
 | 
	
		
			
				|  |  | +  const auto& cv = v;
 | 
	
		
			
				|  |  | +  EXPECT_EQ("true false true false",
 | 
	
		
			
				|  |  | +            absl::Substitute("$0 $1 $2 $3", v[0], v[1], cv[0], cv[1]));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  std::string str = "Logic be like: ";
 | 
	
		
			
				|  |  | +  absl::SubstituteAndAppend(&str, "$0 $1 $2 $3", v[0], v[1], cv[0], cv[1]);
 | 
	
		
			
				|  |  | +  EXPECT_EQ("Logic be like: true false true false", str);
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  #ifdef GTEST_HAS_DEATH_TEST
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  TEST(SubstituteDeathTest, SubstituteDeath) {
 |