ringabout
4fa86422c0
stdlib tests now check refc too ( #21664 )
...
* stdlib tests now check refc too
* typo
* fixes line numbers
* disable cpp
* do not touch
2023-04-21 15:37:58 +02:00
metagn
f05387045d
int64/uint64 as bigint in JS ( #21613 )
...
* int64/uint64 as bigint in JS
* fix CI
* convert to compile option
* fix lie
* smaller diff, changelog entry
2023-04-11 21:20:20 +02:00
ringabout
3d2f0e2c7c
make more standard libraries work with nimPreviewSlimSystem ( #20343 )
...
* make more standard libraries work with `nimPreviewSlimSystem`
* typo
* part two
* Delete specutils.nim
* fixes more tests
* more fixes
* fixes tests
* fixes three more tests
* add formatfloat import
* fix
* last
2022-09-27 20:06:23 +02:00
flywind
98cebad7de
enable style:usages for stdlib tests [backport: 1.6] ( #19715 )
...
* enable style:usages for stdlib tests
* freeAddrInfo
* more tests
* importc
* bufSize
* fix more
* => parseSql and renderSql
2022-04-13 11:53:02 +02:00
Jason Beetham
ecc9704bf4
Moved json enum index test to the proper file ( #16826 )
2021-01-25 18:35:08 -08:00
Arne Döring
5ed99f8d3f
Extent json.to testing to VM, add workrounds for VM bugs. ( #12493 )
...
fixes #12479
2019-10-28 10:06:16 +01:00
Arne Döring
21cbfd72ec
Refactor json macro ( #12391 )
...
* closes #12316
* make tjsonmacro work at js target
* closes #12289
* closes #11988
* also fixed gdb related stuff
2019-10-17 09:55:41 +02:00
Federico Ceratto
39290cf88c
Fix spellings ( #12277 ) [backport]
2019-09-27 07:02:54 +02:00
Vindaar
eff0837ff4
fixes #12015 by also checking kind of typeNode ( #12016 )
...
* fixes #12015 by also checking kind of `typeNode`
If a tuple field is aliased it'll appear the same as a ref type in a
call to `getType` if only for the kind of the resulting `NimNode` is
checked (that is a `nnkBracketExpr`)
* fix test case due to #12017 and add more realistic test case
Adds an additional test case, which includes generics and is closer to
the real failure I encountered
* remove previous fix and fix differently after all
The previous fix was incomplete, because it failed for generics.
Note that the `of "tuple"` is not actually needed, the
`nnkBracketExpr` branch in the `else` branch would catch it too, but I
decided to introduce it for clarity. However, the latter is actually
needed, because it seems for aliases of `seq` we end up in it.
* update comment about global `%` proc in json test
2019-08-27 22:23:47 +02:00
Andreas Rumpf
f8e720fda9
fixes json.nim regression
2019-03-29 08:01:59 +01:00
Arne Döring
1102b8ac6e
StringStream and parseJson, parseCfg, parseSql et al for the vm ( #10746 )
2019-02-28 22:57:57 +01:00
Timothee Cour
b8454327c5
json: support tuple ( #10010 )
2019-01-16 10:16:14 +01:00
Arne Döring
a5ecbf823f
lots of small changes
2018-12-11 21:23:22 +01:00
Arne Döring
1105d03644
require errormsg to be specified before file.
2018-12-11 21:23:21 +01:00
Andreas Rumpf
7f49364fd0
make more tests green
2018-08-13 12:29:03 +02:00
andri lim
f92d61b1f4
fixes #8037 , json.to support object with distinct types ( #8086 )
...
* add distinct types to json 'to' macro
* fix json 'to' macro and add more test
2018-07-19 16:38:40 +01:00
Abhishek Kapatkar
c7cba5e6f0
Fixes #6902
2018-03-30 13:43:01 -07:00
Dominik Picheta
9c2cdc94a2
Fixes #7433 .
2018-03-29 11:57:53 +01:00
Oscar Nihlgård
8247323860
Fix json.to for types with generic parameters
2018-02-11 23:15:04 +01:00
Dominik Picheta
578ab935cb
Support all int, uint and float variants in json.to macro.
2017-11-30 21:34:30 +00:00
Dominik Picheta
2bb2e6975e
Fix infinite recursion when using json.to on ref with cycle.
2017-11-30 21:34:30 +00:00
Dominik Picheta
8d61262372
Implement support for JsonNode in json.to.
2017-11-30 21:34:30 +00:00
Dominik Picheta
8187e83645
Implement Table/OrderedTable support for json.to macro.
2017-11-30 21:34:30 +00:00
Dominik Picheta
8ca41ce637
Implement support for Option[T] in json.to macro. Fixes #5848 .
2017-11-30 21:34:30 +00:00
Dominik Picheta
d3c9b58c00
Fixes #6604 . Rejects unnamed tuples with error.
2017-11-30 21:34:30 +00:00
Dominik Picheta
e0681715dc
Fixes #6095 .
2017-11-30 21:34:30 +00:00
Dominik Picheta
11fcae5705
Fixes #5856 . Code based on @loloiccl's PR ( #5879 ).
2017-11-30 21:34:30 +00:00
Daniil Yarancev
e29e6ec76e
[JSON] getBVal -> getBool; getFNum -> getFloat
2017-10-14 15:49:53 +03:00
Dominik Picheta
d1daccac2f
Fixes #5761 .
2017-05-17 16:11:26 +01:00
Dominik Picheta
03ddfddcae
Add test for previous commit.
2017-04-17 20:04:24 +02:00
Dominik Picheta
793d6efffb
Fixes null handling for object refs in JSON unmarshal macro.
2017-04-17 18:43:31 +02:00
Dominik Picheta
2108dcf0d5
Fix JSON macro bug with ref objects.
2017-04-17 18:01:38 +02:00
Dominik Picheta
88cb40cd31
Implement support for enum fields in JSON macro.
2017-04-09 17:22:40 +02:00
Dominik Picheta
eedc6fecd7
Document to macro in JSON and add example.
2017-04-09 12:48:07 +02:00
Dominik Picheta
a883424d0d
Implements else branch for JSON unmarshalling of object variants.
2017-04-09 11:49:50 +02:00
Dominik Picheta
658467a31f
Improve error messages and add tests for the JSON macro.
2017-04-08 22:06:57 +02:00
Dominik Picheta
cc223ff7d8
Support int, string and bool fields in unmarshal json macro.
2017-04-08 21:23:35 +02:00
Dominik Picheta
12aafb25cc
First implementation of JSON unmarshal macro.
2017-04-08 20:55:32 +02:00