Second and failing file

This commit is contained in:
Dimitry Ivanov 2018-08-23 18:49:46 +03:00
parent 808349d565
commit db4be0eee3
2 changed files with 35 additions and 1 deletions

View File

@ -107,7 +107,16 @@ abstract class TestDataReader {
@NonNull @NonNull
private TestData testData(@NonNull JsonObject jsonObject) { private TestData testData(@NonNull JsonObject jsonObject) {
final String description = jsonObject.get("description").getAsString(); final String description;
{
final JsonElement element = jsonObject.get("description");
if (element != null
&& element.isJsonPrimitive()) {
description = element.getAsString();
} else {
description = null;
}
}
final String input = jsonObject.get("input").getAsString(); final String input = jsonObject.get("input").getAsString();
if (TextUtils.isEmpty(input)) { if (TextUtils.isEmpty(input)) {

View File

@ -0,0 +1,25 @@
input: |-
First **line** is *always*
~~strike~~ down
> Some quote here!
# Header 1
## Header 2
and `some code` and more:
```java
the code in multiline
```
output:
- text: "First "
- b: "line"
- text: " "
- i: "always"
- text: " "
- s: "strike"
- text: " down\n\n"
- blockquote: "Some quote here!"
- text: "\n\n"