浏览代码

Small changes in documentation of the empty message tests.

Bart Hertog 5 年之前
父节点
当前提交
15773f6576
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      test/proto/empty_message.proto
  2. 2 1
      test/test_empty_messages.cpp

+ 1 - 1
test/proto/empty_message.proto

@@ -28,7 +28,7 @@
  *    the Netherlands
  */
 
-// This file is used to test serializing repeated fields.
+// This file is used to test defining empty messages. This should not cause build errors.
 
 syntax = "proto3";
 

+ 2 - 1
test/test_empty_messages.cpp

@@ -37,7 +37,8 @@ namespace test_EmbeddedAMS_empty_messages
 {
 
 TEST(EmptyMessages, construction)
-{
+{ 
+  // Test if using a message with no fields or enums cause build errors. 
   empty_message empty;
 }