notcurses/tests/libav.cpp

22 lines
415 B
C++
Raw Normal View History

2019-11-25 03:22:18 +00:00
#include <notcurses.h>
#include "main.h"
class LibavTest : public :: testing::Test {
protected:
void SetUp() override {
}
void TearDown() override {
}
};
TEST_F(LibavTest, LoadImage) {
int ret = notcurses_visual_open(nullptr, "../tools/dsscaw-purp.png");
2019-11-27 01:19:16 +00:00
ASSERT_EQ(0, ret);
}
TEST_F(LibavTest, LoadVideo) {
int ret = notcurses_visual_open(nullptr, "../tools/atliens.mkv");
2019-11-25 03:22:18 +00:00
ASSERT_EQ(0, ret);
}