Skip to content

Write Unit Tests for jam_to_js #1

@UnitaryIron

Description

@UnitaryIron

Task

Write unit tests for the jam_to_js function in jam.py using pytest.

Goal

We want to ensure the transpiler is working as expected with a variety of input cases.

Suggested Approach

  • Create a tests/ directory.
  • Add a file named test_transpiler.py.
  • Write tests for:
    • Basic math expressions
    • Variable declarations
    • Simple control flow (if, repeat)

Requirements

  • Basic knowledge of Python and pytest
  • Familiarity with writing unit tests

References

You can refer to the pytest documentation for help.

Difficulty

Beginner


If you're new to open source, check out our Contributing Guide. Feel free to ask questions in our Discord: https://discord.gg/GgB8hbvR

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationgood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions