Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Feb 12, 2024
1 parent d1e1249 commit 047734a
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 15,651 deletions.
6 changes: 1 addition & 5 deletions test/completion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ suite("Rainlang Code Completion", () => {
test("Should provide filtered completion items based on provided position", async () => {
await testCompletion(docUri, new vscode.Position(2, 6), {
items: [
// { label: "add" , kind: vscode.CompletionItemKind.Function },
{ label: "decimal18-add" , kind: vscode.CompletionItemKind.Function },
{ label: "int-add" , kind: vscode.CompletionItemKind.Function },
// { label: "sat-add" , kind: vscode.CompletionItemKind.Function },
// { label: "saturating-add" , kind: vscode.CompletionItemKind.Function }
{ label: "literal", kind: vscode.CompletionItemKind.Constant },
]
});
});
Expand Down
7 changes: 0 additions & 7 deletions test/diagnostics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ suite("Rainlang Diagnostics", () => {

test("Should detect diagnostics correctly", async () => {
await testDiagnostics(docUri, [
// {
// message : "UnknownO",
// range : toRange(2, 6, 2, 9),
// code : 1537,
// severity: vscode.DiagnosticSeverity.Error,
// source : "rainlang"
// },
{
message : "Expected Semi",
range : toRange(2, 16, 2, 16),
Expand Down
4 changes: 2 additions & 2 deletions test/test-workspace/completion.rain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@0x78fd1edb0bdb928db6015990fecafbb964b44692e2d435693062dd4efc6254dd
#literal 2
#expression
_: add
_: lit
2 changes: 1 addition & 1 deletion test/test-workspace/diagnostics.rain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@0x78fd1edb0bdb928db6015990fecafbb964b44692e2d435693062dd4efc6254dd

#expression
_: int-add(1) 10
1 change: 0 additions & 1 deletion test/test-workspace/meta/caller.txt

This file was deleted.

Loading

0 comments on commit 047734a

Please sign in to comment.