OLD | NEW |
1 #! This is currently only a comment. | 1 #! This is currently only a comment. |
2 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 // Testing a simple script importing a library. | 6 // Testing a simple script importing a library. |
7 // This file contains the script (aka root library). | 7 // This file contains the script (aka root library). |
8 | 8 |
9 library HelloScriptTest.dart; | 9 library HelloScriptTest.dart; |
10 import "package:expect/expect.dart"; | |
11 import "hello_script_lib.dart"; | 10 import "hello_script_lib.dart"; |
12 | 11 |
13 main() { | 12 main() { |
14 HelloLib.doTest(); | 13 HelloLib.doTest(); |
15 Expect.equals(18, x); | 14 Expect.equals(18, x); |
16 print("Hello done."); | 15 print("Hello done."); |
17 } | 16 } |
OLD | NEW |