|
|
|
@ -63,8 +63,8 @@ beforeEach(function() {
|
|
|
|
|
this.actual(ast);
|
|
|
|
|
|
|
|
|
|
this.message = function() {
|
|
|
|
|
return "Expected the pass to report an error"
|
|
|
|
|
+ (details ? " with details " + jasmine.pp(details) : "") + ", "
|
|
|
|
|
return "Expected the pass to report an error "
|
|
|
|
|
+ (details ? "with details " + jasmine.pp(details) + " ": "")
|
|
|
|
|
+ "for grammar " + jasmine.pp(grammar) + ", "
|
|
|
|
|
+ "but it didn't.";
|
|
|
|
|
};
|
|
|
|
@ -79,7 +79,7 @@ beforeEach(function() {
|
|
|
|
|
|
|
|
|
|
if (this.isNot) {
|
|
|
|
|
this.message = function() {
|
|
|
|
|
return "Expected the pass not to report an error"
|
|
|
|
|
return "Expected the pass not to report an error "
|
|
|
|
|
+ "for grammar " + jasmine.pp(grammar) + ", "
|
|
|
|
|
+ "but it did.";
|
|
|
|
|
};
|
|
|
|
@ -89,8 +89,8 @@ beforeEach(function() {
|
|
|
|
|
if (details.hasOwnProperty(key)) {
|
|
|
|
|
if (!this.env.equals_(e[key], details[key])) {
|
|
|
|
|
this.message = function() {
|
|
|
|
|
return "Expected the pass to report an error"
|
|
|
|
|
+ (details ? " with details " + jasmine.pp(details) : "") + ", "
|
|
|
|
|
return "Expected the pass to report an error "
|
|
|
|
|
+ "with details " + jasmine.pp(details) + " "
|
|
|
|
|
+ "for grammar " + jasmine.pp(grammar) + ", "
|
|
|
|
|
+ "but " + jasmine.pp(key) + " "
|
|
|
|
|
+ "is " + jasmine.pp(e[key]) + ".";
|
|
|
|
|