From 3077cfacf60a9f9db6d272bc2ebbb05305c68293 Mon Sep 17 00:00:00 2001 From: sockmaster27 <61235930+sockmaster27@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:10:18 +0200 Subject: [PATCH] test: update record syntax --- test/src/findReferences.test.ts | 2 ++ test/src/highlight.test.ts | 2 ++ test/src/rename.test.ts | 2 ++ test/testWorkspaces/findReferences/src/Records.flix | 2 +- test/testWorkspaces/highlight/src/Records.flix | 2 +- test/testWorkspaces/rename/src/Records.flix | 2 +- 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/test/src/findReferences.test.ts b/test/src/findReferences.test.ts index 478f6e4..39a46ea 100644 --- a/test/src/findReferences.test.ts +++ b/test/src/findReferences.test.ts @@ -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)), ]) }) }) diff --git a/test/src/highlight.test.ts b/test/src/highlight.test.ts index df1205f..0b77de7 100644 --- a/test/src/highlight.test.ts +++ b/test/src/highlight.test.ts @@ -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), ]) }) }) diff --git a/test/src/rename.test.ts b/test/src/rename.test.ts index c300d52..2a5d172 100644 --- a/test/src/rename.test.ts +++ b/test/src/rename.test.ts @@ -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), ], ], ]) diff --git a/test/testWorkspaces/findReferences/src/Records.flix b/test/testWorkspaces/findReferences/src/Records.flix index 927b4af..0a4292a 100644 --- a/test/testWorkspaces/findReferences/src/Records.flix +++ b/test/testWorkspaces/findReferences/src/Records.flix @@ -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 \ No newline at end of file diff --git a/test/testWorkspaces/highlight/src/Records.flix b/test/testWorkspaces/highlight/src/Records.flix index 14adead..69946d8 100644 --- a/test/testWorkspaces/highlight/src/Records.flix +++ b/test/testWorkspaces/highlight/src/Records.flix @@ -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 diff --git a/test/testWorkspaces/rename/src/Records.flix b/test/testWorkspaces/rename/src/Records.flix index 24f41fc..69946d8 100644 --- a/test/testWorkspaces/rename/src/Records.flix +++ b/test/testWorkspaces/rename/src/Records.flix @@ -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 \ No newline at end of file + (r1#x + r2#x) == 4