X-Git-Url: http://deadsoftware.ru/gitweb?p=dsw-obn.git;a=blobdiff_plain;f=src%2Ftest.c;h=9fad93d4461223fcc752d5a79e48261711e9709d;hp=2c5fb0462c6cb482a0d66fbd593af3fa4f85f5d8;hb=d11b76dfc015306841ed4befae800ba1ed7c765b;hpb=25b73915e7fe0ae7dc51cf6f4a012f021257a35d diff --git a/src/test.c b/src/test.c index 2c5fb04..9fad93d 100644 --- a/src/test.c +++ b/src/test.c @@ -20,13 +20,14 @@ static char source_test[] = "BEGIN" " Out.Open;" " byte := 127;" - " int := 666;" + " int := 666 DIV 2;" " long := int;" - " real := int;" - " longreal := int;" + " real := (4 / 1) - (4 / 3) + (4 / 5) - (4 / 7) + (4 / 9) - (4 / 11) + (4 / 13) - (4 / 15) + (4 / 17);" + " longreal := (4 / 1) - (4 / 3) + (4 / 5) - (4 / 7) + (4 / 9) - (4 / 11) + (4 / 13) - (4 / 15) + (4 / 17);" " Out.Int(666, 0); Out.Ln;" " Out.Int(byte, 0); Out.Ln;" - " Out.LongReal(real, 0); Out.Ln;" + " Out.Real(real, 0); Out.Ln;" + " Out.LongReal(longreal, 0); Out.Ln;" "END Test." ;