Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
algpath
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
Numerical algebraic geometry
algpath
Commits
e04330de
Commit
e04330de
authored
10 months ago
by
GUILLEMOT Alexandre
Browse files
Options
Downloads
Patches
Plain Diff
track tests macro
parent
0c238ebc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/track.rs
+44
-1
44 additions, 1 deletion
tests/track.rs
with
44 additions
and
1 deletion
tests/track.rs
+
44
−
1
View file @
e04330de
...
...
@@ -3,7 +3,6 @@
use
std
::
path
::
PathBuf
;
#[test]
fn
track
()
{
let
path
=
PathBuf
::
from
(
"data/2-2_1.json"
);
...
...
@@ -37,3 +36,47 @@ fn track() {
}
}
}
macro_rules!
nasty_examples
{
(
$
(
$name:ident
:
$e:expr
,)
*
)
=>
{
$
(
#[test]
fn
$name
()
{
println!
(
"{}"
,
$e
);
let
path
=
PathBuf
::
from
(
$e
);
let
mut
conf
=
algpath
::
cli
::
Configuration
{
path
:
Some
(
path
),
..
Default
::
default
()
};
conf
.homogenize
=
true
;
conf
.horner
=
true
;
let
mut
input_problem
=
algpath
::
cli
::
Problem
::
new_from_input
(
&
conf
)
.unwrap
();
let
mut
parametric_system
=
input_problem
.build_parametric_system
(
&
conf
)
.unwrap
();
let
path
=
&
input_problem
.path
;
for
point
in
&
input_problem
.fiber
{
let
proj_point
=
algpath
::
track
::
ProjectivePoint
{
coord
:
point
.clone
()
.into
(),
chart
:
0
,
};
let
mbox
=
parametric_system
.find_moore_box
(
&
path
[
0
]
.clone
()
.into
(),
proj_point
,
&
mut
Vec
::
new
())
.unwrap
();
let
_tr
=
parametric_system
.track
(
mbox
,
&
path
[
1
]
.clone
()
.into
())
.unwrap
();
}
}
)
*
};
}
// Nasty examples description :
// nasty_1: linear homotopy with a single degree 9 polynomial that has 4 close roots
nasty_examples!
{
nasty_1
:
"data/eric_1.json"
,
}
\ No newline at end of file
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