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

Implement testing for Multiclass_longdesc and Multiclass_shortdesc #1633

Merged
merged 60 commits into from
May 27, 2022

Conversation

wellingtj
Copy link

The new multiclass has several functions, and they all need to be tested. This pull request implements multiclass_longdesc, multiclass_shortdesc and their tests. Currently, the tests account for grammar, string overflow, and overall functionality within the two functions. Additionally, it debugs the multiclass function and a few of the other functions in the multiclass module. This pull request is the first step in finishing issue #1608.

Jake Wellington and others added 30 commits May 16, 2022 04:14
…ny meaningful tests. I expect to finish this task tomorrow
…t repeated multiple times in a multicalss shortdesc
…d pushes are getting committed"

This reverts commit 782adb9.
Jonathan Alfred Roven added 2 commits May 25, 2022 00:22
Copy link
Contributor

@vanolson vanolson left a comment

Choose a reason for hiding this comment

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

This looks great! In multiclass.c there are a number of lines past 80 characters, which I understand due to all the struct calling, but some of them could be broken up between function arguments and put on new lines to limit the length of the lines. There's also a function definition with a lot of parameters that goes over 80 lines, but I'm not sure if that's something that should be split up. I also noticed a few typos in the file, which I commented. But the tests look very comprehensive, they cover a lot of scenarios. And the functions in multiclass.c look well written. Aside from the few formatting things I commented, this seems to be in great shape!

src/playerclass/src/multiclass.c Show resolved Hide resolved
tests/playerclass/test_multiclass.c Outdated Show resolved Hide resolved
tests/playerclass/test_multiclass.c Outdated Show resolved Hide resolved
Copy link
Contributor

@lilyehsani lilyehsani left a comment

Choose a reason for hiding this comment

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

Great job! Just a few comments.

src/playerclass/src/multiclass.c Outdated Show resolved Hide resolved
src/playerclass/src/multiclass.c Show resolved Hide resolved
src/playerclass/src/multiclass.c Show resolved Hide resolved
src/playerclass/src/multiclass.c Show resolved Hide resolved
tests/playerclass/test_class_prefabs.c Show resolved Hide resolved
Copy link
Contributor

@vanolson vanolson left a comment

Choose a reason for hiding this comment

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

All my suggestions are fixed, looks great!

@wellingtj
Copy link
Author

In this PR, we have done some major debugging and performance fixing in the multiclass_shortdesc and multiclass_longdesc functions. We have also implemented complete tests for them

Copy link
Contributor

@lilyehsani lilyehsani left a comment

Choose a reason for hiding this comment

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

LGTM! Approved.

@lilyehsani lilyehsani merged commit 5893ec8 into dev May 27, 2022
@wellingtj
Copy link
Author

In this PR, we have done some major debugging and performance fixing in the multiclass_shortdesc and multiclass_longdesc functions. We have also implemented complete tests for them

this is the closing statement, jumped the gun on it a bit there

@lilyehsani
Copy link
Contributor

Issue Score: Excellent

Comments:
Great work on this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants