Skip to content

Commit

Permalink
update: 添加测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsSov8forUs committed Apr 15, 2024
1 parent 9772ed6 commit 6322ed6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.vscode/
18 changes: 0 additions & 18 deletions .vscode/launch.json

This file was deleted.

7 changes: 7 additions & 0 deletions pkg/message/parser_test_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ func _getRawMessage() map[string][]string {
raw_message["meta"] = _getMetaRawMessage()
raw_message["interact"] = _getInteractRawMessage()
raw_message["extend"] = _getExtendRawMessage()
raw_message["escape"] = _getEscapeRawMessage()
return raw_message
}

Expand Down Expand Up @@ -71,3 +72,9 @@ func _getExtendRawMessage() []string {
`<test:test test="test">test</test:test>`,
}
}

func _getEscapeRawMessage() []string {
return []string{
`<author id="&lt;test&gt;" name="&quot;u&amp;i&quot;">&lt;film&amp;audio&gt;&quot;inner&quot;</author>`,
}
}

0 comments on commit 6322ed6

Please sign in to comment.