Skip to content

Commit

Permalink
Merge pull request #55 from cytrowski/improvement/better-suggestions
Browse files Browse the repository at this point in the history
Display more details in splice example
  • Loading branch information
liammclennan committed Sep 28, 2016
2 parents e524f7a + 63a31e9 commit e972a23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 3 additions & 4 deletions jskoans.htm
@@ -1,5 +1,5 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="support/jquery-1.4.1.js"></script>
Expand All @@ -26,8 +26,7 @@
<script type="text/javascript" src="topics/about_functions_and_closure.js"></script>
<script type="text/javascript" src="topics/about_this.js"></script>
<script type="text/javascript" src="topics/about_scope.js"></script>
<script type="text/javascript" src="topics/about_regular_expressions.js"></script>

<script type="text/javascript" src="topics/about_regular_expressions.js"></script>
</head>
<body>
<h1 id="qunit-header">JavaScript Koans</h1>
Expand Down
6 changes: 4 additions & 2 deletions topics/about_arrays.js
Expand Up @@ -19,8 +19,10 @@ test("length", function() {
test("splice", function() {
var daysOfWeek = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
var workingWeek = daysOfWeek.splice(__, __);
ok(workingWeek.equalTo([__]), 'what is the value of workingWeek?');
ok(daysOfWeek.equalTo([__]), 'what is the value of daysOfWeek?');
var weekend = daysOfWeek;

deepEqual(workingWeek, ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'], 'what is the value of workingWeek?');
deepEqual(weekend, ['Saturday', 'Sunday'], 'what is the value of weekend?');
});

test("stack methods", function() {
Expand Down

0 comments on commit e972a23

Please sign in to comment.