Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Add Color3.new empty constructor and Color3.fromRGB #2

Merged
merged 3 commits into from
Feb 19, 2018

Conversation

Kampfkarren
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Dec 14, 2017

Coverage Status

Coverage decreased (-0.2%) to 95.362% when pulling 8cde8cb on Kampfkarren:master into 8a3c40f on LPGhatguy:master.

@LPGhatguy
Copy link
Owner

Sorry I let this sit for so long! I was on vacation when it was submitted and then it fell off of my notifications.

it("should have an empty constructor", function()
local color = Color3.new()

assert.not_nil(color)
Copy link
Owner

Choose a reason for hiding this comment

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

We should probably make sure that the result is {0, 0, 0} for the empty constructor

return {
r = r,
g = g,
b = b
Copy link
Owner

Choose a reason for hiding this comment

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

Can you add a trailing comma here like the original block? It isn't that important here, but it makes diffs cleaner and makes it easier to change line ordering.

@Kampfkarren
Copy link
Contributor Author

I can't do your changes right now, don't have access to a PC. I'd be happy to do it when I get the chance.

@Kampfkarren
Copy link
Contributor Author

@LPGhatguy Finished.

@Kampfkarren
Copy link
Contributor Author

I...have no idea why that check isn't successful?

@LPGhatguy
Copy link
Owner

Weird, I don't understand why it would be failing either.

@LPGhatguy LPGhatguy merged commit e4c3f13 into LPGhatguy:master Feb 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants