Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
MPAI-Private
MPAI-CAE
arp
Video Analyzer
Commits
124dd4b2
Commit
124dd4b2
authored
Jul 06, 2023
by
Matteo Spanio
Browse files
update
parent
7944a0f3
Changes
42
Hide whitespace changes
Inline
Side-by-side
tests/images/test_scene_01.jpg
0 → 100644
View file @
124dd4b2
133 KB
tests/irregularity_test.cpp
View file @
124dd4b2
#include
"../src/lib/Irregularity.hpp"
#include
<gtest/gtest.h>
#include
<boost/uuid/uuid.hpp>
#include
<boost/uuid/uuid_generators.hpp>
#include
"../src/lib/Irregularity.h"
TEST
(
Irregularity
,
Init
)
{
Irregularity
irreg
=
Irregularity
(
Source
::
Video
,
"00:00:00.000"
,
IrregularityType
::
WOW_AND_FLUTTER
,
"https://example.com/image.png"
);
Irregularity
irreg
=
Irregularity
(
Source
::
Video
,
"00:00:00.000"
,
IrregularityType
::
WOW_AND_FLUTTER
)
.
set_image_URI
(
"https://example.com/image.png"
);
Irregularity
irreg2
=
Irregularity
(
Source
::
Video
,
"00:00:00.000"
,
IrregularityType
::
WOW_AND_FLUTTER
,
"https://example.com/image.png"
);
Irregularity
irreg2
=
Irregularity
(
Source
::
Video
,
"00:00:00.000"
,
IrregularityType
::
WOW_AND_FLUTTER
)
.
set_image_URI
(
"https://example.com/image.png"
);
EXPECT_NE
(
irreg
.
id
,
irreg2
.
id
);
EXPECT_EQ
(
irreg
.
source
,
irreg2
.
source
);
EXPECT_EQ
(
irreg
.
time_label
,
irreg2
.
time_label
);
EXPECT_EQ
(
irreg
.
type
,
irreg2
.
type
);
EXPECT_EQ
(
irreg
.
image_URI
,
irreg2
.
image_URI
);
EXPECT_NE
(
irreg
.
get_id
(),
irreg2
.
get_id
());
EXPECT_EQ
(
irreg
.
get_source
(),
irreg2
.
get_source
());
EXPECT_EQ
(
irreg
.
get_time_label
(),
irreg2
.
get_time_label
());
EXPECT_EQ
(
irreg
.
get_type
(),
irreg2
.
get_type
());
EXPECT_EQ
(
irreg
.
get_image_URI
(),
irreg2
.
get_image_URI
());
EXPECT_EQ
(
irreg
.
get_audio_URI
(),
irreg2
.
get_audio_URI
());
}
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment