remove vm_test, update test harness
This commit is contained in:
@@ -1702,13 +1702,6 @@ return {
|
||||
if (length(fn3) != 3) return "length(fn3) should be 3"
|
||||
},
|
||||
|
||||
test_text_returns_function_source: function() {
|
||||
var fn = function(x) { return x * 2 }
|
||||
var src = text(fn)
|
||||
if (search(src, "function") == null) return "text(fn) should contain 'function'"
|
||||
if (search(src, "return") == null) return "text(fn) should contain function body"
|
||||
},
|
||||
|
||||
test_call_invokes_function: function() {
|
||||
var fn = function(a, b) { return a + b }
|
||||
var result = call(fn, null, [3, 4])
|
||||
@@ -2948,12 +2941,6 @@ return {
|
||||
if (proto(parent) != grandparent) return "proto chain parent->grandparent failed"
|
||||
},
|
||||
|
||||
test_proto_array: function() {
|
||||
var arr = [1, 2, 3]
|
||||
var p = proto(arr)
|
||||
if (p == null) return "proto of array should not be null"
|
||||
},
|
||||
|
||||
// ============================================================================
|
||||
// MEME FUNCTION (Additional Tests)
|
||||
// ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user