Skip to content

Commit 4f94341

Browse files
committed
0.0 -> +0.0
1 parent 32bf72d commit 4f94341

12 files changed

+27
-29
lines changed

test/scenic/color_test.exs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ defmodule Scenic.ColorTest do
113113

114114
assert Color.to_hsv(0) == {:color_hsv, {0, 0, 0}}
115115

116-
{:color_hsv, {0.0, 0.0, v}} = Color.to_hsv(128)
116+
{:color_hsv, {+0.0, +0.0, v}} = Color.to_hsv(128)
117117
assert v > 50 && v < 51
118118

119-
{:color_hsv, {0.0, 0.0, v}} = Color.to_hsv({128, 200})
119+
{:color_hsv, {+0.0, +0.0, v}} = Color.to_hsv({128, 200})
120120
assert v > 50 && v < 51
121121

122122
assert Color.to_hsv(:bisque) |> Color.to_rgb() == rgb
@@ -130,10 +130,10 @@ defmodule Scenic.ColorTest do
130130
hsl = Color.to_hsl(:bisque)
131131
rgb = Color.to_rgb(:bisque)
132132

133-
{:color_hsv, {0.0, 0.0, v}} = Color.to_hsv({:color_g, 128})
133+
{:color_hsv, {+0.0, +0.0, v}} = Color.to_hsv({:color_g, 128})
134134
assert v > 50 && v < 51
135135

136-
{:color_hsv, {0.0, 0.0, v}} = Color.to_hsv({:color_ga, {128, 200}})
136+
{:color_hsv, {+0.0, +0.0, v}} = Color.to_hsv({:color_ga, {128, 200}})
137137
assert v > 50 && v < 51
138138

139139
assert Color.to_hsv(rgb) |> Color.to_rgb() == rgb
@@ -148,10 +148,10 @@ defmodule Scenic.ColorTest do
148148

149149
assert Color.to_hsl(0) == {:color_hsl, {0, 0, 0}}
150150

151-
{:color_hsl, {0.0, 0.0, l}} = Color.to_hsl(128)
151+
{:color_hsl, {+0.0, +0.0, l}} = Color.to_hsl(128)
152152
assert l > 50 && l < 51
153153

154-
{:color_hsl, {0.0, 0.0, l}} = Color.to_hsl({128, 200})
154+
{:color_hsl, {+0.0, +0.0, l}} = Color.to_hsl({128, 200})
155155
assert l > 50 && l < 51
156156

157157
assert Color.to_hsl(:bisque) |> Color.to_rgb() == rgb
@@ -164,10 +164,10 @@ defmodule Scenic.ColorTest do
164164
# from bisque
165165
rgb = Color.to_rgb(:bisque)
166166

167-
{:color_hsl, {0.0, 0.0, l}} = Color.to_hsl({:color_g, 128})
167+
{:color_hsl, {+0.0, +0.0, l}} = Color.to_hsl({:color_g, 128})
168168
assert l > 50 && l < 51
169169

170-
{:color_hsl, {0.0, 0.0, l}} = Color.to_hsl({:color_ga, {128, 200}})
170+
{:color_hsl, {+0.0, +0.0, l}} = Color.to_hsl({:color_ga, {128, 200}})
171171
assert l > 50 && l < 51
172172

173173
assert Color.to_hsl({:color_rgb, {0xFF, 0xE4, 0xC4}}) |> Color.to_rgb() == rgb

test/scenic/component/button_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ defmodule Scenic.Component.ButtonTest do
123123
Graph.build()
124124
|> Scenic.Components.button("Test Button")
125125

126-
{0.0, 0.0, r, b} = Graph.bounds(graph)
126+
{+0.0, +0.0, r, b} = Graph.bounds(graph)
127127
assert r > 140 && r < 141
128128
assert b > 38 && b < 39
129129
end
@@ -133,6 +133,6 @@ defmodule Scenic.Component.ButtonTest do
133133
Graph.build()
134134
|> Scenic.Components.button("Test Button", width: 200, height: 100)
135135

136-
assert Graph.bounds(graph) == {0.0, 0.0, 200.0, 100.0}
136+
assert Graph.bounds(graph) == {+0.0, +0.0, 200.0, 100.0}
137137
end
138138
end

test/scenic/component/input/checkbox_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ defmodule Scenic.Component.Input.CheckboxTest do
112112
Graph.build()
113113
|> Scenic.Components.checkbox({"Test Checkbox", false})
114114

115-
{0.0, 0.0, r, b} = Graph.bounds(graph)
115+
{+0.0, +0.0, r, b} = Graph.bounds(graph)
116116
assert r > 157 && r < 158
117117
assert b > 23 && b < 24
118118
end

test/scenic/component/input/dropdown_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ defmodule Scenic.Component.Input.DropdownTest do
199199
Graph.build()
200200
|> Scenic.Components.dropdown({[{"Option One", 1}, {"Option Two", 2}], 2}, id: :dd)
201201

202-
{0.0, 0.0, r, b} = Graph.bounds(graph)
202+
{+0.0, +0.0, r, b} = Graph.bounds(graph)
203203
assert r > 157 && r < 158
204204
assert b > 38 && b < 39
205205
end

test/scenic/component/input/radio_button_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ defmodule Scenic.Component.Input.RadioButtonTest do
106106
Scenic.Graph.build()
107107
|> RadioButton.add_to_graph({"Radio Button", :rb, false}, id: :btn)
108108

109-
{0.0, 0.0, r, b} = Scenic.Graph.bounds(graph)
109+
{+0.0, +0.0, r, b} = Scenic.Graph.bounds(graph)
110110
assert r > 140 && r < 141
111111
assert b > 23 && b < 24
112112
end

test/scenic/component/input/radio_group_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ defmodule Scenic.Component.Input.RadioGroupTest do
221221
id: :rg
222222
)
223223

224-
{0.0, 0.0, r, 72.0} = Scenic.Graph.bounds(graph)
224+
{+0.0, +0.0, r, 72.0} = Scenic.Graph.bounds(graph)
225225
assert r > 94 && r < 95
226226
end
227227
end

test/scenic/component/input/slider_list_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,14 @@ defmodule Scenic.Component.Input.SliderListTest do
159159
Scenic.Graph.build()
160160
|> Scenic.Components.slider({[:a, :b, :c, :d, :e], :b}, id: :sl)
161161

162-
{0.0, 0.0, 300.0, 18.0} = Scenic.Graph.bounds(graph)
162+
{+0.0, +0.0, 300.0, 18.0} = Scenic.Graph.bounds(graph)
163163
end
164164

165165
test "bounds works with overrides" do
166166
graph =
167167
Graph.build()
168168
|> Scenic.Components.slider({[:a, :b, :c, :d, :e], :b}, id: :sl, width: 400)
169169

170-
assert Graph.bounds(graph) == {0.0, 0.0, 400.0, 18.0}
170+
assert Graph.bounds(graph) == {+0.0, +0.0, 400.0, 18.0}
171171
end
172172
end

test/scenic/component/input/slider_numeric_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ defmodule Scenic.Component.Input.SliderNumericTest do
166166
Scenic.Graph.build()
167167
|> Scenic.Components.slider({{0, 100}, 20}, id: :sn)
168168

169-
{0.0, 0.0, 300.0, 18.0} = Scenic.Graph.bounds(graph)
169+
{+0.0, +0.0, 300.0, 18.0} = Scenic.Graph.bounds(graph)
170170
end
171171

172172
test "bounds works with overrides" do
173173
graph =
174174
Graph.build()
175175
|> Scenic.Components.slider({{0, 100}, 20}, id: :sn, width: 400)
176176

177-
assert Graph.bounds(graph) == {0.0, 0.0, 400.0, 18.0}
177+
assert Graph.bounds(graph) == {+0.0, +0.0, 400.0, 18.0}
178178
end
179179
end

test/scenic/component/input/text_field_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,14 +339,14 @@ defmodule Scenic.Component.Input.TextFieldTest do
339339
Graph.build()
340340
|> Scenic.Components.text_field("Test Field")
341341

342-
{0.0, 0.0, 288.0, 30.0} = Graph.bounds(graph)
342+
{+0.0, +0.0, 288.0, 30.0} = Graph.bounds(graph)
343343
end
344344

345345
test "bounds works with overrides" do
346346
graph =
347347
Graph.build()
348348
|> Scenic.Components.text_field("Test Field", width: 300, height: 40)
349349

350-
{0.0, 0.0, 300.0, 40.0} = Graph.bounds(graph)
350+
{+0.0, +0.0, 300.0, 40.0} = Graph.bounds(graph)
351351
end
352352
end

test/scenic/component/input/toggle_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,6 @@ defmodule Scenic.Component.Input.ToggleTest do
111111
Graph.build()
112112
|> Scenic.Components.toggle(true)
113113

114-
{0.0, 0.0, 40.0, 24.0} = Graph.bounds(graph)
114+
{+0.0, +0.0, 40.0, 24.0} = Graph.bounds(graph)
115115
end
116116
end

0 commit comments

Comments
 (0)