添加测试用例
This commit is contained in:
@@ -5,36 +5,6 @@ import * as assert from 'assert';
|
||||
import * as vscode from 'vscode';
|
||||
// import * as myExtension from '../../extension';
|
||||
|
||||
enum TextFormat {
|
||||
/** 独立单词 */
|
||||
SINGLE_WORD,
|
||||
/** 小驼峰 */
|
||||
CAMEL_CASE,
|
||||
/** 大驼峰 */
|
||||
PASCAL_CASE,
|
||||
/** 大写 */
|
||||
UPPER_CASE,
|
||||
/** 小写 */
|
||||
LOWER_CASE,
|
||||
}
|
||||
|
||||
interface TestCase {
|
||||
input: string
|
||||
inputType: TextFormat | Array<TextFormat>
|
||||
output: {
|
||||
camelCase: string
|
||||
}
|
||||
}
|
||||
const testCase: Array<TestCase> = [
|
||||
{
|
||||
input: '',
|
||||
inputType: [],
|
||||
output: {
|
||||
camelCase: '',
|
||||
}
|
||||
},
|
||||
];
|
||||
|
||||
suite('Extension Test Suite', () => {
|
||||
vscode.window.showInformationMessage('Start all tests.');
|
||||
|
||||
|
Reference in New Issue
Block a user