File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
test/Interop/Cxx/foreign-reference Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,18 +16,18 @@ var TemplatingTestSuite = TestSuite("Foreign references work with templates")
16
16
17
17
TemplatingTestSuite . test ( " SubT " ) {
18
18
let s : SubT = SubT . getSubT ( )
19
- assert ( ! s. isBase)
19
+ expectFalse ( s. isBase)
20
20
let sc : BaseT = cast ( s)
21
- assert ( ! sc. isBase)
21
+ expectFalse ( sc. isBase)
22
22
let sx : BaseT = cxxCast ( s) // should instantiate I to SubT and O to BaseT
23
- assert ( ! sc. isBase)
23
+ expectFalse ( sc. isBase)
24
24
}
25
25
26
26
TemplatingTestSuite . test ( " BaseT " ) {
27
27
let b : BaseT = BaseT . getBaseT ( )
28
- assert ( b. isBase)
28
+ expectTrue ( b. isBase)
29
29
let bc : BaseT = cxxCast ( b) // should instantiate I and O both to BaseT
30
- assert ( bc. isBase)
30
+ expectTrue ( bc. isBase)
31
31
}
32
32
33
33
runAllTests ( )
You can’t perform that action at this time.
0 commit comments