OLD | NEW |
| (Empty) |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 import 'expect.dart'; | |
6 | |
7 var intField = 1; | |
8 var doubleField = 3.1415; | |
9 var stringField = "hello"; | |
10 var nullField = null; | |
11 var nullField2; | |
12 var composed = "hello" + " " + "world"; | |
13 | |
14 class A { | |
15 static var intField = 1; | |
16 static var doubleField = 3.1415; | |
17 static var stringField = "hello"; | |
18 static var nullField = null; | |
19 static var nullField2; | |
20 static var composed = "hello" + " " + "world"; | |
21 } | |
22 | |
23 main() { | |
24 Expect.isTrue(intField == 1); | |
25 Expect.isTrue(doubleField == 3.1415); | |
26 Expect.isTrue(stringField == "hello"); | |
27 Expect.isTrue(nullField == null); | |
28 Expect.isTrue(nullField2 == null); | |
29 Expect.isTrue(composed == "hello world"); | |
30 | |
31 Expect.isTrue(A.intField == 1); | |
32 Expect.isTrue(A.doubleField == 3.1415); | |
33 Expect.isTrue(A.stringField == "hello"); | |
34 Expect.isTrue(A.nullField == null); | |
35 Expect.isTrue(A.nullField2 == null); | |
36 Expect.isTrue(A.composed == "hello world"); | |
37 } | |
OLD | NEW |