all repos — gomponents @ b9061f13de7434b752467beb5ab6690ba3a4fc77

HTML components in pure Go

fix indeterminate test

Alan Pearce
commit

b9061f13de7434b752467beb5ab6690ba3a4fc77

parent

137665b4ab09fb85461afa42ce187f997d601cdc

1 file changed, 4 insertions(+), 1 deletion(-)

changed files
M gomponents_test.gogomponents_test.go
@@ -376,7 +376,10 @@ items := maps.All(map[string]string{"party": "hat", "super": "hat"})
e := g.El("ul", g.MapIter2(items, func(key string, value string) g.Node { return g.El("li", g.Textf("%v: %v", key, value)) })) - assert.Equal(t, `<ul><li>party: hat</li><li>super: hat</li></ul>`, e) + assert.OneOf(t, []string{ + "<ul><li>party: hat</li><li>super: hat</li></ul>", + "<ul><li>super: hat</li><li>party: hat</li></ul>", + }, e) }) }