Skip to content

Add unit tests for simple_utils.py utility functions #36

@coderabbitai

Description

@coderabbitai

Description

This is a follow-up task from PR #1 to add comprehensive unit tests for the utility functions introduced in simple_utils.py.

Background

The following functions were added without unit tests and require test coverage:

  • reverse_string(text): Function that reverses a string
  • count_words(sentence): Function that counts words in a sentence
  • celsius_to_fahrenheit(celsius): Function that converts Celsius to Fahrenheit

References

Acceptance Criteria

  • Add unit tests for reverse_string function with various test cases
  • Add unit tests for count_words function including edge cases
  • Add unit tests for celsius_to_fahrenheit function with various temperature values
  • Ensure all tests pass successfully
  • Achieve adequate code coverage for the module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions