Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
3b936a5f
Commit
3b936a5f
authored
Jan 08, 2016
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Fix math_fun_special test so it passes with single prec float.
parent
da3dffa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/float/math_fun_special.py
tests/float/math_fun_special.py
+1
-1
No files found.
tests/float/math_fun_special.py
View file @
3b936a5f
...
...
@@ -31,6 +31,6 @@ for function_name, function, test_vals in functions:
print
(
function_name
)
for
value
in
test_vals
:
try
:
print
(
"{:.
5
g}"
.
format
(
function
(
value
)))
print
(
"{:.
4
g}"
.
format
(
function
(
value
)))
except
ValueError
as
e
:
print
(
str
(
e
))
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