Skip to content

Commit

Permalink
Update module to library
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalissaac committed Feb 20, 2022
1 parent eaa0b7c commit 193da1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.go → munsell.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package munsell

import (
"fmt"
Expand Down
8 changes: 5 additions & 3 deletions main_test.go → munsell_test.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
package main
package munsell_test

import (
"testing"

"github.com/unitedunderworldnft/munsell"
)

func TestParseFromHex(t *testing.T) {
color, err := GetColorFromHex("#ff0000")
color, err := munsell.GetColorFromHex("#ff0000")
if err != nil {
t.Errorf("Expected color, received %v", err)
}
if color != Red {
if color != munsell.Red {
t.Errorf("Expected Red, received %v", color)
}
}

0 comments on commit 193da1e

Please sign in to comment.