mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-19 14:31:17 +00:00
improve assertPosEqual error message, fix #155
This commit is contained in:
parent
71a85c0f48
commit
f3a543dffc
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ var mineflayer = require("mineflayer");
|
|||
var assert = require('chai').assert;
|
||||
var Vec3 = require('vec3').Vec3;
|
||||
|
||||
function assertPosEqual(pos1,pos2) {
|
||||
assert.isBelow(pos1.distanceTo(pos2),0.1);
|
||||
function assertPosEqual(actual,expected) {
|
||||
assert.isBelow(actual.distanceTo(expected),0.1,"expected: "+expected+", actual: "+actual+"\n");
|
||||
}
|
||||
var once = require('event-promise');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue