Commit Graph

6146 Commits

Author SHA1 Message Date
Émilie Feral
c95c3145bc Merge remote-tracking branch 'github/master' into Tree 2018-09-13 17:03:31 +02:00
Émilie Feral
b66cc754ed [poincare] Clean parser 2018-09-13 16:05:32 +02:00
Émilie Feral
0c602459ca [poincare] Lexer: Symbols token are Expression and instead of Char 2018-09-13 16:05:32 +02:00
Émilie Feral
8368950f83 [poincare] Clean Makefile 2018-09-13 16:05:32 +02:00
Léa Saviot
deada55740 [poincare] Fix a node/ref comparison: use id comparison instead of nodes
This prevents breaking an assertion in node(), that Ghost should not be
a Ghost
2018-09-13 16:03:12 +02:00
Léa Saviot
ba7c013c72 [poincare] Handle release of nullptr nodes (due to exceptions) 2018-09-13 16:03:04 +02:00
Léa Saviot
f240899fc7 [poincare] Put the exception handler before Container::run 2018-09-13 16:02:58 +02:00
Léa Saviot
1606bf04d1 [poincare] Fix EmptyLayout addition to Horizontal layout
Propagate the removeEmptyChildren parameters
2018-09-13 12:02:39 +02:00
Émilie Feral
6c1db3e64b [poincare] GlobalContext stores Expression in Ion::Storage 2018-09-13 11:33:15 +02:00
Émilie Feral
08077cb141 [ion] Storage: make Storage::nameCompliant less restrictive (accepts
.*\.[a-z]+). But Script::nameCompliant is stricted: [a-z_0-9.]*
2018-09-13 11:33:15 +02:00
Léa Saviot
51341f4abe [poincare] Remove implementation of TreePool::numberOfNodes from flags 2018-09-13 11:16:55 +02:00
Léa Saviot
7592c34954 [poincare] Remove superfluous clones 2018-09-13 09:53:57 +02:00
Léa Saviot
a7f6669025 [poincare] Add some tests on acos (presicision reduced to pass the test) 2018-09-12 17:31:06 +02:00
Léa Saviot
8f7dee722c [poincare] Add FractionLayout tests 2018-09-12 17:12:38 +02:00
Léa Saviot
c2accd5b4a [poincare] Implement LayoutCursor::middleLeftPoint() 2018-09-12 17:12:21 +02:00
Léa Saviot
52e3994634 [poincare] HorizontalLayoutRef missing whitespace 2018-09-12 17:11:58 +02:00
Léa Saviot
db8278ad92 [poincare] Do not addChild in HorizontalLayout if it is empty 2018-09-12 17:11:33 +02:00
Léa Saviot
101a1752b1 [coding style] Remove whitespace 2018-09-12 16:54:50 +02:00
Léa Saviot
f9d9dc5849 [poincare] Handle removal of empty layouts in HorLay::mergChildren 2018-09-12 16:54:16 +02:00
Léa Saviot
76fbea6a83 [poincare] Remove virtuality on LayoutReference 2018-09-12 16:54:16 +02:00
Émilie Feral
b55100812d [poincare] Add tests on Trigo 2018-09-12 16:08:16 +02:00
Émilie Feral
7520bdbb3c [poincare] Add test on VerticalOffsetLayout 2018-09-12 15:57:25 +02:00
Émilie Feral
2e29fccfe6 [poincare] Add simplification test 2018-09-12 15:56:05 +02:00
Émilie Feral
2e8bb3d67c [poincare] Add property tests 2018-09-12 15:55:06 +02:00
Émilie Feral
c462e387cb [poincare] Add tests on Power 2018-09-12 15:41:46 +02:00
Émilie Feral
978053e01f [poincare] Fix: always attach to parent before shallow reducing an
expression
2018-09-12 15:41:46 +02:00
Émilie Feral
4712aaa872 [poincare] Improve Decimal and Rational log 2018-09-12 15:41:46 +02:00
Émilie Feral
b06e345945 [poincare] Add Parser test 2018-09-12 15:41:46 +02:00
Émilie Feral
122a8b6824 [poincare] Add Parenthesis Layout tests 2018-09-12 15:41:46 +02:00
Léa Saviot
e4c11a993d [quiz] Assert pool size is 0 between quiz cases 2018-09-12 15:40:33 +02:00
Léa Saviot
cb471d83d5 [escher] After packing an app, assert the TreePool size is 0 2018-09-12 15:37:03 +02:00
Léa Saviot
77a66fd314 [poincare] TreeByReference::size() and addressInPool() 2018-09-12 15:26:07 +02:00
Léa Saviot
42cc6c0670 [poincare] Add method TreePool::copyTreeFromAddress 2018-09-12 15:25:36 +02:00
Léa Saviot
e5d9b7d485 [poincare] remove static node in Global Context 2018-09-12 15:25:09 +02:00
Léa Saviot
fd361cbf60 [apps/calculation] Remove static Expression 2018-09-12 15:17:58 +02:00
Romain Goyet
844751181d Revert "[rt0] Enable SUPPORT_CPP_GLOBAL_CONSTRUCTORS"
This reverts commit 4eb1df81f6.
2018-09-12 14:11:20 +02:00
Romain Goyet
47fe5d829a [poincare] Use a re-entrant parser
This removes all global variables
2018-09-12 14:11:20 +02:00
Romain Goyet
9b177e8501 [poincare] use Poincare::ExceptionCheckpoint to handle exceptions 2018-09-12 14:11:20 +02:00
Romain Goyet
1f69558787 [poincare] Deal with Bison's global variable by using a static var
We will eventually clean the buffer on the next run if we got
interrupted
2018-09-12 14:11:20 +02:00
Romain Goyet
790793f145 [poincare] Add memory exhaustion tests 2018-09-12 14:11:20 +02:00
Romain Goyet
f1d3a39790 [poincare] Add move tests for TreeByReference 2018-09-12 14:11:20 +02:00
Romain Goyet
fba12dac72 [poincare] Fix freePoolFromNode 2018-09-12 14:11:20 +02:00
Romain Goyet
1728803ab9 [poincare] Actually use move semantics for TreeByReference 2018-09-12 14:11:20 +02:00
Léa Saviot
5821388b98 [statistics/test] Clearer assertion 2018-09-12 13:40:10 +02:00
Léa Saviot
0038cb537a [statistics] For median and quartiles, compare absolute frequencies
Instead of relative frequencies
2018-09-12 13:40:10 +02:00
Léa Saviot
8d95f408be [poincare] Tests on statistics 2018-09-12 13:40:10 +02:00
Léa Saviot
02899b863b [poincare] Median computation (and quartile...) tackles imprecision 2018-09-12 13:40:10 +02:00
Émilie Feral
dd09e23262 [poincare] Fix Multiplication tests 2018-09-12 13:08:55 +02:00
Émilie Feral
974769714e [poincare] Clean Function tests 2018-09-12 12:02:32 +02:00
Émilie Feral
18f51b5429 [poincare] Add tests on Logarithm & fix Logarithm shallowReduce 2018-09-12 11:38:21 +02:00