19 lines
645 B
Plaintext
19 lines
645 B
Plaintext
var text = use('text');
|
|
var jswota = use('jswota');
|
|
|
|
log.console("Testing jswota headers:");
|
|
|
|
log.console("INT header:", text(jswota.INT, 'b'));
|
|
log.console("FP header:", text(jswota.FP, 'b'));
|
|
log.console("ARRAY header:", text(jswota.ARRAY, 'b'));
|
|
log.console("RECORD header:", text(jswota.RECORD, 'b'));
|
|
log.console("BLOB header:", text(jswota.BLOB, 'b'));
|
|
log.console("TEXT header:", text(jswota.TEXT, 'b'));
|
|
log.console("SYMBOL header:", text(jswota.SYMBOL, 'b'));
|
|
|
|
log.console("4.25:" ,text(jswota.encode(4.25),'b'));
|
|
log.console("true:", text(jswota.encode(true),'b'))
|
|
log.console("record:", text(jswota.encode({a:5,b:7}),'b'))
|
|
|
|
$_.stop()
|