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
RudolfWeeber
lbmpy
Commits
2b4af66d
Commit
2b4af66d
authored
Oct 01, 2019
by
Martin Bauer
Browse files
Hash test update
parent
f8a11805
Changes
1
Hide whitespace changes
Inline
Side-by-side
lbmpy_tests/test_code_hashequivalence.py
View file @
2b4af66d
...
...
@@ -11,7 +11,7 @@ def test_hash_equivalence():
exactly the same code (not only functionally equivalent code) should be produced.
Due to undefined order in sets and dicts this may no be the case.
"""
ref_value
=
"
2cde9763ab71a9d5caba056e6d0011e553fa01ab71668ee32024ce3f68e7d698
"
ref_value
=
"
902be811a587c52e24ce03ec78d3defbb87d58eaaafbb9b47f823b960319e4be
"
ast
=
create_lb_ast
(
stencil
=
'D3Q19'
,
method
=
'srt'
,
optimization
=
{
'openmp'
:
False
})
code
=
generate_c
(
ast
)
hash_value
=
sha256
(
code
.
encode
()).
hexdigest
()
...
...
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