Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Markus Holzer
pystencils
Commits
19852424
Commit
19852424
authored
Dec 20, 2021
by
Markus Holzer
Browse files
Fix squre root round off
parent
09c6f788
Pipeline
#36460
passed with stages
in 34 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pystencils_tests/test_types.py
View file @
19852424
...
...
@@ -101,8 +101,9 @@ def test_sqrt_of_integer():
kernel
(
f
=
arr_single
)
code
=
ps
.
get_code_str
(
kernel
.
ast
)
assert
"1.7320508075688772f"
in
code
# ps.show_code(kernel.ast)
# 1.7320508075688772935 --> it is actually correct to round to ...773. This was wrong before !282
assert
"1.7320508075688773f"
in
code
assert
1.7
<
arr_single
[
0
]
<
1.8
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment