Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the string splice transform logic
- Loading branch information
1 parent
c61725d
commit 3b4ed65
Showing
2 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/test/otfspec/otf-string-splice-replace-splice-replace-spec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"serverOpType": "StringSplice", | ||
"clientOpType": "StringSplice", | ||
"cases": [ | ||
{ | ||
"id": "S-PP-1", | ||
"input": { | ||
"serverOp": {"type": "StringSplice", "noOp": false, "index": 4, "deleteCount": 1, "insertValue": "X"}, | ||
"clientOp": {"type": "StringSplice", "noOp": false, "index": 4, "deleteCount": 1, "insertValue": "Y"} | ||
}, | ||
"output": { | ||
"serverOp": {"type": "StringSplice", "noOp": false, "index": 4, "deleteCount": 1, "insertValue": "X"}, | ||
"clientOp": {"type": "StringSplice", "noOp": true, "index": 4, "deleteCount": 1, "insertValue": "Y"} | ||
} | ||
}, | ||
{ | ||
"id": "S-PP-2", | ||
"input": { | ||
"serverOp": {"type": "StringSplice", "noOp": false, "index": 4, "deleteCount": 1, "insertValue": "X"}, | ||
"clientOp": {"type": "StringSplice", "noOp": false, "index": 4, "deleteCount": 1, "insertValue": "X"} | ||
}, | ||
"output": { | ||
"serverOp": {"type": "StringSplice", "noOp": true, "index": 4, "deleteCount": 1, "insertValue": "X"}, | ||
"clientOp": {"type": "StringSplice", "noOp": true, "index": 4, "deleteCount": 1, "insertValue": "X"} | ||
} | ||
} | ||
] | ||
} |