Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F132150
libivy_test.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
487 B
Referenced Files
None
Subscribers
None
libivy_test.lua
View Options
local
libivy
=
require
"ivy.libivy"
it
(
"should run a simple match"
,
function
(
t
)
local
score
=
libivy
.
ivy_match
(
"term"
,
"I am a serch term"
)
if
score
<=
0
then
t
.
error
(
"Score should not be less than 0 found "
..
score
)
end
end
)
it
(
"should find a dot file"
,
function
(
t
)
local
current_dir
=
libivy
.
ivy_cwd
()
local
matches
=
libivy
.
ivy_files
(
"ci.yml"
,
current_dir
);
if
matches
~=
".github/workflows/ci.yml
\n
"
then
t
.
error
(
"Invalid matches: "
..
matches
)
end
end
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Apr 10 2026, 4:36 AM (5 w, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15265
Default Alt Text
libivy_test.lua (487 B)
Attached To
Mode
R1 ivy.nvim
Attached
Detach File
Event Timeline
Log In to Comment