Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

Commit

Permalink
Add test for too many floating point values
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkobelka committed Nov 26, 2017
1 parent 32f9e39 commit 7c2e3b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ifj2017/tests/04_expressions/36.code
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
' Big number of float integers +-
scope
dim a as double
a = 0.15392032971323+0.45034736183022-0.22857732755531-0.10393178095293+0.5770683007208-0.20937356036593+0.88500488311285-0.17863870280731-0.43715851168947-0.63981254568315+0.80222906768426+0.90395464929936-0.22485914231504+0.80677499659675+0.33955973030047-0.55546566357625+0.48636960121168+0.24275394354144+0.71708868617056+0.34579125714758+0.72488219091896+0.95435832857823+0.018903809608381+0.8041277959962+0.023946794226741-0.77646734974183-0.23172008769201+0.84111053582333+0.4591088306434-0.19041681903899+0.98236713138519-0.11567312298141-0.56689354989999+0.63308663090369+0.54199194281455-0.042272554730192+0.38295422977905+0.95800455378276+0.036290351783992-0.63809956313954-0.84864554081515-0.97947909262938+0.82777797096771+0.95212024215242-0.39922194946521+0.92141141552544-0.19430580697689-0.64444554347752-0.32520966060702-0.57075888131315-0.77997415549121-0.95823753343813-0.11608309443858-0.75942019408542-0.82284970247319-0.91226126948011-0.93316854859384+0.89463229332801+0.34335702999651-0.38929377560937+0.82994798562953-0.87888436013781-0.35640355262738-0.21351195416111+0.23747843654709+0.41442929227577+0.6511562115751-0.43560120204259+0.16913385045209+0.39923315606976+0.73933730774528+0.88804860873523-0.97775317215256-0.93239587169718+0.86142201389252+0.24544257309541-0.72288686815784+0.5031232561465+0.37358963553495-0.34539146877145-0.24450102273584-0.22434624341519+0.4058097044033-0.54116594024988-0.7173163135151+0.90828158841854+0.48578712832452-0.89055054443448-0.70156869138664-0.052272440889977-0.67214471924684-0.7583599895045-0.57597289447485+0.28093752231493-0.9489006981947-0.15001685784665+0.78178339720787-0.46734504702843-0.6044920913896-0.31241466911156-0.70392135889452

print a;


end scope
1 change: 1 addition & 0 deletions ifj2017/tests/04_expressions/36.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1.0146

0 comments on commit 7c2e3b5

Please sign in to comment.