a4e6530513
In the documentation it states that child values can override the parent values. Originally this code did not support that but now it does. Also added in testing inspired by the previous tests. Signed-off-by: cullvox <cullvox@outlook.com>
41 lines
1.2 KiB
JSON
41 lines
1.2 KiB
JSON
{
|
|
"description": [
|
|
{
|
|
"text": "The quick ",
|
|
"color": "blue",
|
|
"italic": true
|
|
},
|
|
{
|
|
"text": "brown fox ",
|
|
"color": "#873600",
|
|
"bold": true,
|
|
"underlined": true,
|
|
"extra": {
|
|
"text": "jumped over ",
|
|
"color": "blue",
|
|
"bold": false,
|
|
"underlined": false,
|
|
"italic": true,
|
|
"strikethrough": true
|
|
}
|
|
},
|
|
{
|
|
"text": "the lazy dog's back. ",
|
|
"color": "green",
|
|
"bold": true,
|
|
"italic": true,
|
|
"underlined": true,
|
|
"strikethrough": true,
|
|
"extra": [
|
|
{
|
|
"text": "1234567890 ",
|
|
"color": "black",
|
|
"strikethrough": false,
|
|
"extra": "How vexingly quick daft zebras jump!"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"expected_output": "<font color=\"blue\"><i>The quick </i></font><font color=\"#873600\"><b><u>brown fox </u></b></font><font color=\"blue\"><i><s>jumped over </s></i></font><font color=\"green\"><b><i><u><s>the lazy dog's back. </s></u></i></b></font><font color=\"black\"><b><i><u>1234567890 </u></i></b></font><font color=\"black\"><b><i><u>How vexingly quick daft zebras jump!</u></i></b></font>"
|
|
}
|