1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

测试用例支持 转大写、转小写

This commit is contained in:
2024-04-03 00:39:15 +08:00
parent af78a1330f
commit 24490e6065
3 changed files with 94 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ import * as vscode from 'vscode';
import testGroups from './test-case';
import { TestCase, TestCaseGroup } from '../type-definition/test-case-type';
import { transformMutliLineText, transformText } from '../main-code/text-transform';
import { toCamelCase, toPascalCase } from '../main-code/text-conversion';
import { toCamelCase, toLowerCase, toPascalCase, toUpperCase } from '../main-code/text-conversion';
import { TransformTextResult } from '../type-definition/text-transform-type';
// import * as myExtension from '../../extension';
@@ -53,6 +53,12 @@ suite('Extension Test: run test case', () => {
for (let eol of eolList) {
assert.strictEqual(testCase.output.camelCase, toCamelCase(input, eol));
assert.strictEqual(testCase.output.pascalCase, toPascalCase(input, eol));
if (testCase.output.upperCase !== undefined) {
assert.strictEqual(testCase.output.upperCase, toUpperCase(input, eol));
}
if (testCase.output.lowerCase !== undefined) {
assert.strictEqual(testCase.output.lowerCase, toLowerCase(input, eol));
}
}
}
});