Issue #1158: Language/Expressions/Numbers test splitted to web and non-web ones. Non-web ones should be excluded for dart2js in status files.
diff --git a/Language/Expressions/Numbers/static_type_of_int_t01.dart b/Language/Expressions/Numbers/static_type_of_int_t01.dart
index 05c1162..ebb9082 100644
--- a/Language/Expressions/Numbers/static_type_of_int_t01.dart
+++ b/Language/Expressions/Numbers/static_type_of_int_t01.dart
@@ -3,16 +3,13 @@
// BSD-style license that can be found in the LICENSE file.
/// @assertion The static type of an integer literal is int.
-/// @description Checks that no static warnings are produced when assigning an
-/// integer literal to a typed int variable.
+/// @description Checks that integer literal can be assigned to a typed int
+/// variable without errors or warnings. Tests big integer values.
+/// @note Should be excluded for the web runs.
/// @author iefremov
main() {
- int i = 0;
- i = 1;
- i = 2137483647;
- i = 2137483647;
- i = 9223372036854775807;
+ int i = 9223372036854775807;
i = 0xffffffffffffffff;
}
diff --git a/Language/Expressions/Numbers/static_type_of_int_t03.dart b/Language/Expressions/Numbers/static_type_of_int_t03.dart
new file mode 100644
index 0000000..dbd5988
--- /dev/null
+++ b/Language/Expressions/Numbers/static_type_of_int_t03.dart
@@ -0,0 +1,17 @@
+// Copyright (c) 2021, 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.
+
+/// @assertion The static type of an integer literal is int.
+/// @description Checks that integer literal can be assigned to a typed int
+/// variable without errors or warnings. Tests big integer values.
+/// @note Should be OK for all the configurations including web.
+/// @author iarkh@unipro.ru
+
+
+main() {
+ int i = 0;
+ i = 1;
+ i = 2137483647;
+ i = 2137483647;
+}