Commit Graph

71 Commits

Author SHA1 Message Date
Gabriel Ozouf
6e9a5a010f [poincare/integer] Add tests on euclidean division
This commit also adds tests on mixed fractions.

Change-Id: I0fee88eb00febccaa9445230f8f2bbb92cd1ba98
2020-11-04 15:32:59 +01:00
Émilie Feral
30c4e01737 [poincare] Fix and add tests about BasedInteger 2020-02-12 15:13:19 +01:00
Ruben Dashyan
3271fc90a4 [poincare/test] Clean header inclusions 2020-02-12 15:13:16 +01:00
Émilie Feral
02b27124f4 [poincare] Integer: remove duplicate method: isInfinite is equivalent to
isOverflow
2019-02-05 16:42:36 +01:00
Léa Saviot
70707a9985 [poincare] Infinity::Name() gives "inf" 2018-11-23 12:04:08 +01:00
Lionel Debroux
1a8c6b6ae9 [poincare, escher, ion, apps] Split the huge umbrella header poincare.h, to reduce build time.
This should be a NFC, but surprisingly, it also reduces size... so what does it change ?
2018-10-23 11:49:09 +02:00
Léa Saviot
59c8c801c5 [poincare] Clean compilation warnings in poincare/test 2018-09-21 16:00:21 +02:00
Émilie Feral
6521c9ef67 [poincare] Fix Integer tests 2018-09-03 15:56:37 +02:00
Émilie Feral
cde73df38e [poincare] Integer optimization: small digit doest not allocate anything 2018-09-03 14:45:35 +02:00
Émilie Feral
1c7c09737d [poincare] Fix Integer tests 2018-09-03 10:46:06 +02:00
Émilie Feral
a1bcbe28e6 [quiz] Turn all assert in quiz_assert 2018-08-28 10:40:52 +02:00
Émilie Feral
fcec3017fc [poincare] Parse Decimal Number 2018-08-22 16:28:07 +02:00
Léa Saviot
1509fe8bda [poincare/test] Fix some pool size assertions 2018-08-20 17:06:08 +02:00
Léa Saviot
ae9be5333f [poincare] Remove logs in tests 2018-08-20 11:38:05 +02:00
Léa Saviot
335c760c70 [poincare] Suppress some warnings 2018-08-17 16:48:13 +02:00
Émilie Feral
e6b04509cd [poincare] Rational: add tests on approximation and serialization 2018-08-17 13:55:15 +02:00
Émilie Feral
02e76e6ca7 [poincare] Add Integer comparison test 2018-08-17 11:15:21 +02:00
Émilie Feral
55953cb182 [poincare] Integer: add test on static Zero 2018-08-17 11:15:21 +02:00
Émilie Feral
54b019d0df [poincare] Clean Integer tests 2018-08-17 11:15:21 +02:00
Émilie Feral
cdd2f731f7 [poincare] Complete Integer tests 2018-08-16 16:46:36 +02:00
Émilie Feral
d7e11da52c [poincare] clean Integer tests 2018-08-16 16:46:36 +02:00
Émilie Feral
3371d41b2c [poincare] Integer: fix and add tests on Factorial 2018-08-16 16:46:36 +02:00
Émilie Feral
6068631b0a [poincare] Fix Integer::Division: enable to divide Integers up to
(2^32)^maxNumberOfDigits-1
2018-08-16 11:12:20 +02:00
Émilie Feral
cf8bc636a7 [poincare] Add Integer tests 2018-08-14 18:20:53 +02:00
Émilie Feral
dab9b5cd21 [poincare] Fix and add tests on Integer::Division 2018-08-14 13:21:13 +02:00
Émilie Feral
88a3077f95 [poincare] Integer: tests on Multiplication 2018-08-13 19:48:36 +02:00
Émilie Feral
2bf0eefd92 [poincare] Integer: fix and add tests on Integer::Subtraction 2018-08-13 19:48:36 +02:00
Émilie Feral
47348b6d65 [poincare] Integer: fix and add tests on Integer::Addition 2018-08-13 19:48:36 +02:00
Émilie Feral
d64f40eb1d [poincare] Integer: test on constructors, comparison 2018-08-13 17:01:34 +02:00
Romain Goyet
50d6eee4f4 [poincare] Add some integer tests 2018-08-10 16:27:13 +02:00
Émilie Feral
d9150d4faa [poincare] Integer: fix approximate, round instead of truncate integers
to closest float
2018-03-21 15:57:19 +01:00
Émilie Feral
8c37e8a6d0 [poincare] Fix integer subtraction (overflow in carry) 2017-12-08 10:57:43 +01:00
Émilie Feral
1edd7ac095 [poincare] Fix bug in Integer subtraction!
Change-Id: I2404d5d3b32e282c42cefb34e10d52ea44ba8931
2017-12-04 17:57:24 +01:00
Émilie Feral
da2829b969 [poincare] Clean Integer constructor
Change-Id: I1ced5587246507d3cd813b0c23af64f3459c6d0c
2017-11-30 10:48:38 +01:00
Émilie Feral
045c02a213 [poincare] Fix setNegative in Integer
Change-Id: I32515c23c8897a3ce1d1cd4f238340397efc3366
2017-11-10 18:16:46 +01:00
Émilie Feral
1363c3a65f [poincare] Integer class is not an expression anymore
Change-Id: Iee1037593752a3825b8b9b58f21e296aae71e2cf
2017-10-25 18:19:00 +02:00
Émilie Feral
942862dacf [poincare] Reimplement Integer::Division non recursively
Change-Id: Ifd51a787a08aa376ce73b9574987ee358a11e1df
2017-10-25 18:18:59 +02:00
Émilie Feral
b5c06fd22b [poincare] Implement Integer::Division in Z (relative integers)
Change-Id: I72ccd4afd8188b0389b1f32863ecb1af59581c04
2017-09-28 16:17:32 +02:00
Émilie Feral
76c4a82bb5 [poincare] Add tests on integer division
Change-Id: I83bc1807c3ab265bd73960740f223b1df556447d
2017-09-26 17:11:16 +02:00
Romain Goyet
b064fabad9 [poincare] Clean the Integer class
Change-Id: I010f571b521a5c45f6131040d396dc0241517728
2017-09-25 14:24:50 +02:00
Émilie Feral
82e212e771 [poincare] Template for double
Change-Id: I7404bd5cefc9ef78a5dbd572c3874a557cded28e
2017-08-16 09:55:29 +02:00
Émilie Feral
f73ddcd08f [poincare] Evaluation return numerical matrix
Change-Id: I58dbc93ad22a086580a77318b2524db9c70e47d2
2017-08-03 13:47:11 +02:00
Émilie Feral
69e46f4958 [poincare] Namespace Poincare
Change-Id: I51a84fa7978ba16f128cfe1d32c390970f2037e8
2017-02-13 17:15:06 +01:00
Romain Goyet
5963345981 [poincare] NULL-termination and Integer parsing
Discard non-10 base handling for now

Change-Id: I487e85a169c7ae5780c83b0bcf3c40bd3daac0fe
2016-12-21 10:13:06 +01:00
Émilie Feral
7af3979d3b [poincare] Change Context API
Change-Id: I2818866fb41bf73c39396fbd85600e586a79065c
2016-12-15 13:51:41 +01:00
Émilie Feral
397a4ad98f [poincare] Add tests on matrix operations
Change-Id: I4f0070a32abe5eb4b06dfc6dfca0bbd83e666f34
2016-12-09 11:01:43 +01:00
Felix Raimundo
6f5cc68b75 Fix Integer approximation for 0.
Change-Id: Ib4bab6f4f776342bf6311d1e6f8b6d245d9a048a
2016-04-22 16:52:44 +02:00
Felix Raimundo
47f361a667 Make the addition public.
Change-Id: I9b277f0a959f36453215de7dbb98b8f8dad69544
2016-04-18 18:48:56 +02:00
Felix Raimundo
80ad6e606b Removed all warnings, now in Werror
Change-Id: I02dbd9fef2c1b5d6aba4ea713f1e1ea305b389bf
2016-03-22 18:56:00 +01:00
Felix Raimundo
1f9b440182 Added some basic tests for the AST members.
Change-Id: I9a1f297fb72a57e9b58e3951c22066134c8da9ea
2016-03-22 18:39:59 +01:00