@@ -28,6 +28,39 @@ public function uikit_falls_back_to_html()
2828 );
2929 }
3030
31+ /**
32+ * @test
33+ */
34+ public function page_title ()
35+ {
36+ AssertEquals::applyWith (
37+ '<title>Hello, World!</title> ' ,
38+ "string " ,
39+ 3.31 , // 2.31, // 0.91, // 0.71, // 0.6,
40+ 5 // 4
41+ )->unfoldUsing (
42+ UIKit::pageTitle (["Hello, World! " ])
43+ );
44+
45+ AssertEquals::applyWith (
46+ '<title>How are you? | Hello, World!</title> ' ,
47+ "string " ,
48+ 2.13 , // 1.94, // 1.66, // 0.91, // 0.71, // 0.6,
49+ 3
50+ )->unfoldUsing (
51+ UIKit::pageTitle (["How are you? " , "Hello, World! " ])
52+ );
53+
54+ AssertEquals::applyWith (
55+ '<title>How are you? : Hello, World!</title> ' ,
56+ "string " ,
57+ 1.95 , // 1.82, // 0.91, // 0.71, // 0.6,
58+ 3
59+ )->unfoldUsing (
60+ UIKit::pageTitle (["Hello, World! " , "How are you? " ], " : " )->reversed ()
61+ );
62+ }
63+
3164 /**
3265 * @test
3366 */
@@ -68,7 +101,7 @@ public function simple_lists()
68101 '<ul><li>hello</li><li>good-bye</li></ul> ' ,
69102 "string " ,
70103 11.32 , // 6.34, // 4.93, // 4.69, // 3.8,
71- 72 // 8
104+ 73 // 72 // 8
72105 )->unfoldUsing (
73106 UIKit::listWith (
74107 "hello " ,
@@ -91,7 +124,7 @@ public function simple_lists()
91124 AssertEquals::applyWith (
92125 '<dl><dt>hello</dt><dd>good-bye</dd></dl> ' ,
93126 "string " ,
94- 6.44 , // 3.52, // 3.2,
127+ 8.69 , // 6.44, // 3.52, // 3.2,
95128 1
96129 )->unfoldUsing (
97130 UIKit::listWith (
@@ -103,7 +136,7 @@ public function simple_lists()
103136 AssertEquals::applyWith (
104137 '<dl><dt>hello</dt><dd>good-bye</dd><dt>hello</dt><dd>good-bye</dd><dd>good-bye</dd></dl> ' ,
105138 "string " ,
106- 12.37 , // 12.16, // 11.53, // 10.71, // 5.25, // 4.59, // 4.49,
139+ 12.48 , // 12. 37, // 12.16, // 11.53, // 10.71, // 5.25, // 4.59, // 4.49,
107140 1
108141 )->unfoldUsing (
109142 UIKit::listWith (
@@ -124,7 +157,7 @@ public function images()
124157 AssertEquals::applyWith (
125158 '<img src="https://path.to/image.jpg" alt="Alt text"> ' ,
126159 "string " ,
127- 4.4 , // 3.94, // 3.31, // 2.37, // 2.3, // 2.03,
160+ 5.2 , // 4.4, // 3.94, // 3.31, // 2.37, // 2.3, // 2.03,
128161 3
129162 )->unfoldUsing (
130163 UIKit::image ("Alt text " , "https://path.to/image.jpg " )
0 commit comments