(t *testing.T)
| 122 | } |
| 123 | |
| 124 | func TestCSSColor(t *testing.T) { |
| 125 | test.String(t, CSSColor(Cyan).String(), "#0ff") |
| 126 | test.String(t, CSSColor(Aliceblue).String(), "#f0f8ff") |
| 127 | test.String(t, CSSColor(color.RGBA{255, 255, 255, 0}).String(), "rgba(0,0,0,0)") |
| 128 | test.String(t, CSSColor(color.RGBA{85, 85, 17, 85}).String(), "rgba(255,255,51,.33333333)") |
| 129 | } |
| 130 | |
| 131 | func TestToFromFixed(t *testing.T) { |
| 132 | test.T(t, fromP26_6(toP26_6(Point{3.0, 5.0})), Point{3.0, 5.0}) |