# Richtext Test Cases
#### 0. Insert into bold span
| Name | Text |
|:----------------|:-------------------------|
| Origin | `Hello World` |
| Concurrent A | `Hello World` |
| Concurrent B | `Hello New World` |
| Expected Result | `Hello New World` |
#### 1. Merge Concurrent Styles
| Name | Text |
|:----------------|:---------------------|
| Origin | Hello World |
| Concurrent A | `Hello World` |
| Concurrent B | `Hello World` |
| Expected Result | `Hello World` |
#### 2. Concurrent insert text & remove style
| Name | Text |
|:----------------|:-----------------------|
| Origin | `Hello World` |
| Concurrent A | `Hello World` |
| Concurrent B | `Hello a World` |
| Expected Result | `Hello a World` |
#### 3. Concurrent insert text & style
| Name | Text |
|:----------------|:-----------------------|
| Origin | `Hello World` |
| Concurrent A | `Hello World` |
| Concurrent B | `Hello a World` |
| Expected Result | `Hello a World` |
#### 4. Concurrent text edit & style that shrink
| Name | Text |
|:----------------|:---------------------------|
| Origin | `Hello World` |
| Concurrent A | `Hello World` |
| Concurrent B | `Hey World` |
| Expected Result | `Hey World` |
#### 5. Local insertion expand rules
> [**Hello**](https://www.google.com) World
When insert a new character after "Hello", the new char should be bold but not link
> [**Hello**](https://www.google.com)**t** World
| Name | Text |
|:----------------|:----------------------------------|
| Origin | `Hello World` |
| Expected Result | `Hellot World` |
#### 6. Concurrent unbold
In Peritext paper 2.3.2
| Name | Text |
|:----------------|:---------------------------------------------|
| Origin | `The fox jumped over the dog.` |
| Concurrent A | `The fox jumped over the dog.` |
| Concurrent B | `The fox jumped over the dog.` |
| Expected Result | `The fox jumped over the dog.` |
#### 7. Bold & Unbold
In Peritext paper 2.3.3
| Name | Text |
|:----------------|:---------------------------------------------|
| Origin | `The fox jumped over the dog.` |
| Concurrent A | `The fox jumped over the dog.` |
| Concurrent B | `The fox jumped over the dog.` |
| Expected Result | `The fox jumped over the dog.` |
#### 8. Overlapped formatting
In Peritext paper 3.2, example 3
| Name | Text |
|:----------------|:-----------------------------|
| Origin | The fox jumped. |
| Concurrent A | **The fox** jumped. |
| Concurrent B | The *fox jumped*. |
| Expected Result | **The _fox_** jumped. |
#### 9. Multiple instances of the same mark
![](https://i.postimg.cc/MTNGq8cH/Clean-Shot-2023-10-09-at-12-16-29-2x.png)