blob: c252716fc281a7a4372bb35e4824b54550f35465 [file] [log] [blame]
import 'package:test/test.dart';
import 'helper.dart' show check;
main() {
group('compile function that returns a value', () {
test('constant int', () {
return check("main() { return 1; }");
});
test('constant double', () {
return check("main() { return 1.0; }");
});
test('constant string', () {
return check("main() { return 'hello'; }");
});
test('constant bool', () {
return check("main() { return true; }");
});
test('constant symbol', () {
return check("main() { return #hello; }");
});
test('null', () {
return check("main() { return null; }");
});
});
}