mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-04 20:25:33 +00:00
26 lines
489 B
C++
26 lines
489 B
C++
#include <Item.hpp>
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
TEST(projectMPlaylistItem, Create)
|
|
{
|
|
ASSERT_NO_THROW(libprojectM::Playlist::Item item("/some/file"));
|
|
}
|
|
|
|
|
|
TEST(projectMPlaylistItem, GetFilename)
|
|
{
|
|
libprojectM::Playlist::Item item("/some/file");
|
|
|
|
ASSERT_EQ(item.Filename(), "/some/file");
|
|
}
|
|
|
|
|
|
TEST(projectMPlaylistItem, FilenameEquality)
|
|
{
|
|
libprojectM::Playlist::Item item("/some/file");
|
|
|
|
EXPECT_TRUE(item == "/some/file");
|
|
EXPECT_FALSE(item == "/some/other/file");
|
|
}
|