mirror of https://github.com/google/pebble
				
				
				
			
		
			
				
	
	
		
			9 lines
		
	
	
		
			300 B
		
	
	
	
		
			Python
		
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			300 B
		
	
	
	
		
			Python
		
	
	
	
| # Regression test for #558:
 | |
| # Manually defining proto3:true on a field with default value incorrectly omits it when encoding.
 | |
| 
 | |
| Import("env")
 | |
| env.NanopbProto("mixed")
 | |
| 
 | |
| test = env.Program(["mixed.c", "mixed.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_decode.o", "$COMMON/pb_common.o"])
 | |
| env.RunTest(test)
 |