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

normalizeSpeechSpeed method now works as specified, is tested #158

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

kalafus
Copy link
Contributor

@kalafus kalafus commented Feb 5, 2024

normalizeSpeechSpeed method now works as specified, is tested

What

added tests for normalizeSpeechSpeed, fixed logic of method, made boundaries a public enum.

Why

let isSpeedOutOfBounds = inputSpeed >= Constants.maxSpeed && inputSpeed <= Constants.minSpeed was always false; needs be ||, not &&

Affected Areas

AudioSpeechQuery

Copy link

sonarcloud bot commented Feb 5, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@ingvarus-bc ingvarus-bc merged commit a2c8d17 into MacPaw:main Feb 7, 2024
4 checks passed
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