mpv2oboeru

mpv helpers to create flashcards from movies and TV shows
git clone anongit@rnpnr.xyz:mpv2oboeru.git
Log | Files | Refs | Feed | README | LICENSE

Commit: f368fd1a013575ebedd36c9e01f29235f0aa2c62
Parent: 44573d9ec4314ff946377e318f10e97e6508dde1
Author: Marko Leinikka
Date:   Wed, 30 Mar 2022 00:25:34 +0300

make test functions local

Diffstat:
Mtest.lua | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test.lua b/test.lua @@ -1,12 +1,12 @@ local helpers = require('helpers') -function assert_equals(expected, actual) +local function assert_equals(expected, actual) if expected ~= actual then error(string.format("TEST FAILED: Expected '%s', got '%s'", expected, actual)) end end -function test_get_episode_number() +local function test_get_episode_number() local test_cases = { { nil, "A Whisker Away.mkv" }, { nil, "[Placeholder] Gekijouban SHIROBAKO [Ma10p_1080p][x265_flac]" }, @@ -26,6 +26,7 @@ function test_get_episode_number() end end +-- Runs tests test_get_episode_number() os.exit(print("Tests passed"))