Skip to content

Commit 797bd1b

Browse files
committed
tests: stop accidentally relying on Bool-to-NSNumber bridging
1 parent f741033 commit 797bd1b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/1_stdlib/PrintBoolean.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ PrintTests.test("CustomStringConvertible") {
1111
expectTrue(any is CustomStringConvertible)
1212
}
1313

14-
hasDescription(Bool(true))
15-
hasDescription(CBool(true))
14+
hasDescription(true as Bool)
15+
hasDescription(true as CBool)
1616
}
1717

1818
PrintTests.test("Printable") {
19-
expectPrinted("true", CBool(true))
20-
expectPrinted("false", CBool(false))
21-
22-
expectPrinted("true", Bool(true))
23-
expectPrinted("false", Bool(false))
24-
19+
expectPrinted("true", true as CBool)
20+
expectPrinted("false", false as CBool)
21+
22+
expectPrinted("true", true as Bool)
23+
expectPrinted("false", false as Bool)
24+
2525
expectPrinted("true", true)
2626
expectPrinted("false", false)
2727
}

0 commit comments

Comments
 (0)