Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
74f92323
Commit
74f92323
authored
Dec 26, 2019
by
Nathaniel Wesley Filardo
Committed by
Marcel Stör
Jun 09, 2020
Browse files
mispec: don't use %f
The additional reporting, while nice, prevents the use of mispec on integer-only builds
parent
64993870
Changes
1
Hide whitespace changes
Inline
Side-by-side
lua_tests/mispec.lua
View file @
74f92323
...
@@ -117,8 +117,8 @@ M.runNextPending = function()
...
@@ -117,8 +117,8 @@ M.runNextPending = function()
M
.
succeeded
=
M
.
total
-
M
.
failed
M
.
succeeded
=
M
.
total
-
M
.
failed
local
elapsedSeconds
=
(
tmr
.
now
()
-
M
.
startTime
)
/
1000
/
1000
local
elapsedSeconds
=
(
tmr
.
now
()
-
M
.
startTime
)
/
1000
/
1000
print
(
string.format
(
print
(
string.format
(
'
\n\n
Completed in %
.2f
seconds
.\nSuccess rate is %.1f%% (
%d failed out of %d
)
.'
,
'
\n\n
Completed in %
d
seconds
;
%d failed out of %d.'
,
elapsedSeconds
,
100
*
M
.
succeeded
/
M
.
total
,
M
.
failed
,
M
.
total
))
elapsedSeconds
,
M
.
failed
,
M
.
total
))
M
.
pending
=
nil
M
.
pending
=
nil
M
.
queuedEventuallyCount
=
nil
M
.
queuedEventuallyCount
=
nil
end
end
...
...
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