Skip to content

Commit

Permalink
Add search-by-type comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
xvw committed Oct 24, 2024
1 parent e79cce6 commit 8872505
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions tests/test-dirs/search/issue1113.t
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,57 @@
"name": "__LOC__",
"desc": "string"
}

$ $MERLIN single search-by-type -filename ./main.ml \
> -position 5:25 -limit 10 -query "ezfnifzen -> ezfzef" |
> tr '\n' ' ' | jq '.value[] | {name,type,cost}'
{
"name": "Gc.major",
"type": "unit -> unit",
"cost": 13
}
{
"name": "Gc.minor",
"type": "unit -> unit",
"cost": 13
}
{
"name": "Sys.time",
"type": "unit -> float",
"cost": 13
}
{
"name": "read_int",
"type": "unit -> int",
"cost": 13
}
{
"name": "read_int",
"type": "unit -> int",
"cost": 13
}
{
"name": "flush_all",
"type": "unit -> unit",
"cost": 13
}
{
"name": "flush_all",
"type": "unit -> unit",
"cost": 13
}
{
"name": "read_line",
"type": "unit -> string",
"cost": 13
}
{
"name": "read_line",
"type": "unit -> string",
"cost": 13
}
{
"name": "Bytes.copy",
"type": "bytes -> bytes",
"cost": 13
}

0 comments on commit 8872505

Please sign in to comment.