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

Test case bug in Concatenating Strings with Plus Operator waypoint #5583

Closed
nathan-q opened this issue Dec 30, 2015 · 5 comments
Closed

Test case bug in Concatenating Strings with Plus Operator waypoint #5583

nathan-q opened this issue Dec 30, 2015 · 5 comments

Comments

@nathan-q
Copy link

In the waypoint, a solution with single quotes returns an error.

screenshot from 2015-12-30 13 01 16

The same answer with double quotes returns a correct submission.

screenshot from 2015-12-30 13 01 16

The code for the waypoint currently:

"solutions": [
"var ourStr = "I come first. " + "I come second.";\nvar myStr = "This is the start. " + "This is the end.";"

Maybe a solution:

"solutions": [
"var ourStr = "I come first. " + "I come second.";\nvar myStr = "This is the start. " + "This is the end.";\nvar myStr = 'This is the start. ' + 'This is the end';\nvar myStr = "This is the start. " + 'This is the end';\nvar myStr = 'This is the start. ' + "This is the end";"

@nathan-q
Copy link
Author

Correct screen shot for the double quote case:

screenshot from 2015-12-30 13 01 55

@ltegman ltegman added help wanted Open for all. You do not need permission to work on these. confirmed first timers only Open for anyone doing contributions for first time. You do not need permission to work on these. labels Dec 30, 2015
@fdolzanes1
Copy link

var myStr = "This is the start." + " This is the end.";

@ghost ghost removed help wanted Open for all. You do not need permission to work on these. first timers only Open for anyone doing contributions for first time. You do not need permission to work on these. labels May 10, 2016
@IshemaJohnRobert
Copy link

tnx morefdolzane1

@meizaifeng
Copy link

meizaifeng commented Apr 17, 2017

removed solution by mod

@LogicBlows
Copy link

"This is the start."+" "+ "This is the end.";

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

No branches or pull requests

7 participants