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
95db4ce7
Commit
95db4ce7
authored
Jul 15, 2014
by
Shuai Meng
Committed by
Alexandre Julliard
Jul 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript/tests: Added tests for the subtype of TypeName.
parent
997820f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
api.vbs
dlls/vbscript/tests/api.vbs
+12
-3
No files found.
dlls/vbscript/tests/api.vbs
View file @
95db4ce7
...
...
@@ -845,17 +845,26 @@ MyObject.myval = 0
Call
ok
(
CSng
(
MyObject
)
=
0
,
"CSng(MyObject) = "
&
CSng
(
MyObject
))
Call
ok
(
getVT
(
CSng
(
MyObject
))
=
"VT_R4"
,
"getVT(CSng(MyObject)) = "
&
getVT
(
CSng
(
MyObject
)))
Dim
MyEmpty
Call
ok
(
TypeName
(
Empty
)
=
"Empty"
,
"TypeName(MyEmpty) = "
&
TypeName
(
Empty
))
Call
ok
(
getVT
(
TypeName
(
Empty
))
=
"VT_BSTR"
,
"getVT(TypeName(Empty)) = "
&
getVT
(
TypeName
(
Empty
)))
Call
ok
(
TypeName
(
Null
)
=
"Null"
,
"TypeName(Null) = "
&
TypeName
(
Null
))
Call
ok
(
getVT
(
TypeName
(
Null
))
=
"VT_BSTR"
,
"getVT(TypeName(Null)) = "
&
getVT
(
TypeName
(
Null
)))
Call
ok
(
TypeName
(
CByte
(
255
))
=
"Byte"
,
"TypeName(CByte(255)) = "
&
TypeName
(
CByte
(
255
)))
Call
ok
(
getVT
(
TypeName
(
CByte
(
255
)))
=
"VT_BSTR"
,
"getVT(TypeName(CByte(255))) = "
&
getVT
(
TypeName
(
CByte
(
255
))))
Call
ok
(
TypeName
(
255
)
=
"Integer"
,
"TypeName(255) = "
&
TypeName
(
255
))
Call
ok
(
getVT
(
TypeName
(
255
))
=
"VT_BSTR"
,
"getVT(TypeName(255)) = "
&
getVT
(
TypeName
(
255
)))
Call
ok
(
TypeName
(
32768
)
=
"Long"
,
"TypeName(32768) = "
&
TypeName
(
32768
))
Call
ok
(
getVT
(
TypeName
(
32768
))
=
"VT_BSTR"
,
"getVT(TypeName(32768)) = "
&
getVT
(
TypeName
(
32768
)))
Call
ok
(
TypeName
(
CSng
(
0.5
))
=
"Single"
,
"TypeName(CSng(0.5)) = "
&
TypeName
(
CSng
(
0.5
)))
Call
ok
(
getVT
(
TypeName
(
CSng
(
0.5
)))
=
"VT_BSTR"
,
"getVT(TypeName(CSng(0.5))) = "
&
getVT
(
TypeName
(
CSng
(
0.5
))))
Call
ok
(
TypeName
(
-
0.5
)
=
"Double"
,
"TypeName(-0.5) = "
&
TypeName
(
-
0.5
))
Call
ok
(
getVT
(
TypeName
(
-
0.5
))
=
"VT_BSTR"
,
"getVT(TypeName(-0.5)) = "
&
getVT
(
TypeName
(
-
0.5
)))
Call
ok
(
TypeName
(
CCur
(
0.5
))
=
"Currency"
,
"TypeName(CCur(0.5)) = "
&
TypeName
(
CCur
(
0.5
)))
Call
ok
(
getVT
(
TypeName
(
CCur
(
0.5
)))
=
"VT_BSTR"
,
"getVT(TypeName(CCur(0.5))) = "
&
getVT
(
TypeName
(
CCur
(
0.5
))))
Call
ok
(
TypeName
(
CStr
(
0.5
))
=
"String"
,
"TypeName(CStr(0.5)) = "
&
TypeName
(
CStr
(
0.5
)))
Call
ok
(
getVT
(
TypeName
(
CStr
(
0.5
)))
=
"VT_BSTR"
,
"getVT(TypeName(CStr(0.5))) = "
&
getVT
(
TypeName
(
CStr
(
0.5
))))
Call
ok
(
TypeName
(
True
)
=
"Boolean"
,
"TypeName(True) = "
&
TypeName
(
True
))
Call
ok
(
TypeName
(
MyEmpty
)
=
"Empty"
,
"TypeName(MyEmpty) = "
&
TypeName
(
Empty
))
Call
ok
(
TypeName
(
Null
)
=
"Null"
,
"TypeName(Null) = "
&
TypeName
(
Null
))
Call
ok
(
getVT
(
TypeName
(
True
))
=
"VT_BSTR"
,
"getVT(TypeName(True)) = "
&
getVT
(
TypeName
(
True
)))
Call
ok
(
VarType
(
Empty
)
=
vbEmpty
,
"VarType(Empty) = "
&
VarType
(
Empty
))
Call
ok
(
getVT
(
VarType
(
Empty
))
=
"VT_I2"
,
"getVT(VarType(Empty)) = "
&
getVT
(
VarType
(
Empty
)))
...
...
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