mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +00:00
24 lines
479 B
C++
24 lines
479 B
C++
#include <notcurses.h>
|
|
#include "main.h"
|
|
|
|
class LibavTest : public :: testing::Test {
|
|
protected:
|
|
void SetUp() override {
|
|
}
|
|
|
|
void TearDown() override {
|
|
}
|
|
};
|
|
|
|
TEST_F(LibavTest, LoadImage) {
|
|
auto ncv = notcurses_visual_open(nullptr, "../tools/dsscaw-purp.png");
|
|
ASSERT_NE(nullptr, ncv);
|
|
ncvisual_destroy(ncv);
|
|
}
|
|
|
|
TEST_F(LibavTest, LoadVideo) {
|
|
auto ncv = notcurses_visual_open(nullptr, "../tools/atliens.mkv");
|
|
ASSERT_NE(nullptr, ncv);
|
|
ncvisual_destroy(ncv);
|
|
}
|