Commit 124dd4b2 authored by Matteo Spanio's avatar Matteo Spanio
Browse files

update

parent 7944a0f3
#include "../src/lib/Irregularity.hpp"
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <boost/uuid/uuid.hpp> #include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp> #include <boost/uuid/uuid_generators.hpp>
#include "../src/lib/Irregularity.h"
TEST(Irregularity, Init) { TEST(Irregularity, Init) {
Irregularity irreg = Irregularity( Irregularity irreg = Irregularity(Source::Video, "00:00:00.000", IrregularityType::WOW_AND_FLUTTER)
Source::Video, .set_image_URI("https://example.com/image.png");
"00:00:00.000",
IrregularityType::WOW_AND_FLUTTER,
"https://example.com/image.png"
);
Irregularity irreg2 = Irregularity( Irregularity irreg2 = Irregularity(Source::Video, "00:00:00.000", IrregularityType::WOW_AND_FLUTTER)
Source::Video, .set_image_URI("https://example.com/image.png");
"00:00:00.000",
IrregularityType::WOW_AND_FLUTTER,
"https://example.com/image.png"
);
EXPECT_NE(irreg.id, irreg2.id); EXPECT_NE(irreg.get_id(), irreg2.get_id());
EXPECT_EQ(irreg.source, irreg2.source); EXPECT_EQ(irreg.get_source(), irreg2.get_source());
EXPECT_EQ(irreg.time_label, irreg2.time_label); EXPECT_EQ(irreg.get_time_label(), irreg2.get_time_label());
EXPECT_EQ(irreg.type, irreg2.type); EXPECT_EQ(irreg.get_type(), irreg2.get_type());
EXPECT_EQ(irreg.image_URI, irreg2.image_URI); EXPECT_EQ(irreg.get_image_URI(), irreg2.get_image_URI());
EXPECT_EQ(irreg.get_audio_URI(), irreg2.get_audio_URI());
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment