@@ -250,17 +250,17 @@ class ExpressionEvaluationSuite extends FunSuite {
250
250
251
251
intercept[Exception ] {evaluate(Literal (1 ) cast BinaryType , null )}
252
252
253
- checkEvaluation ((" abcdef" cast StringType ).nullable, false )
254
- checkEvaluation ((" abcdef" cast BinaryType ).nullable, false )
255
- checkEvaluation ((" abcdef" cast BooleanType ).nullable, false )
256
- checkEvaluation ((" abcdef" cast TimestampType ).nullable, true )
257
- checkEvaluation ((" abcdef" cast LongType ).nullable, true )
258
- checkEvaluation ((" abcdef" cast IntegerType ).nullable, true )
259
- checkEvaluation ((" abcdef" cast ShortType ).nullable, true )
260
- checkEvaluation ((" abcdef" cast ByteType ).nullable, true )
261
- checkEvaluation ((" abcdef" cast DecimalType ).nullable, true )
262
- checkEvaluation ((" abcdef" cast DoubleType ).nullable, true )
263
- checkEvaluation ((" abcdef" cast FloatType ).nullable, true )
253
+ assert ((" abcdef" cast StringType ).nullable === false )
254
+ assert ((" abcdef" cast BinaryType ).nullable === false )
255
+ assert ((" abcdef" cast BooleanType ).nullable === false )
256
+ assert ((" abcdef" cast TimestampType ).nullable === true )
257
+ assert ((" abcdef" cast LongType ).nullable === true )
258
+ assert ((" abcdef" cast IntegerType ).nullable === true )
259
+ assert ((" abcdef" cast ShortType ).nullable === true )
260
+ assert ((" abcdef" cast ByteType ).nullable === true )
261
+ assert ((" abcdef" cast DecimalType ).nullable === true )
262
+ assert ((" abcdef" cast DoubleType ).nullable === true )
263
+ assert ((" abcdef" cast FloatType ).nullable === true )
264
264
265
265
checkEvaluation(Cast (Literal (null , IntegerType ), ShortType ), null )
266
266
}
0 commit comments