0947675d6d
This technically steals a few tests from the previous batch that spans corelib and language, but I wanted to start from the top of the language tests. Removed application_test and application_negative_test because they are useless and the latter has never actually worked correctly since the day it was transliterated from the long-defunct application file syntax. R=bkonyi@google.com, whesse@google.com Review-Url: https://codereview.chromium.org/2984443003 .
16 lines
557 B
Dart
16 lines
557 B
Dart
// Copyright (c) 2014, 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.
|
|
// Dart test program to test arithmetic operations.
|
|
|
|
// VMOptions=--optimization_counter_threshold=5 --no-background_compilation
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
main() {
|
|
for (var i = 0; i < 10; i++) {
|
|
Expect.equals(0x40000000, (i - i) - -1073741824);
|
|
Expect.equals(0x4000000000000000, (i - i) - -4611686018427387904);
|
|
}
|
|
}
|