| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // Dart test for testing parsing of "standard" types. | 4 // Dart test for testing parsing of "standard" types. |
| 5 | 5 |
| 6 class ParseTypesTest { | 6 class ParseTypesTest { |
| 7 static bool callBool1() { | 7 static bool callBool1() { |
| 8 return true; | 8 return true; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 Expect.equals(false, ParseTypesTest.callBool2()); | 29 Expect.equals(false, ParseTypesTest.callBool2()); |
| 30 Expect.equals(2, ParseTypesTest.callInt()); | 30 Expect.equals(2, ParseTypesTest.callInt()); |
| 31 Expect.equals("Hey", ParseTypesTest.callString()); | 31 Expect.equals("Hey", ParseTypesTest.callString()); |
| 32 Expect.equals(4.0, ParseTypesTest.callDouble()); | 32 Expect.equals(4.0, ParseTypesTest.callDouble()); |
| 33 } | 33 } |
| 34 } | 34 } |
| 35 | 35 |
| 36 main() { | 36 main() { |
| 37 ParseTypesTest.testMain(); | 37 ParseTypesTest.testMain(); |
| 38 } | 38 } |
| OLD | NEW |