Commit e8243f7
notation3.py: don't normalize float representation (#3020)
* added n3 test to check for internal float normalization
made as a separate commit to illustrate the old broken behavior priro to
the fix in the next commit
* notation3.py: don't normalize float representation
fix behavior of the n3 parser family to avoid normalizing raw float
string representation which makes it impossible to roundtrip the exact
original string representation of e.g. 1e10
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* style: add noqa to sfloat class
* chore: remove unused mypy type ignore
* test: refactor test_float_no_norm to use pytest parametrization
---------
Co-authored-by: Nicholas Car <[email protected]>
Co-authored-by: Edmond Chuc <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Edmond Chuc <[email protected]>1 parent 8da4e29 commit e8243f7
2 files changed
+26
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
387 | 391 | | |
388 | 392 | | |
389 | 393 | | |
| |||
1530 | 1534 | | |
1531 | 1535 | | |
1532 | 1536 | | |
1533 | | - | |
| 1537 | + | |
1534 | 1538 | | |
1535 | 1539 | | |
1536 | 1540 | | |
| |||
1921 | 1925 | | |
1922 | 1926 | | |
1923 | 1927 | | |
1924 | | - | |
| 1928 | + | |
1925 | 1929 | | |
1926 | 1930 | | |
1927 | 1931 | | |
1928 | 1932 | | |
1929 | 1933 | | |
1930 | 1934 | | |
1931 | 1935 | | |
1932 | | - | |
| 1936 | + | |
1933 | 1937 | | |
1934 | 1938 | | |
1935 | 1939 | | |
| |||
1949 | 1953 | | |
1950 | 1954 | | |
1951 | 1955 | | |
1952 | | - | |
| 1956 | + | |
1953 | 1957 | | |
1954 | 1958 | | |
1955 | 1959 | | |
| |||
1965 | 1969 | | |
1966 | 1970 | | |
1967 | 1971 | | |
1968 | | - | |
| 1972 | + | |
1969 | 1973 | | |
1970 | 1974 | | |
1971 | 1975 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
254 | 271 | | |
255 | 272 | | |
256 | 273 | | |
| |||
0 commit comments