OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'dart:typed_data'; | 5 import 'dart:typed_data'; |
6 | 6 |
7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
8 import 'package:file/file.dart'; | 8 import 'package:file/file.dart'; |
9 | 9 |
10 void main() { | 10 void main() { |
11 testStdio(); | 11 testStdio(); |
12 } | 12 } |
13 | 13 |
14 void testStdio() { | 14 void testStdio() { |
15 Expect.isNotNull(File.stdin); | 15 Expect.isNotNull(File.stdin); |
16 Expect.equals(0, File.stdin.fd); | 16 Expect.equals(0, File.stdin.fd); |
17 Expect.isNotNull(File.stdout); | 17 Expect.isNotNull(File.stdout); |
18 Expect.equals(1, File.stdout.fd); | 18 Expect.equals(1, File.stdout.fd); |
19 Expect.isNotNull(File.stderr); | 19 Expect.isNotNull(File.stderr); |
20 Expect.equals(2, File.stderr.fd); | 20 Expect.equals(2, File.stderr.fd); |
21 } | 21 } |
OLD | NEW |