Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comprehensive test for interpreter, new global input type info tests, support match on all types, restricted global variables and other fixes #978

Merged
merged 50 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
fcca2d4
Add global input type info tests
afsalthaj Sep 30, 2024
39628ce
Add variant info
afsalthaj Sep 30, 2024
2c99acf
Make sure all expressions can be pattern matched
afsalthaj Sep 30, 2024
a7b0ae2
Accept all record types
afsalthaj Sep 30, 2024
9436cb2
Handle identifier inference
afsalthaj Sep 30, 2024
af7be17
Reformat
afsalthaj Sep 30, 2024
e04c02c
Handle list and flag
afsalthaj Sep 30, 2024
c027861
Handle desugar for flag list and record
afsalthaj Sep 30, 2024
07908f4
Handle push, pull and unification for new arm patterns
afsalthaj Sep 30, 2024
742f3dc
Start fixing tests
afsalthaj Sep 30, 2024
4803bd3
Add record test
afsalthaj Sep 30, 2024
37e2f35
Add tests
afsalthaj Sep 30, 2024
0ff63f9
Add list test
afsalthaj Sep 30, 2024
596e0ad
Add number match
afsalthaj Sep 30, 2024
d18fa7b
Add number match
afsalthaj Sep 30, 2024
5589dfe
Move a record test to rib
afsalthaj Sep 30, 2024
7894185
Delete tests from worker service
afsalthaj Sep 30, 2024
be4b8f3
Reformat code
afsalthaj Sep 30, 2024
1e48de6
No arg unit function
afsalthaj Sep 30, 2024
0cbf505
No arg unit function
afsalthaj Sep 30, 2024
11ec2d9
No arg unit function
afsalthaj Sep 30, 2024
2c1ae5b
Let binding for a result function
afsalthaj Sep 30, 2024
0cecd43
Add ok result
afsalthaj Sep 30, 2024
0674650
Include err result
afsalthaj Sep 30, 2024
a36e749
Include ok of record
afsalthaj Sep 30, 2024
4913aa9
Include test
afsalthaj Sep 30, 2024
d099f6b
Include test
afsalthaj Sep 30, 2024
906b5ef
Include wild card test
afsalthaj Sep 30, 2024
b831b0e
Remove duplicate tests
afsalthaj Sep 30, 2024
26c1a5e
Add variant test
afsalthaj Sep 30, 2024
724abec
Add variant test
afsalthaj Sep 30, 2024
5045162
Add variant test
afsalthaj Sep 30, 2024
8a9dfdf
Add a comprehensive interpreter test
afsalthaj Oct 1, 2024
ddabf22
Add data
afsalthaj Oct 1, 2024
148f289
Start adding functions
afsalthaj Oct 1, 2024
f7a93ab
Add complex metadata tests
afsalthaj Oct 1, 2024
f06305d
Add comprehensive test module
afsalthaj Oct 1, 2024
5f29d51
Fix wasm wave syntax
afsalthaj Oct 1, 2024
69cb0be
Reformat code
afsalthaj Oct 1, 2024
e0e2858
Use hiphens in record
afsalthaj Oct 1, 2024
1dd1d0b
Make sure mock wasm data is correct in syntax
afsalthaj Oct 1, 2024
9c4a979
Make sure mock wasm data is correct in syntax
afsalthaj Oct 1, 2024
016b0fd
Add match conditions and expand on tests
afsalthaj Oct 1, 2024
28177f1
Pattern match on tuple
afsalthaj Oct 1, 2024
2db7b8e
Fix tests
afsalthaj Oct 1, 2024
29853f5
Add comprehensive tests
afsalthaj Oct 1, 2024
1aff071
Avoid repetition
afsalthaj Oct 1, 2024
679ed95
Merge branch 'main' into migrate_tests
afsalthaj Oct 1, 2024
309ad76
Reformat code
afsalthaj Oct 1, 2024
d2b0193
Merge remote-tracking branch 'origin/migrate_tests' into migrate_tests
afsalthaj Oct 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions golem-api-grpc/proto/golem/rib/expr.proto
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ message ArmPattern {
ConstructorArmPattern constructor = 3;
LiteralArmPattern literal = 4;
TupleConstructorArmPattern tuple_constructor = 5;
ListConstructorArmPattern list_constructor = 6;
RecordConstructorArmPattern record_constructor = 7;
}
}

Expand All @@ -224,6 +226,20 @@ message TupleConstructorArmPattern {
repeated ArmPattern patterns = 1;
}

message ListConstructorArmPattern {
repeated ArmPattern patterns = 1;
}

message RecordConstructorArmPattern {
repeated RecordFieldArmPattern fields = 1;
}

message RecordFieldArmPattern {
string name = 1;
ArmPattern pattern = 2;
}


message LiteralArmPattern {
Expr expr = 1;
}
Expand Down
Loading