@@ -123,15 +123,21 @@ comparison_operators(_Config) ->
123123 % % Greater than
124124 true = match (" weight > 3" , app_props ()),
125125 false = match (" weight > 5" , app_props ()),
126+ true = match (" country > 'DE'" , app_props ()),
127+ false = match (" country > 'US'" , app_props ()),
126128
127129 % % Less than
128130 true = match (" weight < 10" , app_props ()),
129131 false = match (" weight < 5" , app_props ()),
132+ true = match (" country < 'US'" , app_props ()),
133+ false = match (" country < 'DE'" , app_props ()),
130134
131135 % % Greater than or equal
132136 true = match (" weight >= 5" , app_props ()),
133137 true = match (" weight >= 4" , app_props ()),
134138 false = match (" weight >= 6" , app_props ()),
139+ true = match (" country >= 'UK'" , app_props ()),
140+ true = match (" country >= 'DE'" , app_props ()),
135141 % % "Only like type values can be compared. One exception is that it is
136142 % % valid to compare exact numeric values and approximate numeric value"
137143 true = match (" weight >= 5.0" , app_props ()),
@@ -149,8 +155,11 @@ comparison_operators(_Config) ->
149155 false = match (" weight <= 4" , app_props ()),
150156 true = match (" price <= 10.6" , app_props ()),
151157 false = match (" price <= 10" , app_props ()),
158+ true = match (" country <= 'US'" , app_props ()),
159+ true = match (" country <= 'UK'" , app_props ()),
160+ false = match (" country <= 'DE'" , app_props ()),
152161
153- % % "String and Boolean comparison is restricted to = and <>."
162+ % % "Boolean comparison is restricted to = and <>."
154163 % % "If the comparison of non-like type values is attempted, the value of the operation is false."
155164 true = match (" active = true" , app_props ()),
156165 true = match (" premium = false" , app_props ()),
@@ -160,19 +169,15 @@ comparison_operators(_Config) ->
160169 false = match (" premium >= 0" , app_props ()),
161170 false = match (" premium <= 0" , app_props ()),
162171
163- false = match (" country >= 'UK'" , app_props ()),
164- false = match (" country > 'UA'" , app_props ()),
165- false = match (" country >= 'UA'" , app_props ()),
166- false = match (" country < 'UA'" , app_props ()),
167- false = match (" country <= 'UA'" , app_props ()),
168- false = match (" country < 'UL'" , app_props ()),
169- false = match (" country < true" , app_props ()),
170-
171172 false = match (" weight = '5'" , app_props ()),
172173 false = match (" weight >= '5'" , app_props ()),
173174 false = match (" weight <= '5'" , app_props ()),
175+ false = match (" country <= true" , app_props ()),
176+ false = match (" country >= true" , app_props ()),
174177 false = match (" country > 1" , app_props ()),
175- false = match (" country < 1" , app_props ()).
178+ false = match (" country >= 1" , app_props ()),
179+ false = match (" country < 1" , app_props ()),
180+ false = match (" country <= 1" , app_props ()).
176181
177182arithmetic_operators (_Config ) ->
178183 % % Addition
0 commit comments