@@ -34,7 +34,11 @@ PrintTests.test("CustomStringConvertible") {
3434 hasDescription ( CInt ( 42 ) )
3535 hasDescription ( CLong ( 42 ) )
3636 hasDescription ( CLongLong ( 42 ) )
37+ #if os(Windows)
38+ hasDescription ( CWideChar ( exactly: 42 ) !)
39+ #else
3740 hasDescription ( CWideChar ( 42 ) !)
41+ #endif
3842 hasDescription ( CChar16 ( 42 ) )
3943 hasDescription ( CChar32 ( 42 ) !)
4044}
@@ -51,7 +55,11 @@ PrintTests.test("Printable") {
5155 expectPrinted ( " 42 " , CInt ( 42 ) )
5256 expectPrinted ( " 42 " , CLong ( 42 ) )
5357 expectPrinted ( " 42 " , CLongLong ( 42 ) )
58+ #if os(Windows)
59+ expectPrinted ( " 42 " , CWideChar ( exactly: 42 ) !)
60+ #else
5461 expectPrinted ( " * " , CWideChar ( 42 ) !)
62+ #endif
5563 expectPrinted ( " 42 " , CChar16 ( 42 ) )
5664 expectPrinted ( " * " , CChar32 ( 42 ) !)
5765
@@ -142,7 +150,11 @@ PrintTests.test("Printable") {
142150 expectPrinted ( " 42 " , CLong ( 42 ) )
143151 expectPrinted ( " 42 " , CLongLong ( 42 ) )
144152
153+ #if os(Windows)
154+ expectPrinted ( " 42 " , CWideChar ( exactly: 42 ) !)
155+ #else
145156 expectPrinted ( " * " , CWideChar ( 42 ) !)
157+ #endif
146158 expectPrinted ( " 42 " , CChar16 ( 42 ) )
147159 expectPrinted ( " * " , CChar32 ( 42 ) !)
148160}
0 commit comments