Skip to content

Commit

Permalink
Add new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Jul 5, 2018
1 parent ded00cd commit 1440d9c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tests
testIsAccentuated
self deny: (MDLColor tint: #orange code: '500') isAccentuated.
self assert: (MDLColor tint: #orange code: 'A400' ) isAccentuated
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tests
testTint
self assert: (MDLColor tint: #orange) equals: MDLColor orange.
"Ensure String and Symbol works"
self assert: (MDLColor tint: 'orange') equals: MDLColor orange.
self assert: (MDLColor tint: #orange) asRGBA equals: 'rgba(255,152,0,1)'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tests
testTintCode
self assert: (MDLColor tint: #orange code: #'800') asRGBA equals: 'rgba(239,108,0,1)'.
"Ensure String and Symbol works"
self assert: (MDLColor tint: 'orange' code: #'800') asRGBA equals: 'rgba(239,108,0,1)'.
self assert: (MDLColor tint: 'orange' code: '800') asRGBA equals: 'rgba(239,108,0,1)'.

0 comments on commit 1440d9c

Please sign in to comment.