Chris Rivera
8879c91b35
Handle strings being passed to Scan()
...
lib/pq can now pass strings to Scan() as of:
e2402a7cd1
2016-08-03 16:03:49 -04:00
Nathan VanBenschoten
ecd4a8353a
Implement Modulus arithmetic function
2016-01-15 16:32:48 -05:00
Vadim Graboys
af95951b3f
Merge pull request #15 from pwiecz/master
...
Add a fast track to d.Cmp(d2) when d.exp == d2.exp
2016-01-13 16:11:24 -05:00
Nathan VanBenschoten
eae6d13435
Prevent unnecessary int64 overflow in NewFromFloat
2016-01-13 13:27:32 -05:00
Piotr
cb949cead4
Add a fast track to d.Cmp(d2) when d.exp == d2.exp
...
This makes a noticeable difference when one is sorting a large slice
of decimals when most of them have the same precision, as it is saving
a lot of calls to rescale().
2015-12-11 23:54:57 +01:00
Florent AIDE
faca378c8a
Adding tests from the Scan method
2015-12-11 19:46:00 +01:00
Vadim Graboys
9995dc92ee
fix some small issues with scientific notation, add more tests
2015-07-31 16:22:14 -04:00
Vadim Graboys
f402c8cd87
add one more extreme-value test for scientific notation parsing
2015-07-31 12:52:50 -04:00
Thiago Arruda
632e313f4a
Fix possible int64 overflow and remove unnecessary code
2015-07-31 13:36:54 -03:00
Thiago Arruda
669901768e
Add negative numbers on init() and add more tests
2015-07-28 08:27:48 -03:00
Thiago Arruda
849f553b9d
Add scientific notation parsing
2015-07-24 13:25:40 -03:00
Vadim Graboys
96d9a5e02e
add Min and Max functions
2015-07-24 07:17:36 -04:00
Vadim Graboys
6e97405099
add stupid test for extreme values, fix some super-edge-case bugs
2015-06-14 15:39:05 -04:00
Vadim Graboys
54dc68463b
ensure decimal is initialized for new methods
2015-06-14 14:09:13 -04:00
Vadim Graboys
e8dd4432ba
Merge pull request #3 from cmars/cmars-002-gocov
...
Add some test coverage
2015-06-14 12:03:58 -04:00
Vadim Graboys
0c74aee0c1
add Round, Floor, Ceil, and StringFixed. Deprecate StringScaled
2015-06-14 11:56:33 -04:00
Casey Marshall
70bb313ce6
Improve error messages, readability of test cases.
2015-03-25 22:13:03 -05:00
Casey Marshall
2f187e8d62
Add IntPart test.
2015-03-23 19:50:32 -05:00
Casey Marshall
0fb3379e01
Test unhappy JSON and XML paths.
2015-03-23 19:50:32 -05:00
Casey Marshall
78186b90c0
Add Equals test.
2015-03-23 19:50:32 -05:00
Casey Marshall
c6c99f4daa
Add XML test.
2015-03-23 19:50:32 -05:00
Casey Marshall
a2664e0073
Add round-trip JSON test.
2015-03-23 19:50:32 -05:00
Casey Marshall
9fc32a450f
Add negative test values once.
2015-03-23 19:50:32 -05:00
Vadim Graboys
3bac4bd166
init
2015-02-10 15:33:58 -05:00