Added tests for new datatypes

This commit is contained in:
Matt Bell 2013-07-03 01:00:26 -07:00 committed by Xabier de Zuazo
parent e46a98a5a5
commit 1df9f9071f
2 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,27 @@
generator-settings=
allow-nether=true
level-name=world
enable-query=false
allow-flight=false
server-port=25565
level-type=DEFAULT
enable-rcon=false
level-seed=
server-ip=
max-build-height=256
spawn-npcs=true
white-list=false
spawn-animals=true
snooper-enabled=true
hardcore=false
texture-pack=
online-mode=true
pvp=true
difficulty=1
gamemode=0
max-players=120
spawn-monsters=true
generate-structures=true
view-distance=10
spawn-protection=16
motd=test1234

View file

@ -72,6 +72,7 @@ var values = {
nbtData: new Buffer(0), nbtData: new Buffer(0),
}], }],
'stringArray': ['hello', 'dude'], 'stringArray': ['hello', 'dude'],
'propertyArray': [{ key: 'generic.maxHealth', value: 1.5 }],
'mapChunkBulk': { 'mapChunkBulk': {
skyLightSent: true, skyLightSent: true,
compressedChunkData: new Buffer(1234), compressedChunkData: new Buffer(1234),
@ -99,7 +100,7 @@ var values = {
'intArray8': [1, 2, 3, 4], 'intArray8': [1, 2, 3, 4],
'intVector': {x: 1, y: 2, z: 3}, 'intVector': {x: 1, y: 2, z: 3},
'byteVector': {x: 1, y: 2, z: 3}, 'byteVector': {x: 1, y: 2, z: 3},
'byteVectorArray': [{x: 1, y: 2, z: 3}], 'byteVectorArray': [{x: 1, y: 2, z: 3}]
}; };
describe("packets", function() { describe("packets", function() {