Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pcg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bouillaguet Charles
pcg
Commits
13d6914f
Commit
13d6914f
authored
5 years ago
by
Bouillaguet Charles
Browse files
Options
Downloads
Patches
Plain Diff
amélioration critère test_falsenegative
parent
8db7a322
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Cunknown/test_falsenegative.c
+7
-4
7 additions, 4 deletions
Cunknown/test_falsenegative.c
with
7 additions
and
4 deletions
Cunknown/test_falsenegative.c
+
7
−
4
View file @
13d6914f
...
@@ -62,10 +62,13 @@ int main()
...
@@ -62,10 +62,13 @@ int main()
printf
(
"1..1
\n
"
);
printf
(
"1..1
\n
"
);
static
const
int
nbtests
=
1000000
;
static
const
int
nbtests
=
1000000
;
int
successes
=
testValid
(
f
,
nbtests
);
int
successes
=
testValid
(
f
,
nbtests
);
if
(
successes
!=
nbtests
)
bool
ok
=
(
known_low
==
11
)
&&
(
successes
>
0
.
635
*
nbtests
);
printf
(
"not ok 1 - #success = %d / %d
\n
"
,
successes
,
nbtests
);
ok
|=
(
known_low
==
12
)
&&
(
successes
>
0
.
99
*
nbtests
);
ok
|=
(
known_low
==
13
)
&&
(
successes
==
nbtests
);
if
(
ok
)
printf
(
"ok 1 - %d tests OK
\n
"
,
nbtests
);
else
else
printf
(
"ok 1 -
all %d tests OK
\n
"
,
nbtests
);
printf
(
"
not
ok 1 -
#success = %d / %d
\n
"
,
successes
,
nbtests
);
exit
(
0
);
exit
(
0
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment