We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a5dc87 commit 11a322dCopy full SHA for 11a322d
test/load.js
@@ -101,4 +101,12 @@ describe('supportFeature', () => {
101
assert.equal(mcData.supportFeature('fakeRecipeSchema'), false)
102
assert(mcData.blockMappings.length > 0)
103
})
104
+
105
+ it('compares pc 1.7.10 correctly', function () {
106
+ const mcData = require('minecraft-data')('1.7.10')
107
+ assert.strictEqual(mcData.isNewerOrEqualTo('1.7.9'), true)
108
+ assert.strictEqual(mcData.isOlderThan('1.8'), true)
109
+ assert.strictEqual(mcData.isOlderThan('1.7.10'), false)
110
+ assert.strictEqual(mcData.isNewerOrEqualTo('1.7.10'), true)
111
+ })
112
0 commit comments