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

unit test的test_gen_mmt_msg出现failed #178

Open
hdcola opened this issue Sep 23, 2021 · 0 comments
Open

unit test的test_gen_mmt_msg出现failed #178

hdcola opened this issue Sep 23, 2021 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@hdcola
Copy link
Contributor

hdcola commented Sep 23, 2021

需要重新设计一下这个case code

  assert msg == """从2020年09月04日定投 #小毛毛 AAPL,到2021年08月20日累计投入 4900元,到昨日市值为 5725.16 元,利润为 16.84%\n从2020年09月04日定投 #大毛毛 AAPL,到2021年08月20日累计投入 1100元,到昨日市值为 1268.71 元,利润为 15.34%\n"""

E AssertionError: assert ('从2020年09月04日定投 #小毛毛 AAPL,到2021年08月20日累计投入 4800元,到昨日市值为 5592.15 元,利润为 16.50%\n'\n '从2020年09月04日定投 #大毛毛 AAPL,到2021年08月20日累计投入 1100元,到昨日市值为 1268.71 元,利润为 '\n '15.34%\n') == ('从2020年09月04日定投 #小毛毛 AAPL,到2021年08月20日累计投入 4900元,到昨日市值为 5725.16 元,利润为 16.84%\n'\n '从2020年09月04日定投 #大毛毛 AAPL,到2021年08月20日累计投入 1100元,到昨日市值为 1268.71 元,利润为 '\n '15.34%\n')
E - 从2020年09月04日定投 #小毛毛 AAPL,到2021年08月20日累计投入 4900元,到昨日市值为 5725.16 元,利润为 16.84%
E ? ^ ^ - ^ ^^
E + 从2020年09月04日定投 #小毛毛 AAPL,到2021年08月20日累计投入 4800元,到昨日市值为 5592.15 元,利润为 16.50%
E ? ^ ^^ ^ ^^
E 从2020年09月04日定投 #大毛毛 AAPL,到2021年08月20日累计投入 1100元,到昨日市值为 1268.71 元,利润为 15.34%

@hdcola hdcola added the bug Something isn't working label Sep 23, 2021
@hdcola hdcola added this to the 0926作业 milestone Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant