You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "oklmvlns8564 (via GitHub)" <gi...@apache.org> on 2023/06/15 14:56:20 UTC

[GitHub] [incubator-devlake] oklmvlns8564 commented on issue #5476: [Bug][TAPD] “invalid syntax” error when running extractStoryChangelog task

oklmvlns8564 commented on issue #5476:
URL: https://github.com/apache/incubator-devlake/issues/5476#issuecomment-1593230878

   > @oklmvlns8564 Thanks for the report. However, I'm having difficulty reproducing the `panic`, can you write me a UnitTest case based on [this one](https://github.com/apache/incubator-devlake/blob/e8f8d3b824ab4cb79e0bf13d1694e88b73b85730/backend/plugins/tapd/tasks/shared_test.go#L195)? Thanks
   
   @klesh hi, I found that as long as the input string contains' \\u ' but is not Unicode encoded, an error will be reported
   `func TestUnicodeToZh(t *testing.T) {
   	input := "app\\user\\u4e2d\\u6587"
   	expected := "中文"
   	output, err := unicodeToZh(input)
   	if err != nil {
   		t.Errorf("unicodeToZh(%q) returned error %v", input, err)
   	}
   	if output != expected {
   		t.Errorf("unicodeToZh(%q) = %q, want %q", input, output, expected)
   	}
   }`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org