MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / TEST

Function TEST

tests/tests/keyframe.cpp:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29using namespace util;
30
31TEST(lagi_keyframe, save) {
32 std::vector<int> kf = { 0, 5, 70, 180, 300 };
33
34 ASSERT_NO_THROW(Save("data/keyframe/out.txt", kf));
35
36 std::vector<int> res;
37 ASSERT_NO_THROW(res = Load("data/keyframe/out.txt"));
38
39 EXPECT_TRUE(kf == res);
40}
41
42TEST(lagi_keyframe, bad_files) {
43 EXPECT_THROW(Load(""), agi::fs::FileSystemError);

Callers

nothing calls this directly

Calls 2

LoadFunction · 0.85
SaveClass · 0.50

Tested by

no test coverage detected