Skip to content

Commit 98685b7

Browse files
committed
Fix incorrect test_random_computed_value_has_fixed
We expect the fixed value to be less than (not equal to) 1. assert_{greater_than_equal|less_than} expects the actual value to be given as a number rather than a string
1 parent 6ffd030 commit 98685b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css/css-values/random-computed.tentative.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@
164164
let [fixedString, fixedValue] = fixedComponent.split(' ');
165165

166166
assert_equals(fixedString, 'fixed', specified);
167-
assert_greater_than_equal(parseFloat(fixedValue), '0', specified);
168-
assert_less_than_equal(parseFloat(fixedValue), '1', specified);
167+
assert_greater_than_equal(parseFloat(fixedValue), 0, specified);
168+
assert_less_than(parseFloat(fixedValue), 1, specified);
169169
assert_equals(minComponent, minPercentage, specified);
170170
assert_equals(maxComponent, maxPercentage, specified);
171171
}

0 commit comments

Comments
 (0)