Skip to content

Commit

Permalink
Use new string search commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Feb 4, 2025
1 parent 28ef649 commit 6e53d1f
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions test/db/cmd/cmd_search_in
Original file line number Diff line number Diff line change
@@ -1,72 +1,80 @@
NAME=/ search.in=io.maps without -m
NAME=/z search.in=io.maps without -m
FILE=bins//wasm/inc.wast
ARGS=-m 0x80000
CMDS=<<EOF
e search.in=io.maps
e io.va=true
/ get~[0]
e search.show_progress=false
/z get~[0]
EOF
EXPECT=<<EOF
0x00080053
0x00080067
EOF
RUN

NAME=/ search.in=io.maps without -m
NAME=/z search.in=io.maps without -m
FILE=bins//wasm/inc.wast
CMDS=<<EOF
e search.in=io.maps
/ get~[0]
e search.show_progress=false
/z get~[0]
EOF
EXPECT=<<EOF
0x00000053
0x00000067
EOF
RUN

NAME=/ search.in=(default)
NAME=/z search.in=(default)
FILE=bins//wasm/inc.wast
CMDS=/ get~[0]
CMDS=<<EOF
e search.show_progress=false
/z get~[0]
EOF
EXPECT=<<EOF
0x00000053
0x00000067
EOF
RUN

NAME=/ search.in=file
NAME=/z search.in=file
FILE=bins//wasm/inc.wast
CMDS=<<EOF
e search.in=file
/ get~[0]
e search.show_progress=false
/z get~[0]
EOF
EXPECT=<<EOF
0x00000053
0x00000067
EOF
RUN

NAME=/ search io.maps with map
NAME=/z search io.maps with map
FILE=bins//wasm/inc.wast
ARGS=-m 0x80000
CMDS=<<EOF
e search.show_progress=false
e search.in=io.maps
e io.va=true
/ get~[0]
/z get~[0]
EOF
EXPECT=<<EOF
0x00080053
0x00080067
EOF
RUN

NAME=/ search io.maps 2
NAME=/z search io.maps 2
FILE=bins//wasm/inc.wast
ARGS=-m 0x80000
CMDS=<<EOF
e search.show_progress=false
om 3 0x400000
e io.va=true
e search.in=io.maps
/ get~[0]
/z get~[0]
EOF
EXPECT=<<EOF
0x00080053
Expand Down

0 comments on commit 6e53d1f

Please sign in to comment.