OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2017, 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 'dart:io'; | |
6 | |
7 import "package:expect/expect.dart"; | |
8 | |
9 main() { | |
10 try { | |
11 Platform.localeName; | |
12 } catch (e, s) { | |
13 Expect.fail("Platform.localeName threw: $e\n$s\n"); | |
14 } | |
15 Expect.isNotNull(Platform.localeName); | |
16 Expect.isTrue(Platform.localeName is String); | |
17 print(Platform.localeName); | |
Alan Knight
2017/03/30 18:11:18
Is this leftover debugging code?
zra
2017/03/30 18:14:31
I left it in intentionally to make the test easier
| |
18 } | |
OLD | NEW |