Skip to content

Commit 959d7ec

Browse files
committed
all done
1 parent f774568 commit 959d7ec

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.c9/metadata/tab0

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"filter":false,"title":"bash - \"a121watts-javascript-koans-970224\"","tooltip":"bash - \"a121watts-javascript-koans-970224\"","undoManager":{"mark":0,"position":-1,"stack":[]},"terminal":{"id":"a121watts@javascript-koans_304","cwd":"","width":1648,"height":127,"scrollTop":164},"timestamp":1409592969583,"hash":"da39a3ee5e6b4b0d3255bfef95601890afd80709"}
1+
{"filter":false,"title":"bash - \"a121watts-javascript-koans-970224\"","tooltip":"bash - \"a121watts-javascript-koans-970224\"","undoManager":{"mark":0,"position":-1,"stack":[]},"terminal":{"id":"a121watts@javascript-koans_304","cwd":"","width":1648,"height":127,"scrollTop":1139},"timestamp":1409592969583,"hash":"da39a3ee5e6b4b0d3255bfef95601890afd80709"}

.c9/metadata/workspace/topics/about_regular_expressions.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

topics/about_regular_expressions.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ module("About Regular Expressions (topics/about_regular_expressions.js)");
44

55
test("test", function() {
66
var containsSelect = /select/.test(" select * from users ");
7-
equal(__, containsSelect, 'does the string provided contain "select"?');
7+
equal(true, containsSelect, 'does the string provided contain "select"?');
88
});
99

1010
test("match", function() {
1111
var matches = "what if 6 turned out to be 9?".match(/(\d)/g);
12-
ok(matches.equalTo([__, __]), 'what is the value of matches?');
12+
ok(matches.equalTo(["6", "9"]), 'what is the value of matches?');
1313
});
1414

1515
test("replace", function() {
1616
var pie = "apple pie".replace("apple", "strawberry");
17-
equal(__, pie, 'what is the value of pie?');
17+
equal("strawberry pie", pie, 'what is the value of pie?');
1818

19-
pie = "what if 6 turned out to be 9?".replace(/\d/g, function(number) { // the second parameter can be a string or a function
19+
pie = "what if 6 turned out to be 9?".replace(/\d/g, function(key) { // the second parameter can be a string or a function
2020
var map = {'6': 'six','9': 'nine'};
21-
return map[number];
21+
return map[key];
2222
});
23-
equal(__, pie, 'what is the value of pie?');
23+
equal("what if six turned out to be nine?", pie, 'what is the value of pie?');
2424
});
2525

2626
// THE END

0 commit comments

Comments
 (0)