mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 14:32:24 +00:00
got rid of ecvt completely. reals.mod and texts test updated. -- noch
Former-commit-id: 606c23d096
This commit is contained in:
parent
5810271f0c
commit
f2e15511a0
4 changed files with 106 additions and 14 deletions
|
|
@ -3,6 +3,8 @@ MODULE testTexts;
|
|||
|
||||
IMPORT Texts, Console;
|
||||
|
||||
CONST pi = -311.1415;
|
||||
|
||||
VAR W : Texts.Writer;
|
||||
T : Texts.Text;
|
||||
R : Texts.Reader;
|
||||
|
|
@ -16,7 +18,11 @@ Texts.OpenWriter (W);
|
|||
|
||||
Texts.WriteString(W, "aaa");
|
||||
Texts.WriteLn(W);
|
||||
Texts.WriteReal(W, pi, 7);
|
||||
Texts.WriteLn(W);
|
||||
Texts.WriteRealFix(W, pi, 0, 7);
|
||||
Texts.WriteLn(W);
|
||||
Texts.WriteLongReal(W, pi, 7);
|
||||
Texts.WriteLn(W);
|
||||
NEW(T); Texts.Open(T, "test.txt");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue