Skip to content

Commit

Permalink
Merge branch 'mr/fix_assert_errors' into 'edge'
Browse files Browse the repository at this point in the history
Minor edit: remove eslint warnings

See merge request eng/ide/ada_language_server!1633
  • Loading branch information
setton committed Jul 23, 2024
2 parents bae2e1e + 7094c02 commit 51dd471
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions integration/vscode/ada/test/suite/general/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ suite('which and envHasExec', function () {
suite('findAdaMain', function () {
test('Find one main (simple case)', async function () {
/* Test that findAdaMain works in a simple case */
const uri = Uri.joinPath(workspace.workspaceFolders![0].uri, 'src', 'main1.adb');
const folders = workspace.workspaceFolders;
assert(folders && folders.length > 0);
const uri = Uri.joinPath(folders[0].uri, 'src', 'main1.adb');
const adaMain = await findAdaMain(uri.fsPath);
assert(adaMain);
});
test('Find one main (case sensitivity)', async function () {
/* Test the behavior of findAdaMain with respect to case sensitivity */
const uri_uppercase = Uri.joinPath(workspace.workspaceFolders![0].uri, 'src', 'MAIN1.ADB');
const folders = workspace.workspaceFolders;
assert(folders && folders.length > 0);
const uri_uppercase = Uri.joinPath(folders[0].uri, 'src', 'MAIN1.ADB');
const adaMain_from_uppercase = await findAdaMain(uri_uppercase.fsPath);

/* On Windows we should have a main here, otherwise we should not */
Expand Down

0 comments on commit 51dd471

Please sign in to comment.