(object, class_string, description)
| 1446 | expose(assert_regexp_match, "assert_regexp_match"); |
| 1447 | |
| 1448 | function assert_class_string(object, class_string, description) { |
| 1449 | var actual = {}.toString.call(object); |
| 1450 | var expected = "[object " + class_string + "]"; |
| 1451 | assert(same_value(actual, expected), "assert_class_string", description, |
| 1452 | "expected ${expected} but got ${actual}", |
| 1453 | {expected:expected, actual:actual}); |
| 1454 | } |
| 1455 | expose(assert_class_string, "assert_class_string"); |
| 1456 | |
| 1457 |
nothing calls this directly
no test coverage detected