Commit Graph

69 Commits (8992707fbbcbbe5eeee8fbd2665715726b3b4b2c)

Author SHA1 Message Date
Delyan Angelov 3fbfc5fbd4 repl: tests show difference (in color where available) 2019-09-25 22:00:56 +03:00
joe-conigliaro d4bae356ba compiler/vlib: add error for no new vars in loop ("_,_") & remove "." from errors 2019-09-25 17:59:50 +03:00
Alexander Medvednikov d2d75f3824 parser: do not allow "int?", only "?int" 2019-09-23 23:17:06 +03:00
joe-conigliaro 23e30962b9 compiler: multiple returns - add test & fix use with array/map 2019-09-23 13:39:35 +03:00
Alexander Medvednikov 6a788bb364 testing: do not allow fn main in tests and make sure there is at least one test fn 2019-09-22 09:49:33 +03:00
vitalyster f1bb25bfaf windows: Unicode input in REPL 2019-09-20 17:03:13 +03:00
Alexander Medvednikov 13e4c79f58 table: use optional in find_method() 2019-09-19 04:56:22 +03:00
Alexander Medvednikov d1500511e6 "none" keyword for optionals + more memory fixes 2019-09-18 14:15:10 +03:00
Delyan Angelov a45895a3af new benchmark module + make the tests use it 2019-09-16 17:29:06 +03:00
Delyan Angelov 854de4e7e0 repl: add more stats and tests; compiler: tcc fixes 2019-09-16 00:41:12 +03:00
Delyan Angelov 35f927e64e repl: add some timing statistics when running REPL test files 2019-09-15 18:08:16 +03:00
joe-conigliaro f077fbd32d vlib: change `[0;n]` to `[0].repeat(n)` 2019-09-15 12:26:05 +03:00
Delyan Angelov ec61821bf7 compiler: support explicit runrepl argument, so that the v repl can be launched with options like -debug and so on. 2019-09-04 19:50:51 +03:00
Joe Conigliaro dd670fb4a3 workaround msvc 0 struct field bug 2019-09-04 19:47:13 +03:00
Joe Conigliaro afde6f582d workaround for fn_test on windows 2019-09-04 18:24:41 +03:00
joe-conigliaro 6921c15b7b compiler: fix repl chained_fields test (windows) 2019-09-03 18:42:40 +03:00
Alexander Medvednikov 1c6d51f271 remove u8 and i32 from tests and examples 2019-09-02 15:02:25 +03:00
Alexander Medvednikov bfa6505636 compiler: replace &Type with Type 2019-09-01 14:05:03 +03:00
kawa-yoiko 4f0f99e663 parser: fix mutability with chained fields 2019-08-30 20:19:06 +03:00
kawa-yoiko 6d35f68242 parser: restore outer variable in index exprs 2019-08-30 12:16:39 +03:00
Shiqing 519028e263 Fix incorrect string open/close check in REPL 2019-08-29 21:40:49 +03:00
Delyan Angelov 4f62e8235f repl: add a test for naked strings. 2019-08-29 12:30:33 +03:00
joe-conigliaro 02fc7e14cd make trim use cutset like trim_right/trim_left 2019-08-27 22:53:32 +03:00
Danil-Lapirow 7edcbeca1a parser: match expression + match fixes 2019-08-27 00:39:11 +03:00
Delyan Angelov aa438c7c3f os: fix exec() and get_raw_line(); fix Windows tests and examples 2019-08-26 13:51:48 +03:00
Delyan Angelov 77b31de117 compiler: produce errors in C "filepath:line:column:" format 2019-08-22 14:15:11 +03:00
Emily Hudson 151686501d compiler: fix MSVC flag parsing 2019-08-20 16:32:15 +03:00
Delyan Angelov 41efe545f2 repl_test: remove dependance on echo, use stdin redirection instead. 2019-08-18 23:02:32 +03:00
Henrixounez e1d2c83ff6 repl: functions and conditional blocks support 2019-08-18 22:50:38 +03:00
Henrixounez 14f13ff55a tests: v implementation of repl tests 2019-08-18 19:26:55 +03:00
Henrixounez aae063b9ad repl: dont save line if last compilation errored 2019-08-18 19:25:46 +03:00
Delyan Angelov bbc5c14d99 repl: fix compiler/tests/repl/error.repl test case. 2019-08-18 17:24:02 +03:00
Marco Böttcher d6d17fe3f2 scanner: string interpolation with $var at the end 2019-08-16 17:06:27 +03:00
Marco Böttcher 87216cff63 compiler: '\$' escape 2019-08-15 12:41:23 +03:00
Henrixounez 2ba1edaa80 repl: default printing fix and test 2019-08-12 16:19:56 +03:00
Alexander Medvednikov 3c6a11eb0b fix mut_test.v 2019-08-11 22:45:21 +03:00
Alexander Medvednikov 8c3475b902 generate `.str()` for all arrays 2019-08-11 22:39:45 +03:00
Julian Schurhammer 1864e92ff4 parser: disallow statements after a return, branch check $if, $else, switch, and loops correctly 2019-08-10 10:26:42 +02:00
Henrixounez 7879bde8bb repl: enabled back and added automated tests
fixed typos and macos errors
2019-08-10 07:01:40 +02:00
Alexander Medvednikov 4b69d43f9f fix examples 2019-08-07 14:16:10 +02:00
Alexander Medvednikov 78c20e02ee tmp test fix 2019-08-07 13:50:28 +02:00
Alexander Medvednikov 7a7b5040e2 http: fix response headers and status code; clean up ft and gg 2019-08-06 03:06:27 +02:00
Marco Böttcher aff8d05040 compiler: add a test case to ensure more stable local modules 2019-08-05 10:05:00 +02:00
Alexander Medvednikov 5ed338dc2e bring back map.str() 2019-08-05 04:34:12 +02:00
Alexander Medvednikov 8d3617b3de fix fn_test.v and urllib.v 2019-08-05 03:31:22 +02:00
Alexander Medvednikov 350e13679c force `()` in complex bool expressions: `(a && b) || c` instead of `a && b || c` 2019-08-05 03:22:28 +02:00
joe-conigliaro 1a22482c09 move module tests 2019-07-28 17:20:24 +02:00
Alexander Medvednikov 2ad0d0200d make the new mut check work with `fn foo(mut bar)` 2019-07-25 14:04:45 +02:00
Alexander Medvednikov d1b732cbcc function argument benchmark 2019-07-25 00:13:54 +02:00
Alexander Medvednikov 9837d6cf69 fix option_test.v 2019-07-24 22:49:16 +02:00