Skip to content

Added object identity test #83

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ujjwalchadha
Copy link
Contributor

No description provided.

@ujjwalchadha ujjwalchadha requested a review from dunhor April 28, 2021 23:00
const testObject = new TestComponent.TestObject(2);
const testObjectAsSerializable = testObject.asSerializable();
assert.equal(testObject, testObjectAsSerializable);
});
Copy link
Member

Choose a reason for hiding this comment

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

With WinRT objects, assert.equal doesn't quite work as you'd expect. Instead do an assert.isTrue(lhs == rhs);

Copy link
Member

Choose a reason for hiding this comment

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

FWIW it tries to do property comparison instead of pointer comparison IIRC

@ujjwalchadha ujjwalchadha requested a review from dunhor April 29, 2021 00:24
Copy link
Member

@dunhor dunhor left a comment

Choose a reason for hiding this comment

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

:shipit:

interface ISerializable
{
String Serialize();
};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
};
}

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