Khan / Khan/live-editor

In the webpage environment, StructuredJS tests consider single quotes differently from double quotes

Open
#433 1 comment 0 reactions 0 assignees View on GitHub
bug webpage
Dominant language
JavaScript
Stars
776
Forks
180
PR merge metrics
No merged PRs in 30d

Description

For example, with this pattern:
var matchP = function() {
var heading = _ + "px";
}

It would not match this code:
var heading = amount + 'px';

I noticed this in the jQuery course and worked around it by using placeholder variables and constraints to check the value.

It's possible this was a regression - I noticed issues in the Cat-stache challenge starting around August 18th that were suddenly to do it not matching the other quotes.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the pattern in the webpage environment and inspect how StructuredJS tests compare single- and double-quoted strings. Check the jQuery course and Cat-stache challenge examples for the reported regression. Done means equivalent quote styles match consistently, with regression coverage for both forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.