blob: 08dca8bac62dfb7cde1920180a1095505382db72 [file] [log] [blame] [edit]
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:io';
import 'package:test/test.dart';
void main() {
test('validate example', () {
final result = Process.runSync(
Platform.executable,
[
'--enable-experiment=non-nullable',
'example/example.dart',
],
);
expect(result.exitCode, 0);
expect(result.stdout, '''
2014-09-09 09:09:09.000Z
Tue, 09 Sep 2014 09:09:09 GMT
2014-09-09 09:09:09.000Z
''');
}, testOn: 'vm');
}