Skip to content

Commit

Permalink
test: update record syntax (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
sockmaster27 committed Aug 19, 2024
1 parent 9b56191 commit 970d644
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions test/src/findReferences.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ suite('Find references', () => {
new vscode.Location(recordsDocUri, new vscode.Range(13, 14, 13, 15)),
new vscode.Location(recordsDocUri, new vscode.Range(15, 7, 15, 8)),
new vscode.Location(recordsDocUri, new vscode.Range(15, 14, 15, 15)),
new vscode.Location(recordsDocUri, new vscode.Range(15, 8, 15, 9)),
new vscode.Location(recordsDocUri, new vscode.Range(15, 15, 15, 16)),
])
})
})
2 changes: 2 additions & 0 deletions test/src/highlight.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ suite('Highlight uses', () => {
new vscode.Range(13, 14, 13, 15),
new vscode.Range(15, 7, 15, 8),
new vscode.Range(15, 14, 15, 15),
new vscode.Range(15, 8, 15, 9),
new vscode.Range(15, 15, 15, 16),
])
})
})
2 changes: 2 additions & 0 deletions test/src/rename.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ suite('Rename', () => {
new vscode.Range(13, 14, 13, 15),
new vscode.Range(15, 7, 15, 8),
new vscode.Range(15, 14, 15, 15),
new vscode.Range(15, 8, 15, 9),
new vscode.Range(15, 15, 15, 16),
],
],
])
Expand Down
2 changes: 1 addition & 1 deletion test/testWorkspaces/findReferences/src/Records.flix
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ def setY(r: {y = Int32 | a}, v: Int32): {y = Int32 | a} =
def testRecords(): Bool =
let r1 = {x = 1, y = 2};
let r2 = setX(r1, 3);
r1.x + r2.x == 4
(r1#x + r2#x) == 4

2 changes: 1 addition & 1 deletion test/testWorkspaces/highlight/src/Records.flix
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ def setY(r: {y = Int32 | a}, v: Int32): {y = Int32 | a} =
def testRecords(): Bool =
let r1 = {x = 1, y = 2};
let r2 = setX(r1, 3);
r1.x + r2.x == 4
(r1#x + r2#x) == 4
2 changes: 1 addition & 1 deletion test/testWorkspaces/rename/src/Records.flix
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ def setY(r: {y = Int32 | a}, v: Int32): {y = Int32 | a} =
def testRecords(): Bool =
let r1 = {x = 1, y = 2};
let r2 = setX(r1, 3);
r1.x + r2.x == 4
(r1#x + r2#x) == 4

0 comments on commit 970d644

Please sign in to comment.