Skip to content

Commit

Permalink
Put tests side-by-side with main code
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-wiemer committed Aug 13, 2023
1 parent 273168a commit 7b30279
Show file tree
Hide file tree
Showing 138 changed files with 11 additions and 32,970 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as assert from 'assert';
import { CodeUtil, getSelectedText } from '../../../common/codeUtil';
import * as vscode from 'vscode';
import { CodeUtil } from './codeUtil';

suite('Code utils', () => {
suite('purify', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { getDocument } from '../../utils';
import { getDocument } from '../test/utils';
import * as assert from 'assert';
import * as path from 'path';
import * as vscode from 'vscode';
import { Parser } from '../../../parser/parser';
import { Parser } from '../parser/parser';

suite('Parser', () => {
suite('detectVariableByLine', () => {
Expand Down Expand Up @@ -81,11 +81,7 @@ suite('Parser', () => {
__dirname,
'..',
'..',
'..',
'..',
'src',
'test',
'suite',
'parser',
'samples',
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as vscode from 'vscode';
import { assert } from 'chai';
import { provideCompletionItemsInner } from '../../../../providers/completionProvider';
import { provideCompletionItemsInner } from './completionProvider';

// tests for completionItemsForMethod
suite('completionProvider', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// TODO move to providers/formatting/formattingProvider.test.ts
import { getDocument } from '../../utils';
import { getDocument } from '../test/utils';
import * as assert from 'assert';
import * as fs from 'fs-extra';
import * as path from 'path';
import * as vscode from 'vscode';
import {
FormatProvider,
internalFormat,
} from '../../../providers/formattingProvider';
import { FormatOptions } from '../../../providers/formattingProvider.types';
} from '../providers/formattingProvider';
import { FormatOptions } from '../providers/formattingProvider.types';

const inFilenameSuffix = '.in.ahk';
const outFilenameSuffix = '.out.ahk';
Expand Down Expand Up @@ -111,12 +110,8 @@ const filesParentPath = path.join(
__dirname,
'..',
'..',
'..',
'..',
'src',
'test',
'suite',
'format',
'providers',
'samples',
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
purify,
removeEmptyLines,
trimExtraSpaces,
} from '../../../../providers/formattingProvider.utils';
} from './formattingProvider.utils';

suite('FormattingProvider utils', () => {
// Default formatting options
Expand Down Expand Up @@ -1063,14 +1063,8 @@ suite('FormattingProvider utils', () => {
__dirname,
'..',
'..',
'..',
'..',
'..',
'src',
'test',
'suite',
'providers',
'formatting',
'samples',
);

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as assert from 'assert';
import { makeCompileCommand } from '../../../service/runnerService';
import { makeCompileCommand } from './runnerService';

suite('runnerService', () => {
suite('makeCompileCommand', () => {
Expand Down
3 changes: 0 additions & 3 deletions src/test/suite/grammar/samples/0-v2-demo.ahk2

This file was deleted.

31 changes: 0 additions & 31 deletions src/test/suite/grammar/samples/0-v2-demo.ahk2.snap

This file was deleted.

3 changes: 0 additions & 3 deletions src/test/suite/grammar/samples/295-command-comment.ahk1

This file was deleted.

13 changes: 0 additions & 13 deletions src/test/suite/grammar/samples/295-command-comment.ahk1.snap

This file was deleted.

3 changes: 0 additions & 3 deletions src/test/suite/grammar/samples/295-directive-comment.ahk1

This file was deleted.

11 changes: 0 additions & 11 deletions src/test/suite/grammar/samples/295-directive-comment.ahk1.snap

This file was deleted.

3 changes: 0 additions & 3 deletions src/test/suite/grammar/samples/295-function-call-comment.ahk1

This file was deleted.

17 changes: 0 additions & 17 deletions src/test/suite/grammar/samples/295-function-call-comment.ahk1.snap

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions src/test/suite/grammar/samples/295-label-comment.ahk1

This file was deleted.

12 changes: 0 additions & 12 deletions src/test/suite/grammar/samples/295-label-comment.ahk1.snap

This file was deleted.

106 changes: 0 additions & 106 deletions src/test/suite/grammar/samples/318-keyword-in-command.ahk1

This file was deleted.

Loading

0 comments on commit 7b30279

Please sign in to comment.