source: trunk/TestCase/SimpleTestCase/StreamTest.ab@ 432

Last change on this file since 432 was 432, checked in by イグトランス (egtra), 16 years ago

StreamReaderの完成。StringReaderの追加。
Consoleの追加(現在入力関係の一部のみ)。

File size: 577 bytes
Line 
1Namespace StreamTest
2
3Imports System.IO
4
5Sub TestMain()
6 StringReaderTest()
7End Sub
8
9Sub StringReaderTest()
10 Dim sr = New StringReader(Ex"0 abc\n123\r\nあいうえお\r\nアイウエオ")
11 UnitTest("sr.Read() - 1", sr.Read() = &h30)
12 UnitTest("sr.Read() - 2", sr.Read() = &h20)
13 UnitTest("sr.Peek()", sr.Peek() = &h61)
14 UnitTest("sr.ReadLine() \n", sr.ReadLine() = "abc")
15 UnitTest("sr.ReadLine() \r\n", sr.ReadLine() = "123")
16 Dim s = sr.ReadToEnd()
17 UnitTest("sr.ReadToEnd() \r\n", s = Ex"あいうえお\r\nアイウエオ")
18End Sub
19
20End Namespace
21
22StreamTest.TestMain()
Note: See TracBrowser for help on using the repository browser.