nbtfile 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/VERSION +1 -1
- data/lib/nbtfile.rb +1 -1
- data/spec/nbtfile_spec.rb +4 -4
- metadata +1 -1
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/nbtfile.rb
CHANGED
data/spec/nbtfile_spec.rb
CHANGED
@@ -173,12 +173,12 @@ describe "NBTFile::load" do
|
|
173
173
|
end
|
174
174
|
end
|
175
175
|
|
176
|
-
nbtfile_load "should generate a top-level
|
176
|
+
nbtfile_load "should generate a top-level pair",
|
177
177
|
[Tokens::TAG_Compound["foo", nil],
|
178
178
|
Tokens::TAG_Byte["a", 19],
|
179
179
|
Tokens::TAG_Byte["b", 23],
|
180
180
|
Tokens::TAG_End[nil, nil]],
|
181
|
-
|
181
|
+
["foo", {"a" => 19, "b" => 23}]
|
182
182
|
|
183
183
|
nbtfile_load "should map compound structures to hashes",
|
184
184
|
[Tokens::TAG_Compound["foo", nil],
|
@@ -187,7 +187,7 @@ describe "NBTFile::load" do
|
|
187
187
|
Tokens::TAG_Byte["b", 56],
|
188
188
|
Tokens::TAG_End[nil, nil],
|
189
189
|
Tokens::TAG_End[nil, nil]],
|
190
|
-
|
190
|
+
["foo", {"bar" => {"a" => 123, "b" => 56}}]
|
191
191
|
|
192
192
|
nbtfile_load "should map lists to arrays",
|
193
193
|
[Tokens::TAG_Compound["foo", nil],
|
@@ -196,7 +196,7 @@ describe "NBTFile::load" do
|
|
196
196
|
Tokens::TAG_Byte[1, 45],
|
197
197
|
Tokens::TAG_End[2, nil],
|
198
198
|
Tokens::TAG_End["", nil]],
|
199
|
-
|
199
|
+
["foo", {"bar" => [32, 45]}]
|
200
200
|
end
|
201
201
|
|
202
202
|
describe NBTFile::Reader do
|