mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:16:51 +00:00
40611dd611
TBR=kustermann@google.com BUG= Review URL: https://codereview.chromium.org/2454993003 .
38 lines
1.1 KiB
Dart
38 lines
1.1 KiB
Dart
// Copyright (c) 2016, 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 'package:expect/expect.dart';
|
|
|
|
var intField = 1;
|
|
var doubleField = 3.1415;
|
|
var stringField = "hello";
|
|
var nullField = null;
|
|
var nullField2;
|
|
var composed = "hello" + " " + "world";
|
|
|
|
class A {
|
|
static var intField = 1;
|
|
static var doubleField = 3.1415;
|
|
static var stringField = "hello";
|
|
static var nullField = null;
|
|
static var nullField2;
|
|
static var composed = "hello" + " " + "world";
|
|
}
|
|
|
|
main() {
|
|
Expect.isTrue(intField == 1);
|
|
Expect.isTrue(doubleField == 3.1415);
|
|
Expect.isTrue(stringField == "hello");
|
|
Expect.isTrue(nullField == null);
|
|
Expect.isTrue(nullField2 == null);
|
|
Expect.isTrue(composed == "hello world");
|
|
|
|
Expect.isTrue(A.intField == 1);
|
|
Expect.isTrue(A.doubleField == 3.1415);
|
|
Expect.isTrue(A.stringField == "hello");
|
|
Expect.isTrue(A.nullField == null);
|
|
Expect.isTrue(A.nullField2 == null);
|
|
Expect.isTrue(A.composed == "hello world");
|
|
}
|