Revision dd3f71885bd5039f7ba6f357ac2a43fc510ee23f authored by Mike Pennisi on 23 December 2017, 00:01:51 UTC, committed by jgraham on 23 April 2018, 17:11:42 UTC
1 parent 18ee2b4
Raw File
constants.js
function testConstants(objects, constants, msg) {
  objects.forEach(function(arr) {
    var o = arr[0], desc = arr[1];
    test(function() {
      constants.forEach(function(d) {
        assert_true(d[0] in o, "Object " + o + " doesn't have " + d[0])
        assert_equals(o[d[0]], d[1], "Object " + o + " value for " + d[0] + " is wrong")
      })
    }, "Constants for " + msg + " on " + desc + ".")
  })
}
back to top