Files
mercury/tests/hard_coded/integer_test.exp
Bert Thompson 30ef37923c Moved tests of library/{integer,rational}.m from tests/general to
Estimated hours taken: 0.1

Moved tests of library/{integer,rational}.m from tests/general to
tests/hard_coded since the library modules and their tests cannot
be compiled under NU-Prolog.

general/Mmakefile:
general/.cvsignore:
	Removed references to integer_test and rational_test.
general/integer_test.m:
general/integer_test.exp:
general/rational_test.exp:
general/rational_test.m:
	File removed.
hard_coded/Mmakefile:
hard_coded/.cvsignore:
	Added references to integer_test and rational_test.
hard_coded/integer_test.m:
hard_coded/integer_test.exp:
hard_coded/rational_test.exp:
hard_coded/rational_test.m:
	File added.
1998-04-16 12:00:32 +00:00

20 lines
4.4 KiB
Plaintext

X: 1234567890987654321
Y: 98765432101234567890123400000009999111
Z: 200
X + Y: 98765432101234567891357967890997653432
X * Y: 121932631211705532655387828188886573814590421455185308631
X - Y: -98765432101234567888888832109022344790
Y // X: 80000000666000005517
Y rem X: 1234567635121110154
fac(Z): 788657867364790503552363213932185062295135977687173263294742533244359449963403342920304284011984623904177212138919638830257642790242637105061926624952829931113462857270763317237396988943922445621451664240254033291864131227428294853277524242407573903240321257405579568660226031904170324062351700858796178922222789623703897374720000000000000000000000000000000000000000000000000
pow(X,Z): 2009072010690978371744968328472226239332338398030655926335092970127632447793475603073367583292691646659887633778756328477864387784623515361223382292870305370489591762214582042260940472141447008511386055927825158936585930338514394392379961484869757379275023379076602360179169583478184573440631134131051794959163704987391808759422324923801956969676051490058292940128595767250503465289041449692207612600085624301017058255439133861806139740156189277395712452494338076821966781941910185026223312474230260489227495996091300339697616240718655870247521337746666560115899845739831712660002399455271574700125803084642371461398422377587236230240704664844094550637688397221024484934602100456177058735938432831831358722722499533098017134137957437098878827460498088489047533227934846533662578193310629508274935672854789607881733584423256081821398216629610107033697197810566672151026873588618666961223162029828380422124528893117124945447107334736701184270208004856547459852385246828927404167041246348053377021743803722907578012910490537270354845822713693442125889986279651662390859882286835868267206047467607261414541119799997815590778848939104257774067739876864036347200280489720436624413290997522420145043793246430257550268427929448199860784551671997799076285439268435326999823254262620564297037339532897853788141482681678916018484937082417984129180802972828641379126766419410678935964177733936414196065556112994944330321925423133253122634070932713829862542466760980706774176130068765138890265792154452364048585969266459530502795406476186404190739822904373382726529337439607100223351792500340925937926754293451170802385638169528749773252203819590904438095977730787260494214370050648807105318891880631405623263474049334406055148986501952438301045770721824911960872195382975550708918151146145324078361157678996144405263537793781244139840613769157093249331199787336588608355604207716672373801830301260732759231033731122806564126926968468451123235366449954711990564445399410749713976254346317902147668459131930497920096442830479555874426107463968860473111214644286036998845138840368292697891955906276786836960469009182425584124765467047055760843593509192578068467331564215277795032287517670138087495051995606263991347134948555671087327364727465780110444624590964839675006803111837701040235084964504016998334037860357279095131322136117941505482327925140693140145827463250977016153017019350259306923648377370104103169464992256272182005050848948244047712538136386074462451752852202165987974139135798916843051954616295880424603713632901752248453363564840441218134441459072525000986607014686492680541619522535976095032847563877385862549306269044549315763458528470280425087046848407624456261965083758478811162276002564215262220148529666477565484228392149518772193715066407831351836611769072087600139572991119160324375915253320750094438346443207217716829629118997807125159422211573227792941026162844444822367988510062837361636088201106362543607043469475702680240414505061436400752768445685157297879090761768759993459655270699064600829444435291644061413455254295515374596141951156596741739936327825865497230488805049405116083220962468661469096774076661413088639343622049268788784164613179238423978434448020318084781795543490236258244192278713170551931861687848526144577572409044560449115032243992065048836164819505371319811305261213470804918326265183763530164986037435302714058315465894317713431896367661947599387292932546249422249954194097312344837301386838808423153663988518690674861402300346823854371857151060892120045654106758596585317059735493929786076269966751503716013455185054990608824017988036332498498830845013026304350217920563824001
100000 div mod 3 = 33333 1
-100000 div mod 3 = -33334 -2
100000 div mod -3 = -33334 2
-100000 div mod -3 = 33333 -1
100000 // rem 3 = 33333 1
-100000 // rem 3 = -33333 1
100000 // rem -3 = -33333 -1
-100000 // rem -3 = 33333 -1
integer(min_int) ok