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

FlxVector: fix subtractNew() and refactor FlxVectorTest #1231

Merged
merged 2 commits into from
Jul 19, 2014

Conversation

shinji-yoshida
Copy link
Contributor

Fix FlxVector#subtractNew() and refactor FlxVectorTest.
Please merge.

assertFlxVectorAreEqual(new FlxVector(1, 2), vector);
}

function assertFlxVectorAreEqual(expected:FlxVector, actual:FlxVector):Void
Copy link
Member

Choose a reason for hiding this comment

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

We should probably use FlxVector's equals() instead, then we wouldn't need this function.

Assert.isTrue(vector.equals(vector2));

@shinji-yoshida
Copy link
Contributor Author

You are right! I removed assertFlxVectorAreEqual.

Gama11 added a commit that referenced this pull request Jul 19, 2014
FlxVector: fix subtractNew() and refactor FlxVectorTest
@Gama11 Gama11 merged commit a51fdcf into HaxeFlixel:dev Jul 19, 2014
@shinji-yoshida shinji-yoshida deleted the fix_flx_vector branch July 19, 2014 13:13
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.

2 participants