@@ -28,6 +28,39 @@ public function uikit_falls_back_to_html()
28
28
);
29
29
}
30
30
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
+
31
64
/**
32
65
* @test
33
66
*/
@@ -68,7 +101,7 @@ public function simple_lists()
68
101
'<ul><li>hello</li><li>good-bye</li></ul> ' ,
69
102
"string " ,
70
103
11.32 , // 6.34, // 4.93, // 4.69, // 3.8,
71
- 72 // 8
104
+ 73 // 72 // 8
72
105
)->unfoldUsing (
73
106
UIKit::listWith (
74
107
"hello " ,
@@ -91,7 +124,7 @@ public function simple_lists()
91
124
AssertEquals::applyWith (
92
125
'<dl><dt>hello</dt><dd>good-bye</dd></dl> ' ,
93
126
"string " ,
94
- 6.44 , // 3.52, // 3.2,
127
+ 8.69 , // 6.44, // 3.52, // 3.2,
95
128
1
96
129
)->unfoldUsing (
97
130
UIKit::listWith (
@@ -103,7 +136,7 @@ public function simple_lists()
103
136
AssertEquals::applyWith (
104
137
'<dl><dt>hello</dt><dd>good-bye</dd><dt>hello</dt><dd>good-bye</dd><dd>good-bye</dd></dl> ' ,
105
138
"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,
107
140
1
108
141
)->unfoldUsing (
109
142
UIKit::listWith (
@@ -124,7 +157,7 @@ public function images()
124
157
AssertEquals::applyWith (
125
158
'<img src="https://path.to/image.jpg" alt="Alt text"> ' ,
126
159
"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,
128
161
3
129
162
)->unfoldUsing (
130
163
UIKit::image ("Alt text " , "https://path.to/image.jpg " )
0 commit comments