提交 2d35c700 编写于 作者: Y Yu Yang

Fit google name style

上级 d8a3291d
...@@ -15,13 +15,13 @@ ...@@ -15,13 +15,13 @@
#include "paddle/string/to_string.h" #include "paddle/string/to_string.h"
#include <gtest/gtest.h> #include <gtest/gtest.h>
constexpr char OUT_STR[] = "User Defined Output"; constexpr char kOutputString[] = "User Defined Output";
class UserDefinedClass { class UserDefinedClass {
public: public:
}; };
std::ostream& operator<<(std::ostream& s, const UserDefinedClass& ins) { std::ostream& operator<<(std::ostream& s, const UserDefinedClass& ins) {
s << OUT_STR; s << kOutputString;
return s; return s;
} }
...@@ -35,5 +35,5 @@ TEST(to_string, normal) { ...@@ -35,5 +35,5 @@ TEST(to_string, normal) {
TEST(to_string, user_defined) { TEST(to_string, user_defined) {
using namespace paddle::string; using namespace paddle::string;
UserDefinedClass instance; UserDefinedClass instance;
ASSERT_EQ(OUT_STR, to_string(instance)); ASSERT_EQ(kOutputString, to_string(instance));
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册