Files
cell/tests/jswota.ce
2025-06-08 08:35:12 -05:00

21 lines
777 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_HEADER, '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("NULL_SYMBOL:", text(jswota.NULL_SYMBOL, 'b'));
log.console("FALSE_SYMBOL:", text(jswota.FALSE_SYMBOL, 'b'));
log.console("TRUE_SYMBOL:", text(jswota.TRUE_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()