Skip to content

Commit

Permalink
Fix formatting of literal.t.js.
Browse files Browse the repository at this point in the history
Closes #550.
  • Loading branch information
flatheadmill committed Jul 17, 2020
1 parent 9e00531 commit df87044
Showing 1 changed file with 49 additions and 59 deletions.
108 changes: 49 additions & 59 deletions test/language/literal.t.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,71 +7,61 @@ require('proof')(2, okay => {
after: [ 2, [ 2, '3' ]],
}, 8 ]
}
}),
[{
type: 'structure',
vivify: 'object',
dotted: '',
fixed: true,
bits: 8,
fields: [
{
type: 'integer',
}), [{
type: 'structure',
vivify: 'object',
dotted: '.header',
dotted: '',
fixed: true,
bits: 8,
endianness: 'big',
compliment: false,
name: 'header',
fields: [
{
type: 'literal',
dotted: '.before',
vivify: 'descend',
fields: [{
type: 'integer',
vivify: 'object',
dotted: '.header',
fixed: true,
bits: 4,
before: { repeat: 1, value: '3', bits: 2 },
fields: [
{
type: 'integer',
vivify: 'number',
dotted: '',
bits: 8,
endianness: 'big',
compliment: false,
name: 'header',
fields: [{
type: 'literal',
dotted: '.before',
vivify: 'descend',
fixed: true,
bits: 2,
endianness: 'big',
compliment: false
}
],
after: { repeat: 0, value: '', bits: 0 },
name: 'before'
},
{
type: 'literal',
dotted: '.after',
vivify: 'descend',
fixed: true,
bits: 4,
before: { repeat: 0, value: '', bits: 0 },
fields: [
{
type: 'integer',
vivify: 'number',
dotted: '',
bits: 4,
before: { repeat: 1, value: '3', bits: 2 },
fields: [{
type: 'integer',
vivify: 'number',
dotted: '',
fixed: true,
bits: 2,
endianness: 'big',
compliment: false
}],
after: { repeat: 0, value: '', bits: 0 },
name: 'before'
}, {
type: 'literal',
dotted: '.after',
vivify: 'descend',
fixed: true,
bits: 2,
endianness: 'big',
compliment: false
}
],
after: { repeat: 1, value: '3', bits: 2 },
name: 'after'
}
]
}
],
name: 'packet'
}], 'literal packed')
bits: 4,
before: { repeat: 0, value: '', bits: 0 },
fields: [{
type: 'integer',
vivify: 'number',
dotted: '',
fixed: true,
bits: 2,
endianness: 'big',
compliment: false
}],
after: { repeat: 1, value: '3', bits: 2 },
name: 'after'
}]
}],
name: 'packet'
}], 'literal packed')
okay(language({ packet: { value: [ '0faded', 16, 'facade' ] } }), [{
type: 'structure',
vivify: 'object',
Expand Down

0 comments on commit df87044

Please sign in to comment.