Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ea185259
Commit
ea185259
authored
Dec 30, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added InStr tests.
parent
d23ecdfc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
api.vbs
dlls/vbscript/tests/api.vbs
+35
-0
No files found.
dlls/vbscript/tests/api.vbs
View file @
ea185259
...
...
@@ -89,4 +89,39 @@ TestHex empty, "0"
Call
ok
(
getVT
(
hex
(
null
))
=
"VT_NULL"
,
"getVT(hex(null)) = "
&
getVT
(
hex
(
null
)))
Call
ok
(
getVT
(
hex
(
empty
))
=
"VT_BSTR"
,
"getVT(hex(empty)) = "
&
getVT
(
hex
(
empty
)))
x
=
InStr
(
1
,
"abcd"
,
"bc"
)
Call
ok
(
x
=
2
,
"InStr returned "
&
x
)
x
=
InStr
(
"abcd"
,
"bc"
)
Call
ok
(
x
=
2
,
"InStr returned "
&
x
)
x
=
InStr
(
"abc"
,
"bc"
)
Call
ok
(
x
=
2
,
"InStr returned "
&
x
)
x
=
InStr
(
"abcbc"
,
"bc"
)
Call
ok
(
x
=
2
,
"InStr returned "
&
x
)
x
=
InStr
(
"bcabc"
,
"bc"
)
Call
ok
(
x
=
1
,
"InStr returned "
&
x
)
x
=
InStr
(
3
,
"abcd"
,
"bc"
)
Call
ok
(
x
=
0
,
"InStr returned "
&
x
)
x
=
InStr
(
"abcd"
,
"bcx"
)
Call
ok
(
x
=
0
,
"InStr returned "
&
x
)
x
=
InStr
(
5
,
"abcd"
,
"bc"
)
Call
ok
(
x
=
0
,
"InStr returned "
&
x
)
x
=
"abcd"
x
=
InStr
(
x
,
"bc"
)
Call
ok
(
x
=
2
,
"InStr returned "
&
x
)
x
=
InStr
(
"abcd"
,
null
)
Call
ok
(
isNull
(
x
),
"InStr returned "
&
x
)
x
=
InStr
(
null
,
"abcd"
)
Call
ok
(
isNull
(
x
),
"InStr returned "
&
x
)
x
=
InStr
(
2
,
null
,
"abcd"
)
Call
ok
(
isNull
(
x
),
"InStr returned "
&
x
)
Call
reportSuccess
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment