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
amdis
amdis-core
Commits
f688bc11
Commit
f688bc11
authored
Feb 28, 2019
by
Praetorius, Simon
Browse files
Cleanup of directory structure and removed obsolete files and functions
parent
0ef5f46a
Changes
181
Show whitespace changes
Inline
Side-by-side
test/TupleUtilityTest.cpp
deleted
100644 → 0
View file @
0ef5f46a
#include
<tuple>
#include
<iostream>
#include
<amdis/common/TupleUtility.hpp>
#include
"Tests.hpp"
using
namespace
AMDiS
;
int
main
()
{
using
Tuple1
=
std
::
tuple
<
double
,
int
>
;
using
TupleDouble
=
std
::
tuple
<
double
,
double
>
;
using
TupleInt
=
std
::
tuple
<
int
,
int
>
;
using
Tuple2
=
std
::
tuple
<
TupleDouble
,
TupleInt
>
;
Tuple1
u
{
1.3
,
2
};
auto
v
=
constructTuple
<
Tuple1
>
(
1.5
);
auto
w
=
foldTuples
<
Tuple2
>
(
u
,
v
);
AMDIS_TEST
((
u
==
Tuple1
{
1.3
,
2
}));
AMDIS_TEST
((
v
==
Tuple1
{
1.5
,
1
}));
AMDIS_TEST
((
w
==
Tuple2
{
TupleDouble
{
1.3
,
1.5
},
TupleDouble
{
2
,
1
}}
));
return
report_errors
();
}
\ No newline at end of file
Prev
1
…
6
7
8
9
10
Next
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