多行内容逐行处理;更新测试用例;测试用例可以指定EOL换行符;transformMutliLineText 通过所有测试用例
This commit is contained in:
3
src/type-definition/convert-function-type.ts
Normal file
3
src/type-definition/convert-function-type.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export type EOL = '\n' | '\r\n';
|
||||
|
||||
export type ConvertFunction = (selectionText: string, eol: EOL) => string;
|
@@ -1,3 +1,5 @@
|
||||
import { EOL } from "./convert-function-type";
|
||||
|
||||
export type TestCaseGroup = {
|
||||
group: string
|
||||
testTitle: string
|
||||
@@ -7,7 +9,8 @@ export type TestCaseGroup = {
|
||||
export type TestCase = {
|
||||
title: string
|
||||
input: string | Array<string>
|
||||
transformText: string
|
||||
eol: EOL | Array<EOL>
|
||||
transformText: Array<string>
|
||||
output: {
|
||||
camelCase: string
|
||||
pascalCase: string
|
||||
|
@@ -3,4 +3,5 @@ export type TransformTextResult = {
|
||||
trailingSpace: string
|
||||
result: string
|
||||
trimResult: string
|
||||
// debug?: any
|
||||
};
|
||||
|
Reference in New Issue
Block a user