File tree 6 files changed +12
-12
lines changed
6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change
1
+ === UNRELEASED
2
+
3
+ * Updated test suite
4
+ * Fixed detecting when infinity is reqched with multipleOf
5
+
1
6
=== 2.20.0 (2024-06-15)
2
7
3
8
* Added validations at compile time:
Original file line number Diff line number Diff line change @@ -321,6 +321,9 @@ def generate_multiple_of(self):
321
321
self .l ('quotient = {variable} / {multipleOf}' )
322
322
with self .l ('if int(quotient) != quotient:' ):
323
323
self .exc ('{name} must be multiple of {multipleOf}' , rule = 'multipleOf' )
324
+ # For example, 1e308 / 0.123456789
325
+ with self .l ('if {variable} / {multipleOf} == float("inf"):' ):
326
+ self .exc ('inifinity reached' , rule = 'multipleOf' )
324
327
325
328
def generate_min_items (self ):
326
329
self .create_variable_is_list ()
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ def pytest_generate_tests(metafunc):
11
11
'refRemote.json' , # Requires local server.
12
12
# Optional.
13
13
'ecmascript-regex.json' ,
14
+ 'float-overflow.json' ,
14
15
'unknown.json' ,
15
16
'unknownKeyword.json' ,
16
17
@@ -26,9 +27,6 @@ def pytest_generate_tests(metafunc):
26
27
'minLength.json' ,
27
28
'minProperties.json' ,
28
29
29
- # TODO: fix big number
30
- 'multipleOf.json' ,
31
-
32
30
# TODO: fix empty schema == invalid
33
31
'not.json' ,
34
32
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ def pytest_generate_tests(metafunc):
11
11
'refRemote.json' , # Requires local server.
12
12
# Optional.
13
13
'ecmascript-regex.json' ,
14
+ 'float-overflow.json' ,
14
15
'unknown.json' ,
15
16
'unknownKeyword.json' ,
16
17
@@ -26,9 +27,6 @@ def pytest_generate_tests(metafunc):
26
27
'minLength.json' ,
27
28
'minProperties.json' ,
28
29
29
- # TODO: fix big number
30
- 'multipleOf.json' ,
31
-
32
30
# TODO: fix empty schema == invalid
33
31
'not.json' ,
34
32
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ def pytest_generate_tests(metafunc):
11
11
'refRemote.json' , # Requires local server.
12
12
# Optional.
13
13
'ecmascript-regex.json' ,
14
+ 'float-overflow.json' ,
14
15
'idn-hostname.json' ,
15
16
'iri.json' ,
16
17
'unknown.json' ,
@@ -28,9 +29,6 @@ def pytest_generate_tests(metafunc):
28
29
'minLength.json' ,
29
30
'minProperties.json' ,
30
31
31
- # TODO: fix big number
32
- 'multipleOf.json' ,
33
-
34
32
# TODO: fix empty schema == invalid
35
33
'not.json' ,
36
34
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ def pytest_generate_tests(metafunc):
11
11
'refRemote.json' , # Requires local server.
12
12
# Optional.
13
13
'ecmascript-regex.json' ,
14
+ 'float-overflow.json' ,
14
15
'idn-hostname.json' ,
15
16
'iri.json' ,
16
17
'unknown.json' ,
@@ -28,9 +29,6 @@ def pytest_generate_tests(metafunc):
28
29
'minLength.json' ,
29
30
'minProperties.json' ,
30
31
31
- # TODO: fix big number
32
- 'multipleOf.json' ,
33
-
34
32
# TODO: fix empty schema == invalid
35
33
'not.json' ,
36
34
You can’t perform that action at this time.
0 commit comments