// bad int
compile("<gxp:param name='x' type='int' />",
"<my:TestCall_nonExprAttributes x='bad' />");
assertAlert(new IllegalJavaPrimitiveError(pos(3, 1), "bad", "int"));
assertAlert(new IllegalScalaPrimitiveError(pos(3, 1), "bad", "int"));
assertNoUnexpectedAlerts();
// good char
compile("<gxp:param name='x' type='char' />",
"<my:TestCall_nonExprAttributes x='c' />",
"<my:TestCall_nonExprAttributes x=' ' />");
assertNoUnexpectedAlerts();
// bad char
compile("<gxp:param name='x' type='char' />",
"<my:TestCall_nonExprAttributes x='bad' />");
assertAlert(new IllegalJavaPrimitiveError(pos(3, 1), "bad", "char"));
assertAlert(new IllegalScalaPrimitiveError(pos(3, 1), "bad", "char"));
assertNoUnexpectedAlerts();
// good boolean
compile("<gxp:param name='x' type='boolean' />",
"<my:TestCall_nonExprAttributes x='true' />",
"<my:TestCall_nonExprAttributes x='false' />");
assertNoUnexpectedAlerts();
// bad boolean
compile("<gxp:param name='x' type='boolean' />",
"<my:TestCall_nonExprAttributes x='True' />",
"<my:TestCall_nonExprAttributes x='TRUE' />",
"<my:TestCall_nonExprAttributes x='bad' />");
assertAlert(new IllegalJavaPrimitiveError(pos(3, 1), "True", "boolean"));
assertAlert(new IllegalJavaPrimitiveError(pos(4, 1), "TRUE", "boolean"));
assertAlert(new IllegalJavaPrimitiveError(pos(5, 1), "bad", "boolean"));
assertAlert(new IllegalScalaPrimitiveError(pos(3, 1), "True", "boolean"));
assertAlert(new IllegalScalaPrimitiveError(pos(4, 1), "TRUE", "boolean"));
assertAlert(new IllegalScalaPrimitiveError(pos(5, 1), "bad", "boolean"));
assertNoUnexpectedAlerts();
}