Skip to content

fix(js): an issue with loose equality for helpers; add missing tests for some helpers #53 #54 - #55

Merged
yesudeep merged 1 commit into
mainfrom
yesudeep/fix/eminent-shade
Feb 19, 2025
Merged

fix(js): an issue with loose equality for helpers; add missing tests for some helpers #53 #54#55
yesudeep merged 1 commit into
mainfrom
yesudeep/fix/eminent-shade

Conversation

@yesudeep

Copy link
Copy Markdown
Collaborator

fix(js): an issue with loose equality for helpers; add missing tests for some helpers #53 #54

RATIONALE:

Loose equality as espoused by JavaScript's coercive operators, e.g. == will not translate to Python and Go. Since these tests expect cross-runtime behavior to be consistent, we also ensure that they are type-safe across language runtimes.

ISSUES:

CHANGELOG:

  • Add YAML spec tests for these helpers:
    • history
    • ifEquals
    • section
    • unlessEquals
  • Strict equality for ifEquals and unlessEquals
  • Add commentary explaining each test to help understanding
  • Update the Git hooks to run JS tests.

…for some helpers #53 #54

RATIONALE:

Loose equality as espoused by JavaScript's coercive operators, e.g. `==`
will not translate to Python and Go. Since these tests expect
cross-runtime behavior to be consistent, we also ensure that they are
type-safe across language runtimes.

ISSUES:
- [x] #53 (strict equality)
- [x] #54 (missing helpers)

CHANGELOG:

- [x] Add YAML spec tests for these helpers:
  - [x] history
  - [x] ifEquals
  - [x] section
  - [x] unlessEquals
- [x] Strict equality for ifEquals and unlessEquals
- [x] Add commentary explaining each test to help understanding
- [x] Update the Git hooks to run JS tests.
@yesudeep

Copy link
Copy Markdown
Collaborator Author

I'm also wondering whether there needs to be some way to filter certain tests based on the runtime.

@yesudeep
yesudeep merged commit f645628 into main Feb 19, 2025
@yesudeep
yesudeep deleted the yesudeep/fix/eminent-shade branch February 19, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

2 participants