collin
b9f8bafc91
pull latest testnet3
2022-06-15 16:52:49 -07:00
0rphon
c54cf17ce1
resolve conflicts
2022-06-15 16:34:57 -07:00
0rphon
0daffb267b
reverted filename path
2022-06-15 16:19:20 -07:00
0rphon
4d07cd4722
clippy
2022-06-15 16:10:49 -07:00
0rphon
d0cfa983b5
fixed bug
2022-06-15 16:06:26 -07:00
collin
b2890f393a
merge testnet3
2022-06-15 10:23:01 -07:00
collin
007d1d0265
merge testnet3
2022-06-15 10:19:33 -07:00
Mazdak Farrokhzad
eee838abba
fixes in special methods parsing
2022-06-15 14:51:44 +02:00
collin
0e59e9bcf9
fix cmp type checking
2022-06-14 10:55:59 -07:00
dependabot[bot]
6cb1f0b940
Bump clap from 3.1.18 to 3.2.1
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.18 to 3.2.1.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.18...clap_complete-v3.2.1 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-14 10:33:33 +00:00
collin
831e011f42
use more clear type checking methods
2022-06-13 14:53:01 -07:00
0rphon
a738ae67a0
fixed expectation pathing
2022-06-13 11:32:35 -07:00
gluax
274dd461cd
some more suggested changes
2022-06-13 09:55:42 -07:00
gluax
2c9a91552c
Merge branch 'testnet3' of github.com:AleoHQ/leo into feature/compiler-benchmarking
2022-06-12 09:26:30 -07:00
gluax
3a056220ff
doing some recommended changes
2022-06-12 09:26:14 -07:00
collin
4e3ed8d4dc
regen tests
2022-06-10 13:02:16 -07:00
gluax
36440719fb
resolve merge conflicts
2022-06-09 12:46:59 -07:00
gluax
ba7aef7f1e
merge conflicts fix
2022-06-09 12:35:26 -07:00
gluax
4607f2955a
add some more checks and namespaces for benchmarks, docs
2022-06-09 12:23:57 -07:00
gluax
267ab16810
fix benchmark symbol table, some more clean up
2022-06-09 11:43:10 -07:00
0rphon
32d07583c5
integrated benches to test-framework
2022-06-08 15:33:12 -07:00
gluax
5ce5102a37
the rest of the test-framework rework and clean up start
2022-06-08 14:06:25 -07:00
gluax
8972674dec
test-framework rework and clean up start
2022-06-08 13:44:40 -07:00
gluax
5129276a4b
some compiler lib cleanup
2022-06-08 10:50:23 -07:00
gluax
f6990e75fc
fixed some bugs
2022-06-08 06:46:54 -07:00
0rphon
0af9622cd9
replaced structopt with clap
2022-06-06 11:00:08 -07:00
gluax
8ad69944c0
bug fixes
2022-06-02 09:39:49 -07:00
gluax
af0e0da6b7
add tests for known bugs
2022-06-02 09:37:55 -07:00
collin
27c858a0fc
merge testnet3
2022-06-02 11:33:11 -04:00
collin
85eb1adcce
rename corelib -> core, update readme
2022-06-02 11:22:08 -04:00
Collin Chin
59ffe66363
Merge branch 'testnet3' into issue-1841
2022-06-01 22:51:44 -04:00
gluax
9638a695aa
fix more bugs, add type checking
2022-06-01 11:16:00 -07:00
collin
3b62e3cc97
fix bugs
2022-06-01 13:49:55 -04:00
gluax
220cb3e730
rename stdlib -> corelib
2022-06-01 09:09:38 -07:00
gluax
f34f63cea4
update abnf
2022-06-01 08:48:36 -07:00
gluax
c10eb63575
add failing expectation for an invalid input type
2022-05-31 10:36:35 -07:00
gluax
0ce4639a1b
merge upstream, test builtin ident types
2022-05-31 10:34:57 -07:00
Mazdak Farrokhzad
6399f873f5
improve error for '&' not followed by '&'
2022-05-31 16:28:01 +02:00
gluax
2db204b81e
further changes to the visitor pattern to clean up code
2022-05-30 10:53:06 -07:00
collin
2327bca617
implement static string type
2022-05-26 16:43:18 -04:00
gluax
044b2a10a4
refa:ctored visitor pattern to better on an the AST
2022-05-26 13:29:51 -07:00
gluax
4f30e6e896
add ident type back in
2022-05-25 15:56:44 -07:00
gluax
2117ee3ae8
resolve readme conflict
2022-05-25 11:55:23 -07:00
collin
65408acbb5
fix lexer test
2022-05-25 14:10:15 -04:00
collin
8d79193474
merge testnet3
2022-05-25 14:02:10 -04:00
gluax
8cb4b19e66
merge upstream changes
2022-05-25 09:21:47 -07:00
Collin Chin
0bf4a923a2
Merge pull request #1834 from AleoHQ/docs/test-framework-doc-updates
...
[Docs] update test framework docs
2022-05-25 11:55:21 -04:00
collin
637ab9c0b6
update test readme
2022-05-24 12:45:11 -04:00
gluax
019598c84e
#1805 was fixed by a previous commit
2022-05-23 18:57:14 -07:00
gluax
1cd7aad6ad
fix #1819
2022-05-23 18:55:42 -07:00
gluax
ba4f1666d1
fix #1821
2022-05-23 18:00:33 -07:00
gluax
eee58883a6
clean up and fix type set checking
2022-05-23 11:07:43 -07:00
gluax
848868a05a
make suggested changes fix tests
2022-05-23 09:37:04 -07:00
gluax
ff46c98b9e
update test framework docs
2022-05-23 08:22:11 -07:00
collin
b8780e888d
merge testnet3
2022-05-20 10:39:21 -04:00
Alessandro Coglio
560ea590a9
[tests] Change category of the 0x
tests
2022-05-19 20:31:05 -07:00
collin
119c191836
merge testnet3
2022-05-18 14:29:54 -04:00
Collin Chin
4ce11080b5
Merge pull request #1825 from AleoHQ/fix-loop-end-inclusive
...
[parser] Fix to disallow inclusive loop ending bound.
2022-05-18 14:17:32 -04:00
Mazdak Farrokhzad
882f2e5454
remove char type + literals
2022-05-18 14:33:04 +02:00
Collin Chin
416d8d5ad9
fix nit
2022-05-17 11:36:04 -04:00
Mazdak Farrokhzad
7f435eba48
remove expression statements
2022-05-17 14:41:30 +02:00
Alessandro Coglio
1761b80578
[parser] Fix to disallow including loop ending bound.
...
This is not part of the current version of Leo (cf. ABNF grammar and Leo
Reference).
Adapt tests.
2022-05-16 21:24:42 -07:00
Alessandro Coglio
dcf029e645
[tests] Remove unused parser errors.
...
Also revise expectations. The changes look extensive in the diff, but only the
error codes have changed (at least, that's the expectation, and this has been
visually checked in some places of the diff).
2022-05-16 10:34:27 -07:00
0rphon
38fa7a9608
added more tests/generated expectations for the ones that pass
2022-05-15 21:53:28 -07:00
0rphon
92cac97a84
added scalar tests
2022-05-14 20:27:08 -07:00
Alessandro Coglio
21616fe167
[parser] Remove the input
keyword.
...
This is also not in the current grammar, and it does not look like it is going
to be re-added.
2022-05-13 23:50:33 -07:00
Alessandro Coglio
2fbaf759db
[parser] Remove mut and type keywords.
...
As discussed, these are no longer in the grammar. If and when we need them, we
will re-add them.
This also removes some extra code that gives a specific error when mut is
used. However, that is in fact another bug, because `mut` is a valid identifier
in the current grammar, and thus this extra code unjustly rejects code that uses
`mut` as an identifier.
Adjust some tests and expectations.
2022-05-13 23:36:08 -07:00
collin
f6aa7a578a
merge testnet3
2022-05-13 12:33:35 -07:00
Collin Chin
0e24e670bb
Merge pull request #1816 from AleoHQ/test-comment-into-yaml
...
[tests] move comment from body to yaml header
2022-05-13 09:48:50 -07:00
Collin Chin
f4e241efad
Merge pull request #1815 from AleoHQ/int-pow-tests
...
[tests] make integer pow tests consistent
2022-05-13 09:44:52 -07:00
Collin Chin
98cd7e91aa
Merge pull request #1813 from AleoHQ/move-field-test
...
[tests] Move failing test to new fail.
2022-05-13 09:41:59 -07:00
Collin Chin
21b295fafe
Merge pull request #1810 from AleoHQ/group-x_and_y
...
[tests] fix (x,y)group test
2022-05-13 09:41:45 -07:00
Collin Chin
baddfcc076
Merge pull request #1808 from AleoHQ/fix-implicit-literal-tests
...
[tests] Fix format and expectation of a test.
2022-05-13 09:41:30 -07:00
Eric McCarthy
c3f59bbb66
[tests] move comment from body to yaml header
2022-05-13 00:10:39 -07:00
Eric McCarthy
e3c3b6d79a
[tests] make integer pow tests consistent
2022-05-12 23:20:35 -07:00
Alessandro Coglio
f502b9c5e9
[tests] Move failing test to new fail.
...
Instead of commenting out this failing test, it seem better to add to a new file
for failing tests. If and when we change Leo to accept field literals in hex, we
can move the test from the Fail file to the Pass fail.
This also helps the ACL2 tester, which is currently not handling comment-out
tests of this form.
2022-05-12 14:04:22 -07:00
collin
bacc0d7510
merge testnet3
2022-05-12 13:18:43 -07:00
Eric McCarthy
27991a6423
[tests] add expectation for group/x_and_y.leo
2022-05-12 10:57:52 -07:00
Eric McCarthy
b08ab82cbc
[tests] fix (x,y)group test
2022-05-12 10:41:57 -07:00
Mazdak Farrokhzad
a5ad874ffb
spans: use source map backing
2022-05-12 16:09:18 +02:00
Alessandro Coglio
20a081da37
[tests] Fix format and expectation of a test.
...
This was apparently disabled, but it did not start with a block comment.
This commit fixes it to start with a block comment as required.
This commit also makes it a failing test, which is appropriate because in the
current version of Leo we do not allow untyped literals (i.e. lone numerals as
expressions), and it is thus a good negative test for the current version of
Leo. When we extend Leo to allow untyped literals, we can simply flip the
expectation of this test from Fail to Pass.
2022-05-11 21:16:41 -07:00
collin
8f17d6294a
rename scalar -> primitive
2022-05-11 14:09:12 -07:00
Alessandro Coglio
62f2267c2b
[parser] Fix parsing of ordering expressions.
...
Follow the grammar rule. The ordering operators are not associative.
Split previous tests into succeeding and failing ones.
Refresh expectations of old test files.
Add expectations of new test files.
2022-05-10 23:32:46 -07:00
Eric McCarthy
06cb450593
[tests] add block comment annotation to field/sub.leo and field/ternary.leo and add expectations files
2022-05-10 13:38:41 -07:00
collin
1a569eb655
regen tests
2022-05-10 11:59:34 -07:00
collin
c1d36ee62e
remove const function code
2022-05-10 11:57:23 -07:00
collin
1bf39e76a9
commit expectations
2022-05-10 11:38:29 -07:00
collin
cca3c84ef4
remove unused imports code and tests
2022-05-10 11:22:30 -07:00
Collin Chin
be9fa96d9e
Merge pull request #1786 from AleoHQ/feature/type-checking
...
[Impl] type-checking
2022-05-10 11:17:44 -07:00
gluax
23f19fc4f7
missed regening a test
2022-05-05 15:58:41 -07:00
gluax
b79b961610
make new tests
2022-05-05 15:44:33 -07:00
gluax
d33e69bac8
re-introduce some disabled tests, fix some
2022-05-05 15:38:55 -07:00
Collin Chin
527c55f841
Merge pull request #1666 from AleoHQ/feature/1654-require-types
...
[Impl] Require Types
2022-05-04 15:53:55 -07:00
gluax
e03af95ff6
change output format, st doesn't change bc of input file
2022-05-04 15:43:07 -07:00
gluax
b97bf4c9bc
started going through deprecated tests, noticed parts of testframework were broken
2022-05-04 15:37:59 -07:00
gluax
2c252f7878
all current compiler tests pass, need to add more
2022-05-04 13:37:53 -07:00
Collin Chin
4a1cd29b53
Merge pull request #1781 from AleoHQ/doc-test-update
...
[Testing] Update doc of test framework.
2022-05-04 13:02:22 -07:00
gluax
4fb95d1195
initial commit for tc, adds get_type to Node
2022-05-03 11:26:56 -07:00
Alessandro Coglio
ce7dfedea6
[testing] Remove obsolete section from README.
2022-05-02 21:51:54 -07:00
gluax
18bd03318f
use input_file for each, as now inline input content is ignored
2022-05-02 20:34:37 -07:00