aboutsummaryrefslogtreecommitdiff
path: root/tests.lua
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-10-01 12:54:48 +0530
committersinanmohd <sinan@sinanmohd.com>2023-10-01 13:02:32 +0530
commitc9c0b23d750d6a6320629f2f7b722b1d3b2c1ddf (patch)
tree693c3b59e58a7533a9d49598a4886b1ce0809446 /tests.lua
parent861453ac25d3a5476dd8dc0e1bbe48874d8567af (diff)
lib/util: string_rm_vid_ext -> string_vid_path_to_name
Diffstat (limited to 'tests.lua')
-rwxr-xr-xtests.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests.lua b/tests.lua
index 76417d3..962a8c3 100755
--- a/tests.lua
+++ b/tests.lua
@@ -6,13 +6,13 @@ local util = require 'lib/util'
local errs = 0
local test_subscene = function ()
- local out, ohash, name, rc
+ local out, ohash, path, rc
out = os.tmpname()
- name = util.string_rm_vid_ext('Fight Club (1999) (1080p BluRay x265 10bit Tigole) [QxR].mp4')
+ path = './dir/Fight Club (1999) (1080p BluRay x265 10bit Tigole) [QxR].mp4'
ohash = 'ffec132e13e08f4c'
- rc = subscene.search(name, out)
+ rc = subscene.search(path, out)
if not rc then
util.error('subscene: fetch failed')
errs = errs + 1