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
Gauthier Quesnel
irritator
Commits
010846a0
Commit
010846a0
authored
Jul 02, 2020
by
Gauthier Quesnel
Browse files
test: disable auditory test if inputs are missing
parent
9ed6238f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/test/auditory.cpp
View file @
010846a0
...
...
@@ -101,6 +101,9 @@ vector<vector<double>> parse2DCsvFile(string inputFileName) {
vector
<
vector
<
double
>
>
data
;
ifstream
inputFile
(
inputFileName
);
if
(
!
inputFile
.
is_open
())
return
{};
int
l
=
0
;
while
(
inputFile
)
{
...
...
@@ -454,6 +457,8 @@ main()
{
using
namespace
boost
::
ut
;
if
(
sound_data
.
empty
()
||
link_data
.
empty
())
return
0
;
"laudanski_1_simulation"
_test
=
[]
{
irt
::
simulation
sim
;
...
...
@@ -461,13 +466,9 @@ main()
// Neuron constants
long
unsigned
int
N
=
sound_data
.
size
()
-
1
;
long
unsigned
int
M
=
link_data
[
0
].
size
();
expect
(
irt
::
is_success
(
sim
.
init
(
1000000lu
,
100000lu
)));
// Neurons
std
::
vector
<
struct
neuron
>
first_layer_neurons
;
for
(
long
unsigned
int
i
=
0
;
i
<
N
;
i
++
)
{
...
...
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