Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update test case #1900

Merged
merged 1 commit into from
Jan 23, 2025
Merged

chore: update test case #1900

merged 1 commit into from
Jan 23, 2025

Conversation

wang1212
Copy link
Member

No description provided.

Copy link

Walkthrough

This pull request updates a test case in the textWordWrap.ts file. The change involves replacing a JSON string with a new one that contains information about a Python data science course, including course details, instructor information, curriculum, and ratings.

Changes

File Summary
__tests__/demos/bugfix/textWordWrap.ts Updated the text property in the test case with a new JSON string containing course information.

@@ -149,7 +149,7 @@ export async function textWordWrap(context: { canvas: Canvas }) {
textAlign: 'center',
textBaseline: 'middle',
linkTextFill: '#326EF4',
text: '{"acodeList":"[4419, 4413]","roadList":"[122702094, 121224203, 122702115, 98717265, 122702113, 98718278, 98718270, 98718271, 124670851, 98719406, 122702114, 98719557, 121323912, 122702093, 98718269]","高低标准标签":"高普","isFilter":"否","质量标准":"模型类","标准编号":"","客户标签":"","高速误报率":"","普通路误报率":"","cityName":"东莞市","adcode":"441302","hfc":"3","errorOriginLabel":"虚拟"}',
text: '{"courseId":"C12345","courseName":{"chinese":"Python 数据科学入门","english":"Introduction to Python Data Science"},"instructor":{"name":"张教授","title":"数据科学教授","introduction":"张教授是知名的数据科学家,拥有多年的教学经验。He has a deep understanding of Python programming and data analysis."},"description":"本课程旨在帮助学员从零基础开始学习 Python 编程,掌握数据分析的基本技能。通过本课程,您将能够使用 Python 进行数据清洗、探索性数据分析、机器学习等。This course is designed to help learners start from scratch and learn Python programming and master the basic skills of data analysis.","curriculum":[{"module":"Python 基础","topics":["变量与数据类型","控制流","函数"]},{"module":"NumPy 和 Pandas","topics":["NumPy 数组操作","Pandas 数据框","数据清洗"]},{"module":"数据可视化","topics":["Matplotlib","Seaborn","数据可视化案例"]}],"duration":"12周","price":999,"ratings":[{"rating":4.5,"comment":"课程内容丰富,老师讲得很清楚。The course content is comprehensive and the teacher explains very clearly."},{"rating":5,"comment":"非常适合初学者入门,强烈推荐!Highly recommended for beginners!"}],"enrollment":500}',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the new JSON string structure aligns with the expected format in the application logic. Any mismatch might lead to test failures or incorrect behavior during testing.

@wang1212 wang1212 merged commit d87d50d into master Jan 23, 2025
4 checks passed
@wang1212 wang1212 deleted the chore-1 branch January 23, 2025 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants