Skip to content

Commit 010ba4e

Browse files
committed
Reverted files to default state
1 parent e5d7996 commit 010ba4e

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

topics/about_asserts.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ $(document).ready(function(){
44
module("About Asserts (topics/about_asserts.js)");
55

66
test("ok", function() {
7-
ok(true, 'what will satisfy the ok assertion?');
7+
ok(false, 'what will satisfy the ok assertion?');
88
});
99

1010
test("not", function() {
11-
not(false, 'what is a false value?');
11+
not(__, 'what is a false value?');
1212
});
1313

1414
test("equals", function() {
15-
equals(1+1, 2, 'what will satisfy the equals assertion?');
15+
equals(1+1, __, 'what will satisfy the equals assertion?');
1616
});
1717

1818
});

topics/about_assignment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ $(document).ready(function(){
44
module("About Assignment (topics/about_assignment.js)");
55

66
test("local variables", function() {
7-
var temp = 1; //Using var sets scope to local, interesting.
7+
var temp = __;
88
equals(1, temp, "Assign a value to the variable temp");
99
});
1010

1111
test("global variables", function() {
1212
temp = 1;
13-
equals(temp, window.temp, 'global variables are assigned to the window object');
13+
equals(temp, window.__, 'global variables are assigned to the window object');
1414
});
1515

1616
});

topics/about_control_structures.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ $(document).ready(function(){
2828
var result = "";
2929
// for in enumerates the property names of an object
3030
for (property_name in person) {
31-
result += property_name;
31+
result = result + property_name;
3232
};
3333
equals(result, __, 'what is the value of result?');
3434
});
3535

3636
test("ternary operator", function() {
3737
var fruit = true ? "apple" : "orange";
38-
equals(fruit, __, 'what is the value of fruit?');
38+
equals(fruit, "apple", 'what is the value of fruit?');
3939

4040
fruit = false ? "apple" : "orange";
4141
equals(fruit, __, 'now what is the value of fruit?');

topics/about_equality.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ $(document).ready(function(){
44
module("About Equality (topics/about_equality.js)");
55

66
test("numeric equality", function() {
7-
equals(3 + 4, 7, 'hmmmm?');
7+
equals(3 + __, 7, 'hmmmm?');
88
});
99

1010
test("string equality", function() {
11-
equals("3" + "7", "37", "concatenate the strings");
11+
equals("3" + __, "37", "concatenate the strings");
1212
});
1313

1414
test("equality without type coercion", function() {
15-
ok(3 === 3, 'what is exactly equal to 3?');
15+
ok(3 === __, 'what is exactly equal to 3?');
1616
});
1717

1818
test("equality with type coercion", function() {
19-
ok(3 == "3", 'what string is equal to 3, with type coercion?');
19+
ok(3 == __, 'what string is equal to 3, with type coercion?');
2020
});
2121

2222
test("string literals", function() {
23-
equals("frankenstein", 'frankenstein', "quote types are interchangable, but must match.");
23+
equals("frankenstein", __, "quote types are interchangable, but must match.");
2424
});
2525

2626
});

topics/about_truthyness.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ $(document).ready(function(){
44
module("About Truthyness (topics/about_truthyness.js)");
55

66
test("truthyness of positive numbers", function() {
7-
var oneIsTrue = 1 ? true : false; //Why use ternary here? equals(1, true, 'is one true?');
8-
equals(oneIsTrue, true, 'is one true?');
7+
var oneIsTrue = 1 ? true : false;
8+
equals(oneIsTrue, __, 'is one true?');
99
});
1010

1111
test("truthyness of negative numbers", function() {
1212
var negativeOneIsTrue = -1 ? true : false;
13-
equals(negativeOneIsTrue, true, 'is -1 true?');
13+
equals(negativeOneIsTrue, __, 'is -1 true?');
1414
});
1515

1616
test("truthyness of zero", function() {
1717
var zeroIsTrue = 0 ? true : false;
18-
equals(zeroIsTrue, false, 'is 0 true?');
18+
equals(zeroIsTrue, __, 'is 0 true?');
1919
});
2020

2121
test("truthyness of null", function() {
2222
var nullIsTrue = null ? true : false;
23-
equals(nullIsTrue, false);
23+
equals(nullIsTrue, __);
2424
});
2525

2626
});

0 commit comments

Comments
 (0)