add div, section, span

This commit is contained in:
tristan 2023-12-31 01:14:45 +00:00
parent e092c3db60
commit 24cfbe8727
2 changed files with 21 additions and 0 deletions

View file

@ -4,6 +4,15 @@ in {
p = child: p = child:
html.tag "p" {} child; html.tag "p" {} child;
div = child:
html.tag "div" {} child;
section = child:
html.tag "section" {} child;
span = child:
html.tag "span" {} child;
main = child: main = child:
html.tag "main" {} child; html.tag "main" {} child;

View file

@ -8,6 +8,18 @@ in
expected = html.tag "p" {} "foobar"; expected = html.tag "p" {} "foobar";
actual = p "foobar"; actual = p "foobar";
}) })
(it "makes a div tag" {
expected = html.tag "div" {} "foobar";
actual = div "foobar";
})
(it "makes a section tag" {
expected = html.tag "section" {} "foobar";
actual = section "foobar";
})
(it "makes a span tag" {
expected = html.tag "span" {} "foobar";
actual = span "foobar";
})
(it "makes a main tag" { (it "makes a main tag" {
expected = html.tag "main" {} ["yeet"]; expected = html.tag "main" {} ["yeet"];
actual = main ["yeet"]; actual = main ["yeet"];