Files
css/tests/css_conformance_go_test.go
waozi 240cf61ab6 Test the CSS subset on every backend
Behavior tests for the parser, sheets, formatter, migrator and DOM
export; a conformance digest that C, C++, Go, ZX, Android and the
browser export must agree on; and a sanitized fuzzer. The export keeps
Kryon's rule ranking, HSL rounds as browsers round it, and the
migrator refuses output that would not parse.
2026-11-07 13:53:00 -03:00

23 lines
574 B
Go

package ziran
import (
"fmt"
"testing"
)
// Prints the digests in the C program's format; tests/css_conformance.sh
// compares them with tests/css_conformance.expected.
func TestCssConformance(t *testing.T) {
for pack := int32(0); pack < 3; pack++ {
for theme := int32(0); theme < 2; theme++ {
name := "light"
if theme == 1 {
name = "dark"
}
fmt.Printf("conformance %s %s %d\n", CssConformance_PackName(pack), name,
CssConformance_CssConformanceDigest(pack, theme))
}
}
fmt.Printf("conformance all %d\n", CssConformance_CssConformanceAll())
}