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
mlz
libcerf
Commits
88b00d08
Commit
88b00d08
authored
Jun 12, 2021
by
Wuttke, Joachim
Browse files
test output: terminal newline
parent
22375380
Changes
6
Hide whitespace changes
Inline
Side-by-side
test/cerftest.c
View file @
88b00d08
...
...
@@ -215,6 +215,6 @@ int main()
result
,
1e-13
,
cerfcx
(
C
(
1
.
234
,
0
.
5678
)),
C
(
0
.
3382187479799972294747793561190487832579
,
-
0
.
1116077470811648467464927471872945833154
));
printf
(
"%i/%i tests failed"
,
result
.
failed
,
result
.
total
);
printf
(
"%i/%i tests failed
\n
"
,
result
.
failed
,
result
.
total
);
return
result
.
failed
;
}
test/dawsontest.c
View file @
88b00d08
...
...
@@ -157,6 +157,6 @@ int main()
-
1.20000000000000000000000001800000000000000000e-42
));
ZTEST
(
result
,
1e-13
,
cdawson
(
C
(
1e300
,
2.4e-303
)),
C
(
5e-301
,
0
));
printf
(
"%i/%i tests failed"
,
result
.
failed
,
result
.
total
);
printf
(
"%i/%i tests failed
\n
"
,
result
.
failed
,
result
.
total
);
return
result
.
failed
;
}
test/realtest.c
View file @
88b00d08
...
...
@@ -77,6 +77,6 @@ int main(void)
xTest
(
&
result
,
"dawson"
,
cdawson
,
dawson
,
1e-20
,
1e-300
,
1e150
);
iTest
(
&
result
,
"dawson"
,
cdawson
,
dawson
);
printf
(
"%i/%i tests failed"
,
result
.
failed
,
result
.
total
);
printf
(
"%i/%i tests failed
\n
"
,
result
.
failed
,
result
.
total
);
return
result
.
failed
;
}
test/voigttest.c
View file @
88b00d08
...
...
@@ -45,6 +45,6 @@ int main()
RTEST
(
result
,
1e-12
,
voigt
(
1
,
.
2
,
5
),
0
.
061133
99719916219
);
RTEST
(
result
,
1e-12
,
voigt
(
1
,
5
,
.
2
),
0
.
075
82140674553575
);
printf
(
"%i/%i tests failed"
,
result
.
failed
,
result
.
total
);
printf
(
"%i/%i tests failed
\n
"
,
result
.
failed
,
result
.
total
);
return
result
.
failed
?
1
:
0
;
}
test/widthtest.c
View file @
88b00d08
...
...
@@ -44,6 +44,6 @@ int main()
RTEST
(
result
,
1e-2
,
voigt_hwhm
(
1
.,
gamma
),
hwhm0
(
1
.,
gamma
));
}
printf
(
"%i/%i tests failed"
,
result
.
failed
,
result
.
total
);
printf
(
"%i/%i tests failed
\n
"
,
result
.
failed
,
result
.
total
);
return
result
.
failed
?
1
:
0
;
}
test/wofztest.c
View file @
88b00d08
...
...
@@ -233,6 +233,6 @@ int main()
ZTEST
(
result
,
1e-13
,
w_of_z
(
C
(
NaN
,
Inf
)),
C
(
NaN
,
NaN
));
ZTEST
(
result
,
1e-13
,
w_of_z
(
C
(
Inf
,
NaN
)),
C
(
NaN
,
NaN
));
printf
(
"%i/%i tests failed"
,
result
.
failed
,
result
.
total
);
printf
(
"%i/%i tests failed
\n
"
,
result
.
failed
,
result
.
total
);
return
result
.
failed
;
}
Write
Preview
Supports
Markdown
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