1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-10 23:23:49 +00:00
Files
musix-oss/node_modules/ref/test/char.js
MatteZ02 50b9bed483 Updated
2019-10-10 16:43:04 +03:00

18 lines
382 B
JavaScript

var assert = require('assert')
var ref = require('../')
describe('char', function () {
it('should accept a JS String, and write the first char\'s code', function () {
var val = 'a'
var buf = ref.alloc('char', val)
assert.strictEqual(val.charCodeAt(0), buf.deref())
buf = ref.alloc('uchar', val)
assert.strictEqual(val.charCodeAt(0), buf.deref())
})
})