1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

100 Commits

Author SHA1 Message Date
yuyi
612faac0f0
all: change index expr returning optional to result too (#16097) 2022-10-19 21:04:16 +03:00
Subhomoy Haldar
43b9a716c5
builtin,strconv: append ".0", to float string representations, to ensure clarity (#16079) 2022-10-17 15:41:07 +03:00
yuyi
f6844e9766
all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
Swastik Baranwal
b584e1df98
checker: allow EnumName(number) casts only inside unsafe{} blocks (#15932) 2022-10-02 22:39:11 +03:00
yuyi
41dbd12bc4
tests: make error handling the same as the main function (#15825) 2022-09-21 19:45:43 +03:00
Delyan Angelov
f922ed0941
tests: unify all temporary files/folders under $VTMP/v, that can be cleaned by v wipe-cache (#15774) 2022-09-16 04:56:19 +03:00
Larpon
d40d761e38
toml: support [toml: '...'] attributes (#15497) 2022-08-22 20:39:55 +03:00
Delyan Angelov
4894f61998
toml: add pub fn (d Doc) value_opt(key string) ?Any { and some tests for toml.parse_dotted_key/1 2022-05-28 09:18:18 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
Delyan Angelov
ee6b23c2a7
toml: use toml.parse_text and toml.parse_file in the tests 2022-03-18 23:32:06 +02:00
Alexander Medvednikov
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
Ned
437fa02f27
x.json2: add customized JSON output capability via Encoder (#13654) 2022-03-04 14:39:23 +03:00
Tim Basel
9d0a5942ac
builtin: change IError msg and code to methods + fix vlib, add a deprecation notice for the old usages (#13041) 2022-02-11 15:52:33 +02:00
Delyan Angelov
85ec0248e9
ci: rename types_test.v to toml_types_test.v
This is a workaround for a concurency bug, occuring sporadically when
test file names in different folders are duplicate.

The duplicate in this case was with vlib/v/ast/types_test.v
2022-01-22 20:25:06 +02:00
Larpon
2b4f7e7685
toml: add encode<T> and decode<T> (#13244) 2022-01-21 21:21:31 +02:00
Larpon
7ae96f0e38
toml: add support for arrays and maps of primitives in reflect<T> (#13245) 2022-01-21 21:20:44 +02:00
Delyan Angelov
e03d52d322
toml: improve SKIP reporting, fix formatting 2022-01-03 13:25:06 +02:00
Delyan Angelov
ee858568ff
toml: ignore CRLF just like LF in line comments, support VTEST_HIDE_OK=1 in tests. 2022-01-03 12:54:16 +02:00
Larpon
ba06eba39c
toml: fix implicit allocation overwrite of existing table (#12793) 2021-12-11 15:21:46 +02:00
Larpon
1d6cc57d9c
toml: add reflection method (#12664) 2021-12-03 12:40:46 +02:00
Larpon
7d0a36dd08
toml: solidify single-line escape validation (#12644) 2021-12-02 12:07:53 +02:00
Larpon
5ab91dd471
toml: support multi-level map keys in arrays-of-tables (#12641) 2021-12-02 11:19:45 +02:00
Larpon
ebfacca252
toml: fix bug in unicode decoding (#12643) 2021-12-02 11:19:12 +02:00
Larpon
9cf7af0c75
toml: add better float validation (#12640) 2021-12-02 11:16:55 +02:00
Larpon
b3aedff3f8
toml: convert yaml value checks in iarna test suite (#12629) 2021-12-01 14:43:15 +02:00
Larpon
758ba76d2b
toml: update testdata/.gitignore (#12630) 2021-11-30 16:01:20 +02:00
Larpon
5c8e626912
toml: add alexcrichton/toml-rs test suite to CI (#12624) 2021-11-30 15:08:30 +02:00
Larpon
7d9028db56
toml: add more checks for table redeclarations (#12615) 2021-11-30 15:01:00 +02:00
Larpon
14424100e8
toml: comply with BurntSushi @eb989e5 (#12616) 2021-11-29 22:15:22 +02:00
Larpon
65e9503556
toml: check for immutable tables (#12612) 2021-11-29 15:10:23 +02:00
Larpon
0fc47b50a2
toml: fix date-time and time ms test inconsistency (#12593) 2021-11-28 12:42:32 +02:00
Larpon
1d8ece7ac0
toml: fix, test and optimize nan and inf values (#12592) 2021-11-27 21:26:28 +02:00
Larpon
22043f2df1
toml: fix float checker bug for -0.01 (#12590) 2021-11-27 21:03:26 +02:00
Larpon
d52b62a4f4
toml: improve parsing of bare keys to include - and _ (#12588) 2021-11-27 15:46:05 +02:00
Larpon
4383cf7de5
toml: add iarna/toml-spec-tests to CI tests (#12583) 2021-11-26 19:15:01 +02:00
Larpon
04b030b7ab
toml: add 1MB file parsing test to CI (#12582) 2021-11-26 18:11:14 +03:00
Larpon
253e38d9d7
toml: support implicit array of tables key change (#12580) 2021-11-26 15:06:28 +02:00
Larpon
a59eabc4ab
toml: clean up and improve spaced and dotted key parsing (#12576) 2021-11-25 16:51:54 +02:00
Larpon
9a2c563735
toml: add conversion of ast inf and nan to Any (#12567) 2021-11-25 12:33:54 +02:00
Larpon
11d70624af
toml: streamline value() api (#12568) 2021-11-24 20:39:22 +02:00
Larpon
f825306cff
toml: workaround #9507 (#12566) 2021-11-24 20:36:15 +02:00
Larpon
ff95cf18d4
toml: expand short date time milliseconds in decoder (#12564) 2021-11-24 14:49:23 +02:00
Larpon
1be6aed16e
toml: support checking and decoding quoted keys (#12552) 2021-11-23 16:59:07 +02:00
Larpon
0779b5fd8e
toml: fix implicit array allocation (#12553) 2021-11-23 16:51:24 +02:00
Larpon
49cd1b3d59
toml: make value of +nan/-nan decode to nan (#12542) 2021-11-23 16:23:16 +02:00
Larpon
e9efed02f0
toml: fix decoding most large number values (#12541) 2021-11-23 13:23:16 +02:00
Larpon
3f0e532660
toml: fix unicode and escape value decoding (#12534) 2021-11-23 11:02:43 +02:00
Larpon
f1dd0e3355
toml: add value decoding (#12521) 2021-11-20 19:48:44 +02:00
Larpon
4b9e8e243c
toml: support arrays in value key query syntax (#12527) 2021-11-20 19:45:17 +02:00
Larpon
1bbc73384c
toml: fix memory corruption when returning new date/time types (#12507) 2021-11-19 20:35:11 +02:00