-
Notifications
You must be signed in to change notification settings - Fork 25
Add Color3.new empty constructor and Color3.fromRGB #2
Conversation
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) |
There was a problem hiding this comment.
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
lib/types/Color3.lua
Outdated
return { | ||
r = r, | ||
g = g, | ||
b = b |
There was a problem hiding this comment.
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.
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. |
@LPGhatguy Finished. |
I...have no idea why that check isn't successful? |
Weird, I don't understand why it would be failing either. |
No description provided.