Last active
March 15, 2018 04:13
-
-
Save buttersnipps/be6961429e8091b8e4af6c78a3d981a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x = [1,2,3,4,5]; | |
//reverse the array | |
var reverse = x.reverse(); | |
//Test 1 | |
assert.sameValue(reverse, x, "value is not equal"); | |
//Test 2 | |
assert.sameValue(typeof reverse, typeof x, "type not equal"); | |
//Test 3 | |
assert.sameValue(x[2], 3, "msg for value not equal"); | |
//test 4 | |
assert(x[3] !== 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment