Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a test for enum type using jest. #122

Merged
merged 2 commits into from
Oct 8, 2017

Conversation

hwanseung
Copy link
Contributor

Write a test for enum type using jest.

ISSUE=#99,#100

Copy link
Contributor

@yjaeseok yjaeseok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@romandev romandev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some minor comments!

@@ -32,4 +32,13 @@ interface TestInterface {
short shortMethod(short number);
double doubleMethod(double number);
string stringMethod(string string);

// enum
void EnumMethod(TestEnum enumValue);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Should be enumMethod(...) in IDL.
Also, I think better name is voidMethodTestEnumArg(...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i fixed it.

@@ -64,3 +64,7 @@ double TestInterface::DoubleMethod(double number) {
const std::string TestInterface::StringMethod(const std::string& string) {
return string;
}

void TestInterface::EnumMethod(const std::string& string) {
last_call_info_ = "EnumMethod(" + string + ")";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The string should be IDL definition like other methods.
"void voidMethodTestEnumArg(TestEnum)";

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i fixed it.

@romandev romandev merged commit 5459720 into lunchclass:master Oct 8, 2017
romandev pushed a commit that referenced this pull request Oct 18, 2017
Write a test for enum type using jest.

ISSUE=#99,#100
@hwanseung hwanseung deleted the enum_test branch November 2, 2017 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants