From 8b765765a441dae53cda60adee7ed79038c5258e Mon Sep 17 00:00:00 2001 From: Petr Pucil Date: Sun, 29 Sep 2024 19:09:10 +0200 Subject: [PATCH] JavaScript: rename the `{Format}` parameter to `{Format}_` ... also in the remaining specs that haven't yet been regenerated in the previous commit. This is to indicate that the meaning of this parameter changed in the previous commit because of the change to `helpers/javascript/testHelper.js`. Previously, the test body received the parser constructor function directly, but now it only receives the wrapper object that contains the constructor under the name of the format as a key. Appending an underscore `_` is our own convention to indicate this, see https://github.com/kaitai-io/kaitai_struct_compiler/blob/cc4e73b89bf120e57a6577dd70f72a4abd3d25e8/shared/src/main/scala/io/kaitai/struct/languages/JavaScriptCompiler.scala#L662-L666 https://github.com/kaitai-io/kaitai_struct/issues/1074 is related. --- spec/javascript/test_bcd_user_type_be.js | 2 +- spec/javascript/test_bcd_user_type_le.js | 2 +- spec/javascript/test_bits_byte_aligned.js | 2 +- spec/javascript/test_bits_seq_endian_combo.js | 2 +- spec/javascript/test_bits_shift_by_b32_le.js | 2 +- spec/javascript/test_bits_shift_by_b64_le.js | 2 +- spec/javascript/test_bits_signed_res_b32_be.js | 2 +- spec/javascript/test_bits_signed_res_b32_le.js | 2 +- spec/javascript/test_bits_signed_shift_b32_le.js | 2 +- spec/javascript/test_bits_signed_shift_b64_le.js | 2 +- spec/javascript/test_bits_simple.js | 2 +- spec/javascript/test_bits_simple_le.js | 2 +- spec/javascript/test_bits_unaligned_b32_be.js | 2 +- spec/javascript/test_bits_unaligned_b32_le.js | 2 +- spec/javascript/test_bits_unaligned_b64_be.js | 2 +- spec/javascript/test_bits_unaligned_b64_le.js | 2 +- spec/javascript/test_buffered_struct.js | 2 +- spec/javascript/test_bytes_pad_term.js | 2 +- spec/javascript/test_cast_nested.js | 2 +- spec/javascript/test_cast_to_top.js | 2 +- spec/javascript/test_combine_bool.js | 2 +- spec/javascript/test_combine_bytes.js | 2 +- spec/javascript/test_combine_str.js | 2 +- spec/javascript/test_debug_switch_user.js | 2 +- spec/javascript/test_default_big_endian.js | 2 +- spec/javascript/test_default_bit_endian_mod.js | 2 +- spec/javascript/test_default_endian_expr_inherited.js | 2 +- spec/javascript/test_default_endian_expr_is_be.js | 2 +- spec/javascript/test_default_endian_expr_is_le.js | 2 +- spec/javascript/test_default_endian_mod.js | 2 +- spec/javascript/test_docstrings.js | 2 +- spec/javascript/test_docstrings_docref.js | 2 +- spec/javascript/test_docstrings_docref_multi.js | 2 +- spec/javascript/test_enum_deep_literals.js | 2 +- spec/javascript/test_expr_0.js | 2 +- spec/javascript/test_expr_1.js | 2 +- spec/javascript/test_expr_2.js | 2 +- spec/javascript/test_expr_3.js | 2 +- spec/javascript/test_expr_array.js | 2 +- spec/javascript/test_expr_bytes_cmp.js | 2 +- spec/javascript/test_expr_bytes_non_literal.js | 2 +- spec/javascript/test_expr_bytes_ops.js | 2 +- spec/javascript/test_expr_calc_array_ops.js | 2 +- spec/javascript/test_expr_fstring_0.js | 2 +- spec/javascript/test_expr_if_int_ops.js | 2 +- spec/javascript/test_expr_int_div.js | 2 +- spec/javascript/test_expr_io_eof.js | 2 +- spec/javascript/test_expr_io_pos.js | 2 +- spec/javascript/test_expr_io_ternary.js | 2 +- spec/javascript/test_expr_mod.js | 2 +- spec/javascript/test_expr_ops_parens.js | 2 +- spec/javascript/test_expr_sizeof_type_0.js | 2 +- spec/javascript/test_expr_sizeof_type_1.js | 2 +- spec/javascript/test_expr_sizeof_value_0.js | 2 +- spec/javascript/test_expr_sizeof_value_sized.js | 2 +- spec/javascript/test_expr_str_encodings.js | 2 +- spec/javascript/test_expr_str_ops.js | 2 +- spec/javascript/test_expr_to_i_trailing.js | 2 +- spec/javascript/test_fixed_contents.js | 2 +- spec/javascript/test_fixed_struct.js | 2 +- spec/javascript/test_float_to_i.js | 2 +- spec/javascript/test_floating_points.js | 2 +- spec/javascript/test_hello_world.js | 2 +- spec/javascript/test_if_instances.js | 2 +- spec/javascript/test_if_struct.js | 2 +- spec/javascript/test_if_values.js | 2 +- spec/javascript/test_imports0.js | 2 +- spec/javascript/test_imports_abs.js | 2 +- spec/javascript/test_imports_abs_abs.js | 2 +- spec/javascript/test_imports_abs_rel.js | 2 +- spec/javascript/test_imports_cast_to_imported.js | 2 +- spec/javascript/test_imports_cast_to_imported2.js | 2 +- spec/javascript/test_imports_circular_a.js | 2 +- .../test_imports_params_def_array_usertype_imported.js | 2 +- spec/javascript/test_imports_params_def_usertype_imported.js | 2 +- spec/javascript/test_imports_rel_1.js | 2 +- spec/javascript/test_index_sizes.js | 2 +- spec/javascript/test_index_to_param_eos.js | 2 +- spec/javascript/test_index_to_param_expr.js | 2 +- spec/javascript/test_index_to_param_until.js | 2 +- spec/javascript/test_instance_io_user.js | 2 +- spec/javascript/test_instance_std.js | 2 +- spec/javascript/test_instance_std_array.js | 2 +- spec/javascript/test_instance_user_array.js | 2 +- spec/javascript/test_integers.js | 2 +- spec/javascript/test_integers_double_overflow.js | 2 +- spec/javascript/test_integers_min_max.js | 2 +- spec/javascript/test_io_local_var.js | 2 +- spec/javascript/test_js_signed_right_shift.js | 2 +- spec/javascript/test_meta_tags.js | 2 +- spec/javascript/test_meta_xref.js | 2 +- spec/javascript/test_multiple_use.js | 2 +- spec/javascript/test_nav_parent.js | 2 +- spec/javascript/test_nav_parent2.js | 2 +- spec/javascript/test_nav_parent3.js | 2 +- spec/javascript/test_nav_parent_false.js | 2 +- spec/javascript/test_nav_parent_false2.js | 2 +- spec/javascript/test_nav_parent_override.js | 2 +- spec/javascript/test_nav_parent_recursive.js | 2 +- spec/javascript/test_nav_parent_switch.js | 2 +- spec/javascript/test_nav_parent_switch_cast.js | 2 +- spec/javascript/test_nav_parent_vs_value_inst.js | 2 +- spec/javascript/test_nav_root.js | 2 +- spec/javascript/test_nav_root_recursive.js | 2 +- spec/javascript/test_nested_same_name.js | 2 +- spec/javascript/test_nested_same_name2.js | 2 +- spec/javascript/test_nested_type_param.js | 2 +- spec/javascript/test_nested_types.js | 2 +- spec/javascript/test_nested_types2.js | 2 +- spec/javascript/test_nested_types3.js | 2 +- spec/javascript/test_nested_types_import.js | 2 +- spec/javascript/test_non_standard.js | 2 +- spec/javascript/test_opaque_external_type_02_parent.js | 2 +- spec/javascript/test_optional_id.js | 2 +- spec/javascript/test_params_call.js | 2 +- spec/javascript/test_params_call_extra_parens.js | 2 +- spec/javascript/test_params_pass_array_int.js | 2 +- spec/javascript/test_params_pass_array_str.js | 2 +- spec/javascript/test_params_pass_array_struct.js | 2 +- spec/javascript/test_params_pass_array_usertype.js | 2 +- spec/javascript/test_params_pass_bool.js | 2 +- spec/javascript/test_params_pass_struct.js | 2 +- spec/javascript/test_params_pass_usertype.js | 2 +- spec/javascript/test_position_abs.js | 2 +- spec/javascript/test_position_in_seq.js | 2 +- spec/javascript/test_position_to_end.js | 2 +- spec/javascript/test_process_coerce_bytes.js | 2 +- spec/javascript/test_process_coerce_switch.js | 2 +- spec/javascript/test_process_coerce_usertype1.js | 2 +- spec/javascript/test_process_coerce_usertype2.js | 2 +- spec/javascript/test_process_custom.js | 2 +- spec/javascript/test_process_custom_no_args.js | 2 +- spec/javascript/test_process_repeat_bytes.js | 2 +- spec/javascript/test_process_repeat_usertype.js | 2 +- spec/javascript/test_process_rotate.js | 2 +- spec/javascript/test_process_to_user.js | 2 +- spec/javascript/test_process_xor4_const.js | 2 +- spec/javascript/test_process_xor4_value.js | 2 +- spec/javascript/test_process_xor_const.js | 2 +- spec/javascript/test_process_xor_value.js | 2 +- spec/javascript/test_recursive_one.js | 2 +- spec/javascript/test_repeat_eos_bit.js | 2 +- spec/javascript/test_repeat_eos_struct.js | 2 +- spec/javascript/test_repeat_eos_u4.js | 2 +- spec/javascript/test_repeat_n_struct.js | 2 +- spec/javascript/test_repeat_n_strz.js | 2 +- spec/javascript/test_repeat_n_strz_double.js | 2 +- spec/javascript/test_repeat_until_calc_array_type.js | 2 +- spec/javascript/test_repeat_until_complex.js | 2 +- spec/javascript/test_repeat_until_s4.js | 2 +- spec/javascript/test_repeat_until_sized.js | 2 +- spec/javascript/test_str_encodings.js | 2 +- spec/javascript/test_str_encodings_default.js | 2 +- spec/javascript/test_str_encodings_escaping_enc.js | 2 +- spec/javascript/test_str_encodings_escaping_to_s.js | 2 +- spec/javascript/test_str_encodings_utf16.js | 2 +- spec/javascript/test_str_eos.js | 2 +- spec/javascript/test_str_literals.js | 2 +- spec/javascript/test_str_literals2.js | 2 +- spec/javascript/test_str_literals_latin1.js | 2 +- spec/javascript/test_str_pad_term.js | 2 +- spec/javascript/test_str_pad_term_empty.js | 2 +- spec/javascript/test_str_pad_term_utf16.js | 2 +- spec/javascript/test_switch_bytearray.js | 2 +- spec/javascript/test_switch_else_only.js | 2 +- spec/javascript/test_switch_integers.js | 2 +- spec/javascript/test_switch_integers2.js | 2 +- spec/javascript/test_switch_manual_enum_invalid.js | 2 +- spec/javascript/test_switch_manual_enum_invalid_else.js | 2 +- spec/javascript/test_switch_manual_int.js | 2 +- spec/javascript/test_switch_manual_int_else.js | 2 +- spec/javascript/test_switch_manual_int_size.js | 2 +- spec/javascript/test_switch_manual_int_size_else.js | 2 +- spec/javascript/test_switch_manual_int_size_eos.js | 2 +- spec/javascript/test_switch_manual_str.js | 2 +- spec/javascript/test_switch_manual_str_else.js | 2 +- spec/javascript/test_switch_multi_bool_ops.js | 2 +- spec/javascript/test_switch_repeat_expr.js | 2 +- spec/javascript/test_switch_repeat_expr_invalid.js | 2 +- spec/javascript/test_term_bytes.js | 2 +- spec/javascript/test_term_strz.js | 2 +- spec/javascript/test_term_strz_utf16_v1.js | 2 +- spec/javascript/test_term_strz_utf16_v2.js | 2 +- spec/javascript/test_term_strz_utf16_v3.js | 2 +- spec/javascript/test_term_strz_utf16_v4.js | 2 +- spec/javascript/test_term_u1_val.js | 2 +- spec/javascript/test_type_int_unary_op.js | 2 +- spec/javascript/test_type_ternary.js | 2 +- spec/javascript/test_type_ternary_2nd_falsy.js | 2 +- spec/javascript/test_user_type.js | 2 +- spec/javascript/test_valid_eq_str_encodings.js | 2 +- spec/javascript/test_valid_long.js | 2 +- spec/javascript/test_valid_not_parsed_if.js | 2 +- spec/javascript/test_valid_optional_id.js | 2 +- spec/javascript/test_valid_short.js | 2 +- spec/javascript/test_valid_switch.js | 2 +- spec/javascript/test_yaml_ints.js | 2 +- spec/javascript/test_zlib_surrounded.js | 2 +- spec/javascript/test_zlib_with_header_78.js | 2 +- 199 files changed, 199 insertions(+), 199 deletions(-) diff --git a/spec/javascript/test_bcd_user_type_be.js b/spec/javascript/test_bcd_user_type_be.js index 1e61f3255..de4ced1bc 100644 --- a/spec/javascript/test_bcd_user_type_be.js +++ b/spec/javascript/test_bcd_user_type_be.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BcdUserTypeBe', 'src/bcd_user_type_be.bin', function(r, BcdUserTypeBe) { +testHelper('BcdUserTypeBe', 'src/bcd_user_type_be.bin', function(r, BcdUserTypeBe_) { assert.strictEqual(r.ltr.asInt, 12345678); assert.strictEqual(r.ltr.asStr, "12345678"); assert.strictEqual(r.rtl.asInt, 87654321); diff --git a/spec/javascript/test_bcd_user_type_le.js b/spec/javascript/test_bcd_user_type_le.js index c8a29daa1..568e4da61 100644 --- a/spec/javascript/test_bcd_user_type_le.js +++ b/spec/javascript/test_bcd_user_type_le.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BcdUserTypeLe', 'src/bcd_user_type_le.bin', function(r, BcdUserTypeLe) { +testHelper('BcdUserTypeLe', 'src/bcd_user_type_le.bin', function(r, BcdUserTypeLe_) { assert.strictEqual(r.ltr.asInt, 12345678); assert.strictEqual(r.ltr.asStr, "12345678"); assert.strictEqual(r.rtl.asInt, 87654321); diff --git a/spec/javascript/test_bits_byte_aligned.js b/spec/javascript/test_bits_byte_aligned.js index 0865dc33d..a82f43686 100644 --- a/spec/javascript/test_bits_byte_aligned.js +++ b/spec/javascript/test_bits_byte_aligned.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('BitsByteAligned', 'src/fixed_struct.bin', function(r, BitsByteAligned) { +testHelper('BitsByteAligned', 'src/fixed_struct.bin', function(r, BitsByteAligned_) { assert.strictEqual(r.one, 20); assert.strictEqual(r.byte1, 65); assert.strictEqual(r.two, 2); diff --git a/spec/javascript/test_bits_seq_endian_combo.js b/spec/javascript/test_bits_seq_endian_combo.js index bb3fcec43..8bac7fe7c 100644 --- a/spec/javascript/test_bits_seq_endian_combo.js +++ b/spec/javascript/test_bits_seq_endian_combo.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsSeqEndianCombo', 'src/process_xor_4.bin', function(r, BitsSeqEndianCombo) { +testHelper('BitsSeqEndianCombo', 'src/process_xor_4.bin', function(r, BitsSeqEndianCombo_) { assert.strictEqual(r.be1, 59); assert.strictEqual(r.be2, 187); assert.strictEqual(r.le3, 163); diff --git a/spec/javascript/test_bits_shift_by_b32_le.js b/spec/javascript/test_bits_shift_by_b32_le.js index bb9145572..75d064227 100644 --- a/spec/javascript/test_bits_shift_by_b32_le.js +++ b/spec/javascript/test_bits_shift_by_b32_le.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsShiftByB32Le', 'src/bits_shift_by_b32_le.bin', function(r, BitsShiftByB32Le) { +testHelper('BitsShiftByB32Le', 'src/bits_shift_by_b32_le.bin', function(r, BitsShiftByB32Le_) { assert.strictEqual(r.a, 4294967295); assert.strictEqual(r.b, 0); }); diff --git a/spec/javascript/test_bits_shift_by_b64_le.js b/spec/javascript/test_bits_shift_by_b64_le.js index 9463e4054..621a9da6d 100644 --- a/spec/javascript/test_bits_shift_by_b64_le.js +++ b/spec/javascript/test_bits_shift_by_b64_le.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsShiftByB64Le', 'src/bits_shift_by_b64_le.bin', function(r, BitsShiftByB64Le) { +testHelper('BitsShiftByB64Le', 'src/bits_shift_by_b64_le.bin', function(r, BitsShiftByB64Le_) { assert.strictEqual(r.a, 18446744073709551615); assert.strictEqual(r.b, 0); }); diff --git a/spec/javascript/test_bits_signed_res_b32_be.js b/spec/javascript/test_bits_signed_res_b32_be.js index dca53e022..90b811bd3 100644 --- a/spec/javascript/test_bits_signed_res_b32_be.js +++ b/spec/javascript/test_bits_signed_res_b32_be.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsSignedResB32Be', 'src/bits_shift_by_b32_le.bin', function(r, BitsSignedResB32Be) { +testHelper('BitsSignedResB32Be', 'src/bits_shift_by_b32_le.bin', function(r, BitsSignedResB32Be_) { assert.strictEqual(r.a, 4294967295); }); diff --git a/spec/javascript/test_bits_signed_res_b32_le.js b/spec/javascript/test_bits_signed_res_b32_le.js index d161a8f92..b3699a82a 100644 --- a/spec/javascript/test_bits_signed_res_b32_le.js +++ b/spec/javascript/test_bits_signed_res_b32_le.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsSignedResB32Le', 'src/bits_shift_by_b32_le.bin', function(r, BitsSignedResB32Le) { +testHelper('BitsSignedResB32Le', 'src/bits_shift_by_b32_le.bin', function(r, BitsSignedResB32Le_) { assert.strictEqual(r.a, 4294967295); }); diff --git a/spec/javascript/test_bits_signed_shift_b32_le.js b/spec/javascript/test_bits_signed_shift_b32_le.js index d91b50a61..0a96cd3d9 100644 --- a/spec/javascript/test_bits_signed_shift_b32_le.js +++ b/spec/javascript/test_bits_signed_shift_b32_le.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsSignedShiftB32Le', 'src/bits_signed_shift_b32_le.bin', function(r, BitsSignedShiftB32Le) { +testHelper('BitsSignedShiftB32Le', 'src/bits_signed_shift_b32_le.bin', function(r, BitsSignedShiftB32Le_) { assert.strictEqual(r.a, 0); assert.strictEqual(r.b, 255); }); diff --git a/spec/javascript/test_bits_signed_shift_b64_le.js b/spec/javascript/test_bits_signed_shift_b64_le.js index 1e1e7b8ec..a14d5543a 100644 --- a/spec/javascript/test_bits_signed_shift_b64_le.js +++ b/spec/javascript/test_bits_signed_shift_b64_le.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsSignedShiftB64Le', 'src/bits_signed_shift_b64_le.bin', function(r, BitsSignedShiftB64Le) { +testHelper('BitsSignedShiftB64Le', 'src/bits_signed_shift_b64_le.bin', function(r, BitsSignedShiftB64Le_) { assert.strictEqual(r.a, 0); assert.strictEqual(r.b, 255); }); diff --git a/spec/javascript/test_bits_simple.js b/spec/javascript/test_bits_simple.js index 384e839d0..ec9de523a 100644 --- a/spec/javascript/test_bits_simple.js +++ b/spec/javascript/test_bits_simple.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsSimple', 'src/fixed_struct.bin', function(r, BitsSimple) { +testHelper('BitsSimple', 'src/fixed_struct.bin', function(r, BitsSimple_) { assert.strictEqual(r.byte1, 80); assert.strictEqual(r.byte2, 65); assert.strictEqual(r.bitsA, false); diff --git a/spec/javascript/test_bits_simple_le.js b/spec/javascript/test_bits_simple_le.js index 13814d5fb..a3b15022b 100644 --- a/spec/javascript/test_bits_simple_le.js +++ b/spec/javascript/test_bits_simple_le.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsSimpleLe', 'src/fixed_struct.bin', function(r, BitsSimpleLe) { +testHelper('BitsSimpleLe', 'src/fixed_struct.bin', function(r, BitsSimpleLe_) { assert.strictEqual(r.byte1, 80); assert.strictEqual(r.byte2, 65); assert.strictEqual(r.bitsA, true); diff --git a/spec/javascript/test_bits_unaligned_b32_be.js b/spec/javascript/test_bits_unaligned_b32_be.js index caa0d92cf..0c0e0e346 100644 --- a/spec/javascript/test_bits_unaligned_b32_be.js +++ b/spec/javascript/test_bits_unaligned_b32_be.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsUnalignedB32Be', 'src/process_xor_4.bin', function(r, BitsUnalignedB32Be) { +testHelper('BitsUnalignedB32Be', 'src/process_xor_4.bin', function(r, BitsUnalignedB32Be_) { assert.strictEqual(r.a, true); assert.strictEqual(r.b, 3648472617); assert.strictEqual(r.c, 10); diff --git a/spec/javascript/test_bits_unaligned_b32_le.js b/spec/javascript/test_bits_unaligned_b32_le.js index c4f929944..3ea03848f 100644 --- a/spec/javascript/test_bits_unaligned_b32_le.js +++ b/spec/javascript/test_bits_unaligned_b32_le.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsUnalignedB32Le', 'src/process_xor_4.bin', function(r, BitsUnalignedB32Le) { +testHelper('BitsUnalignedB32Le', 'src/process_xor_4.bin', function(r, BitsUnalignedB32Le_) { assert.strictEqual(r.a, false); assert.strictEqual(r.b, 173137398); assert.strictEqual(r.c, 69); diff --git a/spec/javascript/test_bits_unaligned_b64_be.js b/spec/javascript/test_bits_unaligned_b64_be.js index 346fc81a1..75e96ff14 100644 --- a/spec/javascript/test_bits_unaligned_b64_be.js +++ b/spec/javascript/test_bits_unaligned_b64_be.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsUnalignedB64Be', 'src/process_xor_4.bin', function(r, BitsUnalignedB64Be) { +testHelper('BitsUnalignedB64Be', 'src/process_xor_4.bin', function(r, BitsUnalignedB64Be_) { assert.strictEqual(r.a, true); assert.strictEqual(r.b, 15670070570729969769); assert.strictEqual(r.c, 14); diff --git a/spec/javascript/test_bits_unaligned_b64_le.js b/spec/javascript/test_bits_unaligned_b64_le.js index 6a689f7bb..119724e9d 100644 --- a/spec/javascript/test_bits_unaligned_b64_le.js +++ b/spec/javascript/test_bits_unaligned_b64_le.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BitsUnalignedB64Le', 'src/process_xor_4.bin', function(r, BitsUnalignedB64Le) { +testHelper('BitsUnalignedB64Le', 'src/process_xor_4.bin', function(r, BitsUnalignedB64Le_) { assert.strictEqual(r.a, false); assert.strictEqual(r.b, 1902324737369038326); assert.strictEqual(r.c, 71); diff --git a/spec/javascript/test_buffered_struct.js b/spec/javascript/test_buffered_struct.js index bb181752f..a26e06553 100644 --- a/spec/javascript/test_buffered_struct.js +++ b/spec/javascript/test_buffered_struct.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('BufferedStruct', 'src/buffered_struct.bin', function(r, BufferedStruct) { +testHelper('BufferedStruct', 'src/buffered_struct.bin', function(r, BufferedStruct_) { assert.strictEqual(r.len1, 16); assert.strictEqual(r.block1.number1, 66); assert.strictEqual(r.block1.number2, 67); diff --git a/spec/javascript/test_bytes_pad_term.js b/spec/javascript/test_bytes_pad_term.js index fadae6939..e2a6570cc 100644 --- a/spec/javascript/test_bytes_pad_term.js +++ b/spec/javascript/test_bytes_pad_term.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('BytesPadTerm', 'src/str_pad_term.bin', function(r, BytesPadTerm) { +testHelper('BytesPadTerm', 'src/str_pad_term.bin', function(r, BytesPadTerm_) { assert.strictEqual(hexString(r.strPad), hexString([115, 116, 114, 49])); assert.strictEqual(hexString(r.strTerm), hexString([115, 116, 114, 50, 102, 111, 111])); assert.strictEqual(hexString(r.strTermAndPad), hexString([115, 116, 114, 43, 43, 43, 51, 98, 97, 114, 43, 43, 43])); diff --git a/spec/javascript/test_cast_nested.js b/spec/javascript/test_cast_nested.js index 399ea00df..fbd66722b 100644 --- a/spec/javascript/test_cast_nested.js +++ b/spec/javascript/test_cast_nested.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('CastNested', 'src/switch_opcodes.bin', function(r, CastNested) { +testHelper('CastNested', 'src/switch_opcodes.bin', function(r, CastNested_) { assert.strictEqual(r.opcodes0Str.value, "foobar"); assert.strictEqual(r.opcodes0StrValue, "foobar"); assert.strictEqual(r.opcodes1Int.value, 66); diff --git a/spec/javascript/test_cast_to_top.js b/spec/javascript/test_cast_to_top.js index 5a4bce8c4..038605762 100644 --- a/spec/javascript/test_cast_to_top.js +++ b/spec/javascript/test_cast_to_top.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('CastToTop', 'src/fixed_struct.bin', function(r, CastToTop) { +testHelper('CastToTop', 'src/fixed_struct.bin', function(r, CastToTop_) { assert.strictEqual(r.code, 80); assert.strictEqual(r.header.code, 65); assert.strictEqual(r.headerCasted.code, 65); diff --git a/spec/javascript/test_combine_bool.js b/spec/javascript/test_combine_bool.js index 65f772018..d0d638e1a 100644 --- a/spec/javascript/test_combine_bool.js +++ b/spec/javascript/test_combine_bool.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('CombineBool', 'src/enum_negative.bin', function(r, CombineBool) { +testHelper('CombineBool', 'src/enum_negative.bin', function(r, CombineBool_) { assert.strictEqual(r.boolBit, true); assert.strictEqual(r.boolCalcBit, false); }); diff --git a/spec/javascript/test_combine_bytes.js b/spec/javascript/test_combine_bytes.js index dc4ba325c..1016a7d66 100644 --- a/spec/javascript/test_combine_bytes.js +++ b/spec/javascript/test_combine_bytes.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('CombineBytes', 'src/term_strz.bin', function(r, CombineBytes) { +testHelper('CombineBytes', 'src/term_strz.bin', function(r, CombineBytes_) { assert.strictEqual(hexString(r.bytesTerm), hexString([102, 111, 111])); assert.strictEqual(hexString(r.bytesLimit), hexString([98, 97, 114, 124])); assert.strictEqual(hexString(r.bytesEos), hexString([98, 97, 122, 64])); diff --git a/spec/javascript/test_combine_str.js b/spec/javascript/test_combine_str.js index 2adb0ef09..1b85a6be9 100644 --- a/spec/javascript/test_combine_str.js +++ b/spec/javascript/test_combine_str.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('CombineStr', 'src/term_strz.bin', function(r, CombineStr) { +testHelper('CombineStr', 'src/term_strz.bin', function(r, CombineStr_) { assert.strictEqual(r.strTerm, "foo"); assert.strictEqual(r.strLimit, "bar|"); assert.strictEqual(r.strEos, "baz@"); diff --git a/spec/javascript/test_debug_switch_user.js b/spec/javascript/test_debug_switch_user.js index 9c3c9bfee..6c1cb11b4 100644 --- a/spec/javascript/test_debug_switch_user.js +++ b/spec/javascript/test_debug_switch_user.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('DebugSwitchUser', 'src/nav_parent_switch.bin', function(r, DebugSwitchUser) { +testHelper('DebugSwitchUser', 'src/nav_parent_switch.bin', function(r, DebugSwitchUser_) { r._read(); assert.strictEqual(r.code, 1); diff --git a/spec/javascript/test_default_big_endian.js b/spec/javascript/test_default_big_endian.js index 7afab466e..2aa607ade 100644 --- a/spec/javascript/test_default_big_endian.js +++ b/spec/javascript/test_default_big_endian.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('DefaultBigEndian', 'src/enum_0.bin', function(r, DefaultBigEndian) { +testHelper('DefaultBigEndian', 'src/enum_0.bin', function(r, DefaultBigEndian_) { assert.strictEqual(r.one, 117440512); }); diff --git a/spec/javascript/test_default_bit_endian_mod.js b/spec/javascript/test_default_bit_endian_mod.js index e2c1dfb36..42c0f9851 100644 --- a/spec/javascript/test_default_bit_endian_mod.js +++ b/spec/javascript/test_default_bit_endian_mod.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('DefaultBitEndianMod', 'src/fixed_struct.bin', function(r, DefaultBitEndianMod) { +testHelper('DefaultBitEndianMod', 'src/fixed_struct.bin', function(r, DefaultBitEndianMod_) { assert.strictEqual(r.main.one, 336); assert.strictEqual(r.main.two, 8608); assert.strictEqual(r.main.nest.two, 11595); diff --git a/spec/javascript/test_default_endian_expr_inherited.js b/spec/javascript/test_default_endian_expr_inherited.js index fc798ed0c..b38a62762 100644 --- a/spec/javascript/test_default_endian_expr_inherited.js +++ b/spec/javascript/test_default_endian_expr_inherited.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('DefaultEndianExprInherited', 'src/endian_expr.bin', function(r, DefaultEndianExprInherited) { +testHelper('DefaultEndianExprInherited', 'src/endian_expr.bin', function(r, DefaultEndianExprInherited_) { assert.strictEqual(hexString(r.docs[0].indicator), hexString([73, 73])); assert.strictEqual(r.docs[0].main.insides.someInt, 66); assert.strictEqual(r.docs[0].main.insides.more.someInt1, 16896); diff --git a/spec/javascript/test_default_endian_expr_is_be.js b/spec/javascript/test_default_endian_expr_is_be.js index 0dcdb52b9..40e31f0b4 100644 --- a/spec/javascript/test_default_endian_expr_is_be.js +++ b/spec/javascript/test_default_endian_expr_is_be.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('DefaultEndianExprIsBe', 'src/endian_expr.bin', function(r, DefaultEndianExprIsBe) { +testHelper('DefaultEndianExprIsBe', 'src/endian_expr.bin', function(r, DefaultEndianExprIsBe_) { assert.strictEqual(hexString(r.docs[0].indicator), hexString([73, 73])); assert.strictEqual(r.docs[0].main.someInt, 66); assert.strictEqual(r.docs[0].main.someIntBe, 66); diff --git a/spec/javascript/test_default_endian_expr_is_le.js b/spec/javascript/test_default_endian_expr_is_le.js index 7e650b17c..ef9797141 100644 --- a/spec/javascript/test_default_endian_expr_is_le.js +++ b/spec/javascript/test_default_endian_expr_is_le.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('DefaultEndianExprIsLe', 'src/endian_expr.bin', function(r, DefaultEndianExprIsLe) { +testHelper('DefaultEndianExprIsLe', 'src/endian_expr.bin', function(r, DefaultEndianExprIsLe_) { assert.strictEqual(hexString(r.docs[0].indicator), hexString([73, 73])); assert.strictEqual(r.docs[0].main.someInt, 66); assert.strictEqual(r.docs[0].main.someIntBe, 66); diff --git a/spec/javascript/test_default_endian_mod.js b/spec/javascript/test_default_endian_mod.js index 85c0bdcdf..724cbf9eb 100644 --- a/spec/javascript/test_default_endian_mod.js +++ b/spec/javascript/test_default_endian_mod.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('DefaultEndianMod', 'src/fixed_struct.bin', function(r, DefaultEndianMod) { +testHelper('DefaultEndianMod', 'src/fixed_struct.bin', function(r, DefaultEndianMod_) { assert.strictEqual(r.main.one, 1262698832); assert.strictEqual(r.main.nest.two, -52947); assert.strictEqual(r.main.nestBe.two, 1346454347); diff --git a/spec/javascript/test_docstrings.js b/spec/javascript/test_docstrings.js index a372bffda..10dc60ea7 100644 --- a/spec/javascript/test_docstrings.js +++ b/spec/javascript/test_docstrings.js @@ -3,5 +3,5 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('Docstrings', 'src/fixed_struct.bin', function(r, Docstrings) { +testHelper('Docstrings', 'src/fixed_struct.bin', function(r, Docstrings_) { }); diff --git a/spec/javascript/test_docstrings_docref.js b/spec/javascript/test_docstrings_docref.js index ecb111ab8..0fef9c4e6 100644 --- a/spec/javascript/test_docstrings_docref.js +++ b/spec/javascript/test_docstrings_docref.js @@ -3,5 +3,5 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('DocstringsDocref', 'src/fixed_struct.bin', function(r, DocstringsDocref) { +testHelper('DocstringsDocref', 'src/fixed_struct.bin', function(r, DocstringsDocref_) { }); diff --git a/spec/javascript/test_docstrings_docref_multi.js b/spec/javascript/test_docstrings_docref_multi.js index ec83a4a6e..349ad8c3a 100644 --- a/spec/javascript/test_docstrings_docref_multi.js +++ b/spec/javascript/test_docstrings_docref_multi.js @@ -3,5 +3,5 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('DocstringsDocrefMulti', 'src/fixed_struct.bin', function(r, DocstringsDocrefMulti) { +testHelper('DocstringsDocrefMulti', 'src/fixed_struct.bin', function(r, DocstringsDocrefMulti_) { }); diff --git a/spec/javascript/test_enum_deep_literals.js b/spec/javascript/test_enum_deep_literals.js index 8887a08fe..034ee9d72 100644 --- a/spec/javascript/test_enum_deep_literals.js +++ b/spec/javascript/test_enum_deep_literals.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('EnumDeepLiterals', 'src/enum_0.bin', function(r, EnumDeepLiterals) { +testHelper('EnumDeepLiterals', 'src/enum_0.bin', function(r, EnumDeepLiterals_) { assert.strictEqual(r.isPet1Ok, true); assert.strictEqual(r.isPet2Ok, true); }); diff --git a/spec/javascript/test_expr_0.js b/spec/javascript/test_expr_0.js index 5fdccc0d5..9370fc2f3 100644 --- a/spec/javascript/test_expr_0.js +++ b/spec/javascript/test_expr_0.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('Expr0', 'src/str_encodings.bin', function(r, Expr0) { +testHelper('Expr0', 'src/str_encodings.bin', function(r, Expr0_) { assert.strictEqual(r.mustBeF7, 247); assert.strictEqual(r.mustBeAbc123, "abc123"); }); diff --git a/spec/javascript/test_expr_1.js b/spec/javascript/test_expr_1.js index d5dd467e5..f85f6c545 100644 --- a/spec/javascript/test_expr_1.js +++ b/spec/javascript/test_expr_1.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('Expr1', 'src/str_encodings.bin', function(r, Expr1) { +testHelper('Expr1', 'src/str_encodings.bin', function(r, Expr1_) { assert.strictEqual(r.lenOf1, 10); assert.strictEqual(r.lenOf1Mod, 8); assert.strictEqual(r.str1, "Some ASC"); diff --git a/spec/javascript/test_expr_2.js b/spec/javascript/test_expr_2.js index e9d7a4ad8..a25832436 100644 --- a/spec/javascript/test_expr_2.js +++ b/spec/javascript/test_expr_2.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('Expr2', 'src/str_encodings.bin', function(r, Expr2) { +testHelper('Expr2', 'src/str_encodings.bin', function(r, Expr2_) { assert.strictEqual(r.str1.lenOrig, 10); assert.strictEqual(r.str1.lenMod, 7); assert.strictEqual(r.str1.str, "Some AS"); diff --git a/spec/javascript/test_expr_3.js b/spec/javascript/test_expr_3.js index f72c469d7..7464f50aa 100644 --- a/spec/javascript/test_expr_3.js +++ b/spec/javascript/test_expr_3.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('Expr3', 'src/fixed_struct.bin', function(r, Expr3) { +testHelper('Expr3', 'src/fixed_struct.bin', function(r, Expr3_) { assert.strictEqual(r.one, 80); assert.strictEqual(r.two, "ACK"); assert.strictEqual(r.three, "@ACK"); diff --git a/spec/javascript/test_expr_array.js b/spec/javascript/test_expr_array.js index 9ea25a790..c419bc771 100644 --- a/spec/javascript/test_expr_array.js +++ b/spec/javascript/test_expr_array.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprArray', 'src/expr_array.bin', function(r, ExprArray) { +testHelper('ExprArray', 'src/expr_array.bin', function(r, ExprArray_) { assert.strictEqual(r.aintSize, 4); assert.strictEqual(r.aintFirst, 7657765); assert.strictEqual(r.aintLast, 16272640); diff --git a/spec/javascript/test_expr_bytes_cmp.js b/spec/javascript/test_expr_bytes_cmp.js index c9a74aa55..40c6fcbe2 100644 --- a/spec/javascript/test_expr_bytes_cmp.js +++ b/spec/javascript/test_expr_bytes_cmp.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ExprBytesCmp', 'src/fixed_struct.bin', function(r, ExprBytesCmp) { +testHelper('ExprBytesCmp', 'src/fixed_struct.bin', function(r, ExprBytesCmp_) { assert.strictEqual(hexString(r.one), hexString([80])); assert.strictEqual(hexString(r.two), hexString([65, 67, 75])); assert.strictEqual(r.isEq, true); diff --git a/spec/javascript/test_expr_bytes_non_literal.js b/spec/javascript/test_expr_bytes_non_literal.js index ce16ad8da..c4d74969c 100644 --- a/spec/javascript/test_expr_bytes_non_literal.js +++ b/spec/javascript/test_expr_bytes_non_literal.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprBytesNonLiteral', 'src/enum_negative.bin', function(r, ExprBytesNonLiteral) { +testHelper('ExprBytesNonLiteral', 'src/enum_negative.bin', function(r, ExprBytesNonLiteral_) { assert.strictEqual(r.calcBytes.length, 2); assert.strictEqual(r.calcBytes[0], 255); assert.strictEqual(r.calcBytes[1], 1); diff --git a/spec/javascript/test_expr_bytes_ops.js b/spec/javascript/test_expr_bytes_ops.js index aeec3b457..e85bcbc3e 100644 --- a/spec/javascript/test_expr_bytes_ops.js +++ b/spec/javascript/test_expr_bytes_ops.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprBytesOps', 'src/nav_parent_switch.bin', function(r, ExprBytesOps) { +testHelper('ExprBytesOps', 'src/nav_parent_switch.bin', function(r, ExprBytesOps_) { assert.strictEqual(r.oneSize, 3); assert.strictEqual(r.oneFirst, 1); assert.strictEqual(r.oneMid, 66); diff --git a/spec/javascript/test_expr_calc_array_ops.js b/spec/javascript/test_expr_calc_array_ops.js index 0cdefdc84..aae4e10d9 100644 --- a/spec/javascript/test_expr_calc_array_ops.js +++ b/spec/javascript/test_expr_calc_array_ops.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprCalcArrayOps', 'src/fixed_struct.bin', function(r, ExprCalcArrayOps) { +testHelper('ExprCalcArrayOps', 'src/fixed_struct.bin', function(r, ExprCalcArrayOps_) { assert.strictEqual(r.intArraySize, 7); assert.strictEqual(r.intArrayFirst, 10); assert.strictEqual(r.intArrayMid, 25); diff --git a/spec/javascript/test_expr_fstring_0.js b/spec/javascript/test_expr_fstring_0.js index f1a2ef4b2..782baac23 100644 --- a/spec/javascript/test_expr_fstring_0.js +++ b/spec/javascript/test_expr_fstring_0.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprFstring0', 'src/term_strz.bin', function(r, ExprFstring0) { +testHelper('ExprFstring0', 'src/term_strz.bin', function(r, ExprFstring0_) { assert.strictEqual(r.seqStr, "foo|b"); assert.strictEqual(r.seqInt, 97); assert.strictEqual(r.empty, ""); diff --git a/spec/javascript/test_expr_if_int_ops.js b/spec/javascript/test_expr_if_int_ops.js index 9090917be..48be93379 100644 --- a/spec/javascript/test_expr_if_int_ops.js +++ b/spec/javascript/test_expr_if_int_ops.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprIfIntOps', 'src/process_coerce_switch.bin', function(r, ExprIfIntOps) { +testHelper('ExprIfIntOps', 'src/process_coerce_switch.bin', function(r, ExprIfIntOps_) { assert.strictEqual(r.isEqPrim, true); assert.strictEqual(r.isEqBoxed, true); }); diff --git a/spec/javascript/test_expr_int_div.js b/spec/javascript/test_expr_int_div.js index 6b932f6b5..eda45ac49 100644 --- a/spec/javascript/test_expr_int_div.js +++ b/spec/javascript/test_expr_int_div.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprIntDiv', 'src/fixed_struct.bin', function(r, ExprIntDiv) { +testHelper('ExprIntDiv', 'src/fixed_struct.bin', function(r, ExprIntDiv_) { assert.strictEqual(r.intU, 1262698832); assert.strictEqual(r.intS, -52947); assert.strictEqual(r.divPosConst, 756); diff --git a/spec/javascript/test_expr_io_eof.js b/spec/javascript/test_expr_io_eof.js index 258d13a57..c39310050 100644 --- a/spec/javascript/test_expr_io_eof.js +++ b/spec/javascript/test_expr_io_eof.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprIoEof', 'src/fixed_struct.bin', function(r, ExprIoEof) { +testHelper('ExprIoEof', 'src/fixed_struct.bin', function(r, ExprIoEof_) { assert.strictEqual(r.substream1.one, 1262698832); assert.strictEqual(r.substream1.two, undefined); assert.strictEqual(r.substream2.one, 4294914349); diff --git a/spec/javascript/test_expr_io_pos.js b/spec/javascript/test_expr_io_pos.js index 001e7fa44..30305c982 100644 --- a/spec/javascript/test_expr_io_pos.js +++ b/spec/javascript/test_expr_io_pos.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ExprIoPos', 'src/expr_io_pos.bin', function(r, ExprIoPos) { +testHelper('ExprIoPos', 'src/expr_io_pos.bin', function(r, ExprIoPos_) { assert.strictEqual(r.substream1.myStr, "CURIOSITY"); assert.strictEqual(hexString(r.substream1.body), hexString([17, 34, 51, 68])); assert.strictEqual(r.substream1.number, 66); diff --git a/spec/javascript/test_expr_io_ternary.js b/spec/javascript/test_expr_io_ternary.js index 06166de67..a0892b1eb 100644 --- a/spec/javascript/test_expr_io_ternary.js +++ b/spec/javascript/test_expr_io_ternary.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprIoTernary', 'src/if_struct.bin', function(r, ExprIoTernary) { +testHelper('ExprIoTernary', 'src/if_struct.bin', function(r, ExprIoTernary_) { assert.strictEqual(r.oneOrTwoIoSize1, 8); assert.strictEqual(r.oneOrTwoIoSize2, 8); assert.strictEqual(r.oneOrTwoIoSizeAdd3, 11); diff --git a/spec/javascript/test_expr_mod.js b/spec/javascript/test_expr_mod.js index 9a82d7cc7..39e07acb4 100644 --- a/spec/javascript/test_expr_mod.js +++ b/spec/javascript/test_expr_mod.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprMod', 'src/fixed_struct.bin', function(r, ExprMod) { +testHelper('ExprMod', 'src/fixed_struct.bin', function(r, ExprMod_) { assert.strictEqual(r.intU, 1262698832); assert.strictEqual(r.intS, -52947); assert.strictEqual(r.modPosConst, 9); diff --git a/spec/javascript/test_expr_ops_parens.js b/spec/javascript/test_expr_ops_parens.js index 53e00d69d..428c280ee 100644 --- a/spec/javascript/test_expr_ops_parens.js +++ b/spec/javascript/test_expr_ops_parens.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprOpsParens', 'src/enum_negative.bin', function(r, ExprOpsParens) { +testHelper('ExprOpsParens', 'src/enum_negative.bin', function(r, ExprOpsParens_) { assert.strictEqual(r.iSumToStr, "29"); assert.strictEqual(r.fSumToInt, 9); assert.strictEqual(r.strConcatLen, 10); diff --git a/spec/javascript/test_expr_sizeof_type_0.js b/spec/javascript/test_expr_sizeof_type_0.js index ceb8f5bea..3e2e8b9e4 100644 --- a/spec/javascript/test_expr_sizeof_type_0.js +++ b/spec/javascript/test_expr_sizeof_type_0.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprSizeofType0', 'src/fixed_struct.bin', function(r, ExprSizeofType0) { +testHelper('ExprSizeofType0', 'src/fixed_struct.bin', function(r, ExprSizeofType0_) { assert.strictEqual(r.sizeofBlock, ((1 + 4) + 2)); }); diff --git a/spec/javascript/test_expr_sizeof_type_1.js b/spec/javascript/test_expr_sizeof_type_1.js index 65561f6f3..1a964eb3a 100644 --- a/spec/javascript/test_expr_sizeof_type_1.js +++ b/spec/javascript/test_expr_sizeof_type_1.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprSizeofType1', 'src/fixed_struct.bin', function(r, ExprSizeofType1) { +testHelper('ExprSizeofType1', 'src/fixed_struct.bin', function(r, ExprSizeofType1_) { assert.strictEqual(r.sizeofBlock, (((1 + 4) + 2) + 4)); assert.strictEqual(r.sizeofSubblock, 4); }); diff --git a/spec/javascript/test_expr_sizeof_value_0.js b/spec/javascript/test_expr_sizeof_value_0.js index 4db38cef7..9e91193dd 100644 --- a/spec/javascript/test_expr_sizeof_value_0.js +++ b/spec/javascript/test_expr_sizeof_value_0.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprSizeofValue0', 'src/fixed_struct.bin', function(r, ExprSizeofValue0) { +testHelper('ExprSizeofValue0', 'src/fixed_struct.bin', function(r, ExprSizeofValue0_) { assert.strictEqual(r.selfSizeof, (((1 + 4) + 2) + 2)); assert.strictEqual(r.sizeofBlock, ((1 + 4) + 2)); assert.strictEqual(r.sizeofBlockA, 1); diff --git a/spec/javascript/test_expr_sizeof_value_sized.js b/spec/javascript/test_expr_sizeof_value_sized.js index 8316b20e7..9f943b918 100644 --- a/spec/javascript/test_expr_sizeof_value_sized.js +++ b/spec/javascript/test_expr_sizeof_value_sized.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprSizeofValueSized', 'src/fixed_struct.bin', function(r, ExprSizeofValueSized) { +testHelper('ExprSizeofValueSized', 'src/fixed_struct.bin', function(r, ExprSizeofValueSized_) { assert.strictEqual(r.selfSizeof, (12 + 2)); assert.strictEqual(r.sizeofBlock, 12); assert.strictEqual(r.sizeofBlockA, 1); diff --git a/spec/javascript/test_expr_str_encodings.js b/spec/javascript/test_expr_str_encodings.js index 56cda4ee8..b364888a9 100644 --- a/spec/javascript/test_expr_str_encodings.js +++ b/spec/javascript/test_expr_str_encodings.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprStrEncodings', 'src/str_encodings.bin', function(r, ExprStrEncodings) { +testHelper('ExprStrEncodings', 'src/str_encodings.bin', function(r, ExprStrEncodings_) { assert.strictEqual(r.str1Eq, true); assert.strictEqual(r.str2Eq, true); assert.strictEqual(r.str3Eq, true); diff --git a/spec/javascript/test_expr_str_ops.js b/spec/javascript/test_expr_str_ops.js index d96510b64..149841d73 100644 --- a/spec/javascript/test_expr_str_ops.js +++ b/spec/javascript/test_expr_str_ops.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprStrOps', 'src/term_strz.bin', function(r, ExprStrOps) { +testHelper('ExprStrOps', 'src/term_strz.bin', function(r, ExprStrOps_) { assert.strictEqual(r.one, "foo|b"); assert.strictEqual(r.oneLen, 5); assert.strictEqual(r.oneRev, "b|oof"); diff --git a/spec/javascript/test_expr_to_i_trailing.js b/spec/javascript/test_expr_to_i_trailing.js index 011c5a038..0c9b51da5 100644 --- a/spec/javascript/test_expr_to_i_trailing.js +++ b/spec/javascript/test_expr_to_i_trailing.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ExprToITrailing', 'src/term_strz.bin', function(r, ExprToITrailing) { +testHelper('ExprToITrailing', 'src/term_strz.bin', function(r, ExprToITrailing_) { assert.throws( function() { r.toIR10; diff --git a/spec/javascript/test_fixed_contents.js b/spec/javascript/test_fixed_contents.js index ce8656baa..35b2e3c44 100644 --- a/spec/javascript/test_fixed_contents.js +++ b/spec/javascript/test_fixed_contents.js @@ -3,5 +3,5 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('FixedContents', 'src/fixed_struct.bin', function(r, FixedContents) { +testHelper('FixedContents', 'src/fixed_struct.bin', function(r, FixedContents_) { }); diff --git a/spec/javascript/test_fixed_struct.js b/spec/javascript/test_fixed_struct.js index a92af504b..c23f986dd 100644 --- a/spec/javascript/test_fixed_struct.js +++ b/spec/javascript/test_fixed_struct.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('FixedStruct', 'src/fixed_struct.bin', function(r, FixedStruct) { +testHelper('FixedStruct', 'src/fixed_struct.bin', function(r, FixedStruct_) { assert.strictEqual(r.hdr.uint8, 255); assert.strictEqual(r.hdr.uint16, 65535); assert.strictEqual(r.hdr.uint32, 4294967295); diff --git a/spec/javascript/test_float_to_i.js b/spec/javascript/test_float_to_i.js index d65749898..673b3ee18 100644 --- a/spec/javascript/test_float_to_i.js +++ b/spec/javascript/test_float_to_i.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('FloatToI', 'src/floating_points.bin', function(r, FloatToI) { +testHelper('FloatToI', 'src/floating_points.bin', function(r, FloatToI_) { assert.strictEqual(r.singleValue, 0.5); assert.strictEqual(r.doubleValue, 0.25); assert.strictEqual(r.singleI, 0); diff --git a/spec/javascript/test_floating_points.js b/spec/javascript/test_floating_points.js index 202f4b463..113dfc473 100644 --- a/spec/javascript/test_floating_points.js +++ b/spec/javascript/test_floating_points.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('FloatingPoints', 'src/floating_points.bin', function(r, FloatingPoints) { +testHelper('FloatingPoints', 'src/floating_points.bin', function(r, FloatingPoints_) { assert(Math.abs(r.singleValue - 0.5) < 1e-6); assert(Math.abs(r.singleValueBe - 0.5) < 1e-6); assert(Math.abs(r.doubleValue - 0.25) < 1e-6); diff --git a/spec/javascript/test_hello_world.js b/spec/javascript/test_hello_world.js index a6c50798a..de8a0e4de 100644 --- a/spec/javascript/test_hello_world.js +++ b/spec/javascript/test_hello_world.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('HelloWorld', 'src/fixed_struct.bin', function(r, HelloWorld) { +testHelper('HelloWorld', 'src/fixed_struct.bin', function(r, HelloWorld_) { assert.strictEqual(r.one, 80); }); diff --git a/spec/javascript/test_if_instances.js b/spec/javascript/test_if_instances.js index fb8199269..8d5e67195 100644 --- a/spec/javascript/test_if_instances.js +++ b/spec/javascript/test_if_instances.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('IfInstances', 'src/fixed_struct.bin', function(r, IfInstances) { +testHelper('IfInstances', 'src/fixed_struct.bin', function(r, IfInstances_) { assert.strictEqual(r.neverHappens, undefined); }); diff --git a/spec/javascript/test_if_struct.js b/spec/javascript/test_if_struct.js index 9d129a552..6bddd3cc7 100644 --- a/spec/javascript/test_if_struct.js +++ b/spec/javascript/test_if_struct.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('IfStruct', 'src/if_struct.bin', function(r, IfStruct) { +testHelper('IfStruct', 'src/if_struct.bin', function(r, IfStruct_) { assert.strictEqual(r.op1.opcode, 83); assert.strictEqual(r.op1.argStr.str, "foo"); assert.strictEqual(r.op2.opcode, 84); diff --git a/spec/javascript/test_if_values.js b/spec/javascript/test_if_values.js index 63a922988..5012a7574 100644 --- a/spec/javascript/test_if_values.js +++ b/spec/javascript/test_if_values.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('IfValues', 'src/fixed_struct.bin', function(r, IfValues) { +testHelper('IfValues', 'src/fixed_struct.bin', function(r, IfValues_) { assert.strictEqual(r.codes[0].opcode, 80); assert.strictEqual(r.codes[0].halfOpcode, 40); assert.strictEqual(r.codes[1].opcode, 65); diff --git a/spec/javascript/test_imports0.js b/spec/javascript/test_imports0.js index fb11dc86b..281000bea 100644 --- a/spec/javascript/test_imports0.js +++ b/spec/javascript/test_imports0.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('Imports0', 'src/fixed_struct.bin', function(r, Imports0) { +testHelper('Imports0', 'src/fixed_struct.bin', function(r, Imports0_) { assert.strictEqual(r.two, 80); assert.strictEqual(r.hw.one, 65); assert.strictEqual(r.hwOne, 65); diff --git a/spec/javascript/test_imports_abs.js b/spec/javascript/test_imports_abs.js index a6d40a3bf..c2b0cb92a 100644 --- a/spec/javascript/test_imports_abs.js +++ b/spec/javascript/test_imports_abs.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ImportsAbs', 'src/fixed_struct.bin', function(r, ImportsAbs) { +testHelper('ImportsAbs', 'src/fixed_struct.bin', function(r, ImportsAbs_) { assert.strictEqual(r.len.value, 80); assert.strictEqual(r.body.length, 80); }); diff --git a/spec/javascript/test_imports_abs_abs.js b/spec/javascript/test_imports_abs_abs.js index ecd58f57e..9ded7b9e0 100644 --- a/spec/javascript/test_imports_abs_abs.js +++ b/spec/javascript/test_imports_abs_abs.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ImportsAbsAbs', 'src/fixed_struct.bin', function(r, ImportsAbsAbs) { +testHelper('ImportsAbsAbs', 'src/fixed_struct.bin', function(r, ImportsAbsAbs_) { assert.strictEqual(r.one, 80); assert.strictEqual(r.two.one, 65); assert.strictEqual(r.two.two.one, 67); diff --git a/spec/javascript/test_imports_abs_rel.js b/spec/javascript/test_imports_abs_rel.js index 6b5a932fa..c749cf3fe 100644 --- a/spec/javascript/test_imports_abs_rel.js +++ b/spec/javascript/test_imports_abs_rel.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ImportsAbsRel', 'src/fixed_struct.bin', function(r, ImportsAbsRel) { +testHelper('ImportsAbsRel', 'src/fixed_struct.bin', function(r, ImportsAbsRel_) { assert.strictEqual(r.one, 80); assert.strictEqual(r.two.one, 65); assert.strictEqual(r.two.two.one, 67); diff --git a/spec/javascript/test_imports_cast_to_imported.js b/spec/javascript/test_imports_cast_to_imported.js index 6311ddcb3..442c480e1 100644 --- a/spec/javascript/test_imports_cast_to_imported.js +++ b/spec/javascript/test_imports_cast_to_imported.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ImportsCastToImported', 'src/process_xor_4.bin', function(r, ImportsCastToImported) { +testHelper('ImportsCastToImported', 'src/process_xor_4.bin', function(r, ImportsCastToImported_) { assert.strictEqual(r.hw.one, 236); assert.strictEqual(r.two.hwOne, 236); }); diff --git a/spec/javascript/test_imports_cast_to_imported2.js b/spec/javascript/test_imports_cast_to_imported2.js index 4da536a81..250e837ea 100644 --- a/spec/javascript/test_imports_cast_to_imported2.js +++ b/spec/javascript/test_imports_cast_to_imported2.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ImportsCastToImported2', 'src/process_xor_4.bin', function(r, ImportsCastToImported2) { +testHelper('ImportsCastToImported2', 'src/process_xor_4.bin', function(r, ImportsCastToImported2_) { assert.strictEqual(r.hw.one, 236); assert.strictEqual(r.two.hw.one, 236); }); diff --git a/spec/javascript/test_imports_circular_a.js b/spec/javascript/test_imports_circular_a.js index 234dbb459..d9a62cf68 100644 --- a/spec/javascript/test_imports_circular_a.js +++ b/spec/javascript/test_imports_circular_a.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ImportsCircularA', 'src/fixed_struct.bin', function(r, ImportsCircularA) { +testHelper('ImportsCircularA', 'src/fixed_struct.bin', function(r, ImportsCircularA_) { assert.strictEqual(r.code, 80); assert.strictEqual(r.two.initial, 65); assert.strictEqual(r.two.backRef.code, 67); diff --git a/spec/javascript/test_imports_params_def_array_usertype_imported.js b/spec/javascript/test_imports_params_def_array_usertype_imported.js index 5cd5ea367..5d41b3dc1 100644 --- a/spec/javascript/test_imports_params_def_array_usertype_imported.js +++ b/spec/javascript/test_imports_params_def_array_usertype_imported.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ImportsParamsDefArrayUsertypeImported', 'src/process_xor_4.bin', function(r, ImportsParamsDefArrayUsertypeImported) { +testHelper('ImportsParamsDefArrayUsertypeImported', 'src/process_xor_4.bin', function(r, ImportsParamsDefArrayUsertypeImported_) { assert.strictEqual(r.hws.length, 2); assert.strictEqual(r.hws[0].one, 236); assert.strictEqual(r.hws[1].one, 187); diff --git a/spec/javascript/test_imports_params_def_usertype_imported.js b/spec/javascript/test_imports_params_def_usertype_imported.js index 2b0eb22fb..477ffe177 100644 --- a/spec/javascript/test_imports_params_def_usertype_imported.js +++ b/spec/javascript/test_imports_params_def_usertype_imported.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ImportsParamsDefUsertypeImported', 'src/process_xor_4.bin', function(r, ImportsParamsDefUsertypeImported) { +testHelper('ImportsParamsDefUsertypeImported', 'src/process_xor_4.bin', function(r, ImportsParamsDefUsertypeImported_) { assert.strictEqual(r.hw.one, 236); assert.strictEqual(r.two.hwOne, 236); }); diff --git a/spec/javascript/test_imports_rel_1.js b/spec/javascript/test_imports_rel_1.js index d385544f3..fdb79bafd 100644 --- a/spec/javascript/test_imports_rel_1.js +++ b/spec/javascript/test_imports_rel_1.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ImportsRel1', 'src/fixed_struct.bin', function(r, ImportsRel1) { +testHelper('ImportsRel1', 'src/fixed_struct.bin', function(r, ImportsRel1_) { assert.strictEqual(r.one, 80); assert.strictEqual(r.two.one, 65); assert.strictEqual(r.two.two.one, 67); diff --git a/spec/javascript/test_index_sizes.js b/spec/javascript/test_index_sizes.js index 14e7b4dd0..2b94524c8 100644 --- a/spec/javascript/test_index_sizes.js +++ b/spec/javascript/test_index_sizes.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('IndexSizes', 'src/index_sizes.bin', function(r, IndexSizes) { +testHelper('IndexSizes', 'src/index_sizes.bin', function(r, IndexSizes_) { assert.strictEqual(r.qty, 3); assert.strictEqual(r.sizes[0], 1); assert.strictEqual(r.sizes[1], 8); diff --git a/spec/javascript/test_index_to_param_eos.js b/spec/javascript/test_index_to_param_eos.js index b1b89dc7f..cc08d2da2 100644 --- a/spec/javascript/test_index_to_param_eos.js +++ b/spec/javascript/test_index_to_param_eos.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('IndexToParamEos', 'src/index_sizes.bin', function(r, IndexToParamEos) { +testHelper('IndexToParamEos', 'src/index_sizes.bin', function(r, IndexToParamEos_) { assert.strictEqual(r.qty, 3); assert.strictEqual(r.sizes[0], 1); assert.strictEqual(r.sizes[1], 8); diff --git a/spec/javascript/test_index_to_param_expr.js b/spec/javascript/test_index_to_param_expr.js index f41c5144f..daec7e5a2 100644 --- a/spec/javascript/test_index_to_param_expr.js +++ b/spec/javascript/test_index_to_param_expr.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('IndexToParamExpr', 'src/index_sizes.bin', function(r, IndexToParamExpr) { +testHelper('IndexToParamExpr', 'src/index_sizes.bin', function(r, IndexToParamExpr_) { assert.strictEqual(r.qty, 3); assert.strictEqual(r.sizes[0], 1); assert.strictEqual(r.sizes[1], 8); diff --git a/spec/javascript/test_index_to_param_until.js b/spec/javascript/test_index_to_param_until.js index 91fb68c29..c2a405fee 100644 --- a/spec/javascript/test_index_to_param_until.js +++ b/spec/javascript/test_index_to_param_until.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('IndexToParamUntil', 'src/index_sizes.bin', function(r, IndexToParamUntil) { +testHelper('IndexToParamUntil', 'src/index_sizes.bin', function(r, IndexToParamUntil_) { assert.strictEqual(r.qty, 3); assert.strictEqual(r.sizes[0], 1); assert.strictEqual(r.sizes[1], 8); diff --git a/spec/javascript/test_instance_io_user.js b/spec/javascript/test_instance_io_user.js index 7f36a3d83..89cc8f382 100644 --- a/spec/javascript/test_instance_io_user.js +++ b/spec/javascript/test_instance_io_user.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('InstanceIoUser', 'src/instance_io.bin', function(r, InstanceIoUser) { +testHelper('InstanceIoUser', 'src/instance_io.bin', function(r, InstanceIoUser_) { assert.strictEqual(r.qtyEntries, 3); assert.strictEqual(r.entries[0].name, "the"); assert.strictEqual(r.entries[1].name, "rainy"); diff --git a/spec/javascript/test_instance_std.js b/spec/javascript/test_instance_std.js index 133d10075..1c464412c 100644 --- a/spec/javascript/test_instance_std.js +++ b/spec/javascript/test_instance_std.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('InstanceStd', 'src/str_encodings.bin', function(r, InstanceStd) { +testHelper('InstanceStd', 'src/str_encodings.bin', function(r, InstanceStd_) { assert.strictEqual(r.header, "Some "); }); diff --git a/spec/javascript/test_instance_std_array.js b/spec/javascript/test_instance_std_array.js index 82af23811..dcf5e9602 100644 --- a/spec/javascript/test_instance_std_array.js +++ b/spec/javascript/test_instance_std_array.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('InstanceStdArray', 'src/instance_std_array.bin', function(r, InstanceStdArray) { +testHelper('InstanceStdArray', 'src/instance_std_array.bin', function(r, InstanceStdArray_) { assert.strictEqual(r.ofs, 16); assert.strictEqual(r.qtyEntries, 3); assert.strictEqual(r.entrySize, 4); diff --git a/spec/javascript/test_instance_user_array.js b/spec/javascript/test_instance_user_array.js index a3eb974db..ee6700674 100644 --- a/spec/javascript/test_instance_user_array.js +++ b/spec/javascript/test_instance_user_array.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('InstanceUserArray', 'src/instance_std_array.bin', function(r, InstanceUserArray) { +testHelper('InstanceUserArray', 'src/instance_std_array.bin', function(r, InstanceUserArray_) { assert.strictEqual(r.ofs, 16); assert.strictEqual(r.qtyEntries, 3); assert.strictEqual(r.entrySize, 4); diff --git a/spec/javascript/test_integers.js b/spec/javascript/test_integers.js index f6a67d17e..61d57d200 100644 --- a/spec/javascript/test_integers.js +++ b/spec/javascript/test_integers.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('Integers', 'src/fixed_struct.bin', function(r, Integers) { +testHelper('Integers', 'src/fixed_struct.bin', function(r, Integers_) { assert.strictEqual(r.uint8, 255); assert.strictEqual(r.uint16, 65535); assert.strictEqual(r.uint32, 4294967295); diff --git a/spec/javascript/test_integers_double_overflow.js b/spec/javascript/test_integers_double_overflow.js index 85611c363..7a4821164 100644 --- a/spec/javascript/test_integers_double_overflow.js +++ b/spec/javascript/test_integers_double_overflow.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('IntegersDoubleOverflow', 'src/integers_double_overflow.bin', function(r, IntegersDoubleOverflow) { +testHelper('IntegersDoubleOverflow', 'src/integers_double_overflow.bin', function(r, IntegersDoubleOverflow_) { assert.strictEqual(r.signedSafeMinBe, -9007199254740991); assert.strictEqual(r.signedSafeMinLe, -9007199254740991); assert.strictEqual(r.signedSafeMaxBe, 9007199254740991); diff --git a/spec/javascript/test_integers_min_max.js b/spec/javascript/test_integers_min_max.js index 382f19454..940ef1925 100644 --- a/spec/javascript/test_integers_min_max.js +++ b/spec/javascript/test_integers_min_max.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('IntegersMinMax', 'src/integers_min_max.bin', function(r, IntegersMinMax) { +testHelper('IntegersMinMax', 'src/integers_min_max.bin', function(r, IntegersMinMax_) { assert.strictEqual(r.unsignedMin.u1, 0); assert.strictEqual(r.unsignedMin.u2le, 0); assert.strictEqual(r.unsignedMin.u4le, 0); diff --git a/spec/javascript/test_io_local_var.js b/spec/javascript/test_io_local_var.js index a4d374860..79b8d6d86 100644 --- a/spec/javascript/test_io_local_var.js +++ b/spec/javascript/test_io_local_var.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('IoLocalVar', 'src/full256.bin', function(r, IoLocalVar) { +testHelper('IoLocalVar', 'src/full256.bin', function(r, IoLocalVar_) { assert.strictEqual(hexString(r.skip), hexString([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19])); assert.strictEqual(r.followup, 20); }); diff --git a/spec/javascript/test_js_signed_right_shift.js b/spec/javascript/test_js_signed_right_shift.js index f51361332..28332c580 100644 --- a/spec/javascript/test_js_signed_right_shift.js +++ b/spec/javascript/test_js_signed_right_shift.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('JsSignedRightShift', 'src/fixed_struct.bin', function(r, JsSignedRightShift) { +testHelper('JsSignedRightShift', 'src/fixed_struct.bin', function(r, JsSignedRightShift_) { assert.strictEqual(r.shouldBe40000000, 1073741824); assert.strictEqual(r.shouldBeA00000, 10485760); }); diff --git a/spec/javascript/test_meta_tags.js b/spec/javascript/test_meta_tags.js index b5225bc3a..e7272a4d4 100644 --- a/spec/javascript/test_meta_tags.js +++ b/spec/javascript/test_meta_tags.js @@ -3,5 +3,5 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('MetaTags', 'src/fixed_struct.bin', function(r, MetaTags) { +testHelper('MetaTags', 'src/fixed_struct.bin', function(r, MetaTags_) { }); diff --git a/spec/javascript/test_meta_xref.js b/spec/javascript/test_meta_xref.js index 353c2614c..13a2745b9 100644 --- a/spec/javascript/test_meta_xref.js +++ b/spec/javascript/test_meta_xref.js @@ -3,5 +3,5 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('MetaXref', 'src/fixed_struct.bin', function(r, MetaXref) { +testHelper('MetaXref', 'src/fixed_struct.bin', function(r, MetaXref_) { }); diff --git a/spec/javascript/test_multiple_use.js b/spec/javascript/test_multiple_use.js index 60de0a60d..139f1ba0b 100644 --- a/spec/javascript/test_multiple_use.js +++ b/spec/javascript/test_multiple_use.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('MultipleUse', 'src/position_abs.bin', function(r, MultipleUse) { +testHelper('MultipleUse', 'src/position_abs.bin', function(r, MultipleUse_) { assert.strictEqual(r.t1.firstUse.value, 32); assert.strictEqual(r.t2.secondUse.value, 32); }); diff --git a/spec/javascript/test_nav_parent.js b/spec/javascript/test_nav_parent.js index 0a01c8a26..714a487b1 100644 --- a/spec/javascript/test_nav_parent.js +++ b/spec/javascript/test_nav_parent.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NavParent', 'src/nav.bin', function(r, NavParent) { +testHelper('NavParent', 'src/nav.bin', function(r, NavParent_) { assert.strictEqual(r.header.qtyEntries, 2); assert.strictEqual(r.header.filenameLen, 8); assert.strictEqual(r.index.entries.length, 2); diff --git a/spec/javascript/test_nav_parent2.js b/spec/javascript/test_nav_parent2.js index ff68600e5..324609fb8 100644 --- a/spec/javascript/test_nav_parent2.js +++ b/spec/javascript/test_nav_parent2.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NavParent2', 'src/nav_parent2.bin', function(r, NavParent2) { +testHelper('NavParent2', 'src/nav_parent2.bin', function(r, NavParent2_) { assert.strictEqual(r.ofsTags, 8); assert.strictEqual(r.numTags, 2); assert.strictEqual(r.tags[0].name, "RAHC"); diff --git a/spec/javascript/test_nav_parent3.js b/spec/javascript/test_nav_parent3.js index 67d3b8605..2730eb699 100644 --- a/spec/javascript/test_nav_parent3.js +++ b/spec/javascript/test_nav_parent3.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NavParent3', 'src/nav_parent2.bin', function(r, NavParent3) { +testHelper('NavParent3', 'src/nav_parent2.bin', function(r, NavParent3_) { assert.strictEqual(r.ofsTags, 8); assert.strictEqual(r.numTags, 2); assert.strictEqual(r.tags[0].name, "RAHC"); diff --git a/spec/javascript/test_nav_parent_false.js b/spec/javascript/test_nav_parent_false.js index 183bf04e0..0dfb3bac7 100644 --- a/spec/javascript/test_nav_parent_false.js +++ b/spec/javascript/test_nav_parent_false.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('NavParentFalse', 'src/nav_parent_codes.bin', function(r, NavParentFalse) { +testHelper('NavParentFalse', 'src/nav_parent_codes.bin', function(r, NavParentFalse_) { assert.strictEqual(r.childSize, 3); assert.strictEqual(r.elementA.foo.code, 73); assert.strictEqual(hexString(r.elementA.foo.more), hexString([49, 50, 51])); diff --git a/spec/javascript/test_nav_parent_false2.js b/spec/javascript/test_nav_parent_false2.js index 89e412186..36d410d77 100644 --- a/spec/javascript/test_nav_parent_false2.js +++ b/spec/javascript/test_nav_parent_false2.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NavParentFalse2', 'src/fixed_struct.bin', function(r, NavParentFalse2) { +testHelper('NavParentFalse2', 'src/fixed_struct.bin', function(r, NavParentFalse2_) { assert.strictEqual(r.parentless.foo, 80); }); diff --git a/spec/javascript/test_nav_parent_override.js b/spec/javascript/test_nav_parent_override.js index a25748b19..8ed7c141f 100644 --- a/spec/javascript/test_nav_parent_override.js +++ b/spec/javascript/test_nav_parent_override.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('NavParentOverride', 'src/nav_parent_codes.bin', function(r, NavParentOverride) { +testHelper('NavParentOverride', 'src/nav_parent_codes.bin', function(r, NavParentOverride_) { assert.strictEqual(r.childSize, 3); assert.strictEqual(hexString(r.child1.data), hexString([73, 49, 50])); assert.strictEqual(hexString(r.mediator2.child2.data), hexString([51, 66, 98])); diff --git a/spec/javascript/test_nav_parent_recursive.js b/spec/javascript/test_nav_parent_recursive.js index 961caba75..80ea3cc8b 100644 --- a/spec/javascript/test_nav_parent_recursive.js +++ b/spec/javascript/test_nav_parent_recursive.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NavParentRecursive', 'src/enum_negative.bin', function(r, NavParentRecursive) { +testHelper('NavParentRecursive', 'src/enum_negative.bin', function(r, NavParentRecursive_) { assert.strictEqual(r.value, 255); assert.strictEqual(r.next.value, 1); assert.strictEqual(r.next.parentValue, 255); diff --git a/spec/javascript/test_nav_parent_switch.js b/spec/javascript/test_nav_parent_switch.js index 3645800ee..67985732a 100644 --- a/spec/javascript/test_nav_parent_switch.js +++ b/spec/javascript/test_nav_parent_switch.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NavParentSwitch', 'src/nav_parent_switch.bin', function(r, NavParentSwitch) { +testHelper('NavParentSwitch', 'src/nav_parent_switch.bin', function(r, NavParentSwitch_) { assert.strictEqual(r.category, 1); assert.strictEqual(r.content.foo, 66); assert.strictEqual(r.content.subelement.bar, 255); diff --git a/spec/javascript/test_nav_parent_switch_cast.js b/spec/javascript/test_nav_parent_switch_cast.js index cce0e6a24..7a77518e6 100644 --- a/spec/javascript/test_nav_parent_switch_cast.js +++ b/spec/javascript/test_nav_parent_switch_cast.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NavParentSwitchCast', 'src/switch_integers.bin', function(r, NavParentSwitchCast) { +testHelper('NavParentSwitchCast', 'src/switch_integers.bin', function(r, NavParentSwitchCast_) { assert.strictEqual(r.main.bufType, 1); assert.strictEqual(r.main.flag, 7); assert.strictEqual(r.main.buf.branch.flag, 7); diff --git a/spec/javascript/test_nav_parent_vs_value_inst.js b/spec/javascript/test_nav_parent_vs_value_inst.js index 3bf03ed2c..2e97fbf04 100644 --- a/spec/javascript/test_nav_parent_vs_value_inst.js +++ b/spec/javascript/test_nav_parent_vs_value_inst.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NavParentVsValueInst', 'src/term_strz.bin', function(r, NavParentVsValueInst) { +testHelper('NavParentVsValueInst', 'src/term_strz.bin', function(r, NavParentVsValueInst_) { assert.strictEqual(r.s1, "foo"); }); diff --git a/spec/javascript/test_nav_root.js b/spec/javascript/test_nav_root.js index 2ec59e2ae..d0425343d 100644 --- a/spec/javascript/test_nav_root.js +++ b/spec/javascript/test_nav_root.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NavRoot', 'src/nav.bin', function(r, NavRoot) { +testHelper('NavRoot', 'src/nav.bin', function(r, NavRoot_) { assert.strictEqual(r.header.qtyEntries, 2); assert.strictEqual(r.header.filenameLen, 8); assert.strictEqual(r.index.entries.length, 2); diff --git a/spec/javascript/test_nav_root_recursive.js b/spec/javascript/test_nav_root_recursive.js index 12ab3ac2b..df785add2 100644 --- a/spec/javascript/test_nav_root_recursive.js +++ b/spec/javascript/test_nav_root_recursive.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NavRootRecursive', 'src/enum_negative.bin', function(r, NavRootRecursive) { +testHelper('NavRootRecursive', 'src/enum_negative.bin', function(r, NavRootRecursive_) { assert.strictEqual(r.value, 255); assert.strictEqual(r.next.value, 1); assert.strictEqual(r.next.rootValue, 255); diff --git a/spec/javascript/test_nested_same_name.js b/spec/javascript/test_nested_same_name.js index 7228ae82e..f7179aa2d 100644 --- a/spec/javascript/test_nested_same_name.js +++ b/spec/javascript/test_nested_same_name.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('NestedSameName', 'src/repeat_n_struct.bin', function(r, NestedSameName) { +testHelper('NestedSameName', 'src/repeat_n_struct.bin', function(r, NestedSameName_) { assert.strictEqual(r.mainData.mainSize, 2); assert.strictEqual(hexString(r.mainData.foo.data), hexString([16, 0, 0, 0])); }); diff --git a/spec/javascript/test_nested_same_name2.js b/spec/javascript/test_nested_same_name2.js index d140eed12..bd521e8b0 100644 --- a/spec/javascript/test_nested_same_name2.js +++ b/spec/javascript/test_nested_same_name2.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('NestedSameName2', 'src/nested_same_name2.bin', function(r, NestedSameName2) { +testHelper('NestedSameName2', 'src/nested_same_name2.bin', function(r, NestedSameName2_) { assert.strictEqual(r.version, 66); assert.strictEqual(r.mainData.mainSize, 2); assert.strictEqual(hexString(r.mainData.foo.data1), hexString([17, 17, 17, 17])); diff --git a/spec/javascript/test_nested_type_param.js b/spec/javascript/test_nested_type_param.js index a73db5d26..1997c0bc7 100644 --- a/spec/javascript/test_nested_type_param.js +++ b/spec/javascript/test_nested_type_param.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NestedTypeParam', 'src/term_strz.bin', function(r, NestedTypeParam) { +testHelper('NestedTypeParam', 'src/term_strz.bin', function(r, NestedTypeParam_) { assert.strictEqual(r.mainSeq.myLen, 5); assert.strictEqual(r.mainSeq.body, "foo|b"); }); diff --git a/spec/javascript/test_nested_types.js b/spec/javascript/test_nested_types.js index 4be3250dc..4ca28497e 100644 --- a/spec/javascript/test_nested_types.js +++ b/spec/javascript/test_nested_types.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NestedTypes', 'src/fixed_struct.bin', function(r, NestedTypes) { +testHelper('NestedTypes', 'src/fixed_struct.bin', function(r, NestedTypes_) { assert.strictEqual(r.one.typedAtRoot.valueB, 80); assert.strictEqual(r.one.typedHere.valueC, 65); assert.strictEqual(r.two.valueB, 67); diff --git a/spec/javascript/test_nested_types2.js b/spec/javascript/test_nested_types2.js index 2b914116b..ebac64e47 100644 --- a/spec/javascript/test_nested_types2.js +++ b/spec/javascript/test_nested_types2.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NestedTypes2', 'src/fixed_struct.bin', function(r, NestedTypes2) { +testHelper('NestedTypes2', 'src/fixed_struct.bin', function(r, NestedTypes2_) { assert.strictEqual(r.one.typedAtRoot.valueB, 80); assert.strictEqual(r.one.typedHere1.valueC, 65); assert.strictEqual(r.one.typedHere1.typedHere.valueD, 67); diff --git a/spec/javascript/test_nested_types3.js b/spec/javascript/test_nested_types3.js index 2ac6d4391..68a047e2a 100644 --- a/spec/javascript/test_nested_types3.js +++ b/spec/javascript/test_nested_types3.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NestedTypes3', 'src/fixed_struct.bin', function(r, NestedTypes3) { +testHelper('NestedTypes3', 'src/fixed_struct.bin', function(r, NestedTypes3_) { assert.strictEqual(r.aCc.valueCc, 80); assert.strictEqual(r.aCD.valueD, 65); assert.strictEqual(r.b.valueB, 67); diff --git a/spec/javascript/test_nested_types_import.js b/spec/javascript/test_nested_types_import.js index d2dac14d2..2086fd5aa 100644 --- a/spec/javascript/test_nested_types_import.js +++ b/spec/javascript/test_nested_types_import.js @@ -1,7 +1,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NestedTypesImport', 'src/fixed_struct.bin', function(r, NestedTypesImport) { +testHelper('NestedTypesImport', 'src/fixed_struct.bin', function(r, NestedTypesImport_) { assert.strictEqual(r.aCc.valueCc, 80); assert.strictEqual(r.aCD.valueD, 65); assert.strictEqual(r.b.valueB, 67); diff --git a/spec/javascript/test_non_standard.js b/spec/javascript/test_non_standard.js index 6457dad89..1f22a3256 100644 --- a/spec/javascript/test_non_standard.js +++ b/spec/javascript/test_non_standard.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('NonStandard', 'src/fixed_struct.bin', function(r, NonStandard) { +testHelper('NonStandard', 'src/fixed_struct.bin', function(r, NonStandard_) { assert.strictEqual(r.foo, 80); }); diff --git a/spec/javascript/test_opaque_external_type_02_parent.js b/spec/javascript/test_opaque_external_type_02_parent.js index 395f3360d..65c3d865c 100644 --- a/spec/javascript/test_opaque_external_type_02_parent.js +++ b/spec/javascript/test_opaque_external_type_02_parent.js @@ -1,7 +1,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('OpaqueExternalType02Parent', 'src/term_strz.bin', function(r, OpaqueExternalType02Parent) { +testHelper('OpaqueExternalType02Parent', 'src/term_strz.bin', function(r, OpaqueExternalType02Parent_) { assert.strictEqual(r.parent.child.s1, "foo"); assert.strictEqual(r.parent.child.s2, "bar"); assert.strictEqual(r.parent.child.s3.s3, "|baz@"); diff --git a/spec/javascript/test_optional_id.js b/spec/javascript/test_optional_id.js index 7ee5cbfc5..697a802bc 100644 --- a/spec/javascript/test_optional_id.js +++ b/spec/javascript/test_optional_id.js @@ -2,7 +2,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('OptionalId', 'src/fixed_struct.bin', function(r, OptionalId) { +testHelper('OptionalId', 'src/fixed_struct.bin', function(r, OptionalId_) { assert.strictEqual(r._unnamed0, 80); assert.strictEqual(r._unnamed1, 65); assert.strictEqual(hexString(r._unnamed2), hexString([67, 75, 45, 49, 255])); diff --git a/spec/javascript/test_params_call.js b/spec/javascript/test_params_call.js index 0de30ced7..81cfeeea5 100644 --- a/spec/javascript/test_params_call.js +++ b/spec/javascript/test_params_call.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ParamsCall', 'src/term_strz.bin', function(r, ParamsCall) { +testHelper('ParamsCall', 'src/term_strz.bin', function(r, ParamsCall_) { assert.strictEqual(r.buf1.body, "foo|b"); assert.strictEqual(r.buf2.body, "ar|ba"); assert.strictEqual(r.buf2.trailer, 122); diff --git a/spec/javascript/test_params_call_extra_parens.js b/spec/javascript/test_params_call_extra_parens.js index 63d81ed83..7c9d15621 100644 --- a/spec/javascript/test_params_call_extra_parens.js +++ b/spec/javascript/test_params_call_extra_parens.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ParamsCallExtraParens', 'src/term_strz.bin', function(r, ParamsCallExtraParens) { +testHelper('ParamsCallExtraParens', 'src/term_strz.bin', function(r, ParamsCallExtraParens_) { assert.strictEqual(r.buf1.body, "foo|b"); }); diff --git a/spec/javascript/test_params_pass_array_int.js b/spec/javascript/test_params_pass_array_int.js index 78176140d..3d28525ed 100644 --- a/spec/javascript/test_params_pass_array_int.js +++ b/spec/javascript/test_params_pass_array_int.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ParamsPassArrayInt', 'src/position_to_end.bin', function(r, ParamsPassArrayInt) { +testHelper('ParamsPassArrayInt', 'src/position_to_end.bin', function(r, ParamsPassArrayInt_) { assert.strictEqual(r.passInts.nums.length, 3); assert.strictEqual(r.passInts.nums[0], 513); assert.strictEqual(r.passInts.nums[1], 1027); diff --git a/spec/javascript/test_params_pass_array_str.js b/spec/javascript/test_params_pass_array_str.js index 8635abcd0..0524666bc 100644 --- a/spec/javascript/test_params_pass_array_str.js +++ b/spec/javascript/test_params_pass_array_str.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ParamsPassArrayStr', 'src/term_strz.bin', function(r, ParamsPassArrayStr) { +testHelper('ParamsPassArrayStr', 'src/term_strz.bin', function(r, ParamsPassArrayStr_) { assert.strictEqual(r.passStrArray.strs.length, 3); assert.strictEqual(r.passStrArray.strs[0], "fo"); assert.strictEqual(r.passStrArray.strs[1], "o|"); diff --git a/spec/javascript/test_params_pass_array_struct.js b/spec/javascript/test_params_pass_array_struct.js index 180e71da5..addd21f3a 100644 --- a/spec/javascript/test_params_pass_array_struct.js +++ b/spec/javascript/test_params_pass_array_struct.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ParamsPassArrayStruct', 'src/position_to_end.bin', function(r, ParamsPassArrayStruct) { +testHelper('ParamsPassArrayStruct', 'src/position_to_end.bin', function(r, ParamsPassArrayStruct_) { assert.strictEqual(r.passStructs.structs.length, 2); assert.strictEqual(r.passStructs.structs[0].f, 1); assert.strictEqual(r.passStructs.structs[1].b, 2); diff --git a/spec/javascript/test_params_pass_array_usertype.js b/spec/javascript/test_params_pass_array_usertype.js index 2545cb841..93a297f9e 100644 --- a/spec/javascript/test_params_pass_array_usertype.js +++ b/spec/javascript/test_params_pass_array_usertype.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ParamsPassArrayUsertype', 'src/position_to_end.bin', function(r, ParamsPassArrayUsertype) { +testHelper('ParamsPassArrayUsertype', 'src/position_to_end.bin', function(r, ParamsPassArrayUsertype_) { assert.strictEqual(r.passBlocks.bar.length, 2); assert.strictEqual(r.passBlocks.bar[0].foo, 1); assert.strictEqual(r.passBlocks.bar[1].foo, 2); diff --git a/spec/javascript/test_params_pass_bool.js b/spec/javascript/test_params_pass_bool.js index f7c656450..dafe63749 100644 --- a/spec/javascript/test_params_pass_bool.js +++ b/spec/javascript/test_params_pass_bool.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ParamsPassBool', 'src/term_strz.bin', function(r, ParamsPassBool) { +testHelper('ParamsPassBool', 'src/term_strz.bin', function(r, ParamsPassBool_) { assert.strictEqual(r.sFalse, false); assert.strictEqual(r.sTrue, true); assert.strictEqual(r.seqB1.arg, true); diff --git a/spec/javascript/test_params_pass_struct.js b/spec/javascript/test_params_pass_struct.js index 5fb3e32ef..33e4030b2 100644 --- a/spec/javascript/test_params_pass_struct.js +++ b/spec/javascript/test_params_pass_struct.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ParamsPassStruct', 'src/enum_negative.bin', function(r, ParamsPassStruct) { +testHelper('ParamsPassStruct', 'src/enum_negative.bin', function(r, ParamsPassStruct_) { assert.strictEqual(r.first.foo, 255); assert.strictEqual(r.one.bar.qux, 1); assert.strictEqual(r.one.foo.foo, 255); diff --git a/spec/javascript/test_params_pass_usertype.js b/spec/javascript/test_params_pass_usertype.js index fb5d73830..740881280 100644 --- a/spec/javascript/test_params_pass_usertype.js +++ b/spec/javascript/test_params_pass_usertype.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ParamsPassUsertype', 'src/position_in_seq.bin', function(r, ParamsPassUsertype) { +testHelper('ParamsPassUsertype', 'src/position_in_seq.bin', function(r, ParamsPassUsertype_) { assert.strictEqual(r.first.foo, 1); assert.strictEqual(hexString(r.one.buf), hexString([2])); }); diff --git a/spec/javascript/test_position_abs.js b/spec/javascript/test_position_abs.js index b2a2d47a3..aa459868e 100644 --- a/spec/javascript/test_position_abs.js +++ b/spec/javascript/test_position_abs.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('PositionAbs', 'src/position_abs.bin', function(r, PositionAbs) { +testHelper('PositionAbs', 'src/position_abs.bin', function(r, PositionAbs_) { assert.strictEqual(r.indexOffset, 32); assert.strictEqual(r.index.entry, "foo"); }); diff --git a/spec/javascript/test_position_in_seq.js b/spec/javascript/test_position_in_seq.js index 24badfa81..03a740982 100644 --- a/spec/javascript/test_position_in_seq.js +++ b/spec/javascript/test_position_in_seq.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('PositionInSeq', 'src/position_in_seq.bin', function(r, PositionInSeq) { +testHelper('PositionInSeq', 'src/position_in_seq.bin', function(r, PositionInSeq_) { assert.deepStrictEqual(r.numbers, [(0 + 1), 2, 3]); }); diff --git a/spec/javascript/test_position_to_end.js b/spec/javascript/test_position_to_end.js index 43257dd34..77c448ee4 100644 --- a/spec/javascript/test_position_to_end.js +++ b/spec/javascript/test_position_to_end.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('PositionToEnd', 'src/position_to_end.bin', function(r, PositionToEnd) { +testHelper('PositionToEnd', 'src/position_to_end.bin', function(r, PositionToEnd_) { assert.strictEqual(r.index.foo, 66); assert.strictEqual(r.index.bar, 4660); }); diff --git a/spec/javascript/test_process_coerce_bytes.js b/spec/javascript/test_process_coerce_bytes.js index c9a2e2de9..370c5c14d 100644 --- a/spec/javascript/test_process_coerce_bytes.js +++ b/spec/javascript/test_process_coerce_bytes.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ProcessCoerceBytes', 'src/process_coerce_bytes.bin', function(r, ProcessCoerceBytes) { +testHelper('ProcessCoerceBytes', 'src/process_coerce_bytes.bin', function(r, ProcessCoerceBytes_) { assert.strictEqual(r.records[0].flag, 0); assert.strictEqual(hexString(r.records[0].buf), hexString([65, 65, 65, 65])); assert.strictEqual(r.records[1].flag, 1); diff --git a/spec/javascript/test_process_coerce_switch.js b/spec/javascript/test_process_coerce_switch.js index bb8b5a4ca..7fffc87f9 100644 --- a/spec/javascript/test_process_coerce_switch.js +++ b/spec/javascript/test_process_coerce_switch.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ProcessCoerceSwitch', 'src/process_coerce_switch.bin', function(r, ProcessCoerceSwitch) { +testHelper('ProcessCoerceSwitch', 'src/process_coerce_switch.bin', function(r, ProcessCoerceSwitch_) { assert.strictEqual(r.bufType, 0); assert.strictEqual(r.flag, 0); assert.strictEqual(hexString(r.buf.bar), hexString([65, 65, 65, 65])); diff --git a/spec/javascript/test_process_coerce_usertype1.js b/spec/javascript/test_process_coerce_usertype1.js index a18fb7fb0..04b787c69 100644 --- a/spec/javascript/test_process_coerce_usertype1.js +++ b/spec/javascript/test_process_coerce_usertype1.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ProcessCoerceUsertype1', 'src/process_coerce_bytes.bin', function(r, ProcessCoerceUsertype1) { +testHelper('ProcessCoerceUsertype1', 'src/process_coerce_bytes.bin', function(r, ProcessCoerceUsertype1_) { assert.strictEqual(r.records[0].flag, 0); assert.strictEqual(r.records[0].buf.value, 1094795585); assert.strictEqual(r.records[1].flag, 1); diff --git a/spec/javascript/test_process_coerce_usertype2.js b/spec/javascript/test_process_coerce_usertype2.js index 31bce6f1b..069977036 100644 --- a/spec/javascript/test_process_coerce_usertype2.js +++ b/spec/javascript/test_process_coerce_usertype2.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ProcessCoerceUsertype2', 'src/process_coerce_bytes.bin', function(r, ProcessCoerceUsertype2) { +testHelper('ProcessCoerceUsertype2', 'src/process_coerce_bytes.bin', function(r, ProcessCoerceUsertype2_) { assert.strictEqual(r.records[0].flag, 0); assert.strictEqual(r.records[0].buf.value, 1094795585); assert.strictEqual(r.records[1].flag, 1); diff --git a/spec/javascript/test_process_custom.js b/spec/javascript/test_process_custom.js index b5952de75..b07604ed8 100644 --- a/spec/javascript/test_process_custom.js +++ b/spec/javascript/test_process_custom.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ProcessCustom', 'src/process_rotate.bin', function(r, ProcessCustom) { +testHelper('ProcessCustom', 'src/process_rotate.bin', function(r, ProcessCustom_) { assert.strictEqual(hexString(r.buf1), hexString([16, 179, 148, 148, 244])); assert.strictEqual(hexString(r.buf2), hexString([95, 186, 123, 147, 99, 35, 95])); assert.strictEqual(hexString(r.buf3), hexString([41, 51, 177, 56, 177])); diff --git a/spec/javascript/test_process_custom_no_args.js b/spec/javascript/test_process_custom_no_args.js index 636df769c..abe63f980 100644 --- a/spec/javascript/test_process_custom_no_args.js +++ b/spec/javascript/test_process_custom_no_args.js @@ -4,6 +4,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ProcessCustomNoArgs', 'src/process_rotate.bin', function(r, ProcessCustomNoArgs) { +testHelper('ProcessCustomNoArgs', 'src/process_rotate.bin', function(r, ProcessCustomNoArgs_) { assert.strictEqual(hexString(r.buf), hexString([95, 9, 172, 141, 141, 237, 95])); }); diff --git a/spec/javascript/test_process_repeat_bytes.js b/spec/javascript/test_process_repeat_bytes.js index 819182fb5..f964cbb47 100644 --- a/spec/javascript/test_process_repeat_bytes.js +++ b/spec/javascript/test_process_repeat_bytes.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ProcessRepeatBytes', 'src/process_xor_4.bin', function(r, ProcessRepeatBytes) { +testHelper('ProcessRepeatBytes', 'src/process_xor_4.bin', function(r, ProcessRepeatBytes_) { assert.strictEqual(hexString(r.bufs[0]), hexString([114, 37, 61, 138, 20])); assert.strictEqual(hexString(r.bufs[1]), hexString([74, 82, 170, 16, 68])); }); diff --git a/spec/javascript/test_process_repeat_usertype.js b/spec/javascript/test_process_repeat_usertype.js index 1dab704e6..63595d10a 100644 --- a/spec/javascript/test_process_repeat_usertype.js +++ b/spec/javascript/test_process_repeat_usertype.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ProcessRepeatUsertype', 'src/process_xor_4.bin', function(r, ProcessRepeatUsertype) { +testHelper('ProcessRepeatUsertype', 'src/process_xor_4.bin', function(r, ProcessRepeatUsertype_) { assert.strictEqual(r.blocks[0].a, -1975704206); assert.strictEqual(r.blocks[0].b, 20); assert.strictEqual(r.blocks[1].a, 279597642); diff --git a/spec/javascript/test_process_rotate.js b/spec/javascript/test_process_rotate.js index 46e0493db..351d76041 100644 --- a/spec/javascript/test_process_rotate.js +++ b/spec/javascript/test_process_rotate.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ProcessRotate', 'src/process_rotate.bin', function(r, ProcessRotate) { +testHelper('ProcessRotate', 'src/process_rotate.bin', function(r, ProcessRotate_) { assert.strictEqual(hexString(r.buf1), hexString([72, 101, 108, 108, 111])); assert.strictEqual(hexString(r.buf2), hexString([87, 111, 114, 108, 100])); assert.strictEqual(hexString(r.buf3), hexString([84, 104, 101, 114, 101])); diff --git a/spec/javascript/test_process_to_user.js b/spec/javascript/test_process_to_user.js index 77a26abc7..9b672ce27 100644 --- a/spec/javascript/test_process_to_user.js +++ b/spec/javascript/test_process_to_user.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ProcessToUser', 'src/process_rotate.bin', function(r, ProcessToUser) { +testHelper('ProcessToUser', 'src/process_rotate.bin', function(r, ProcessToUser_) { assert.strictEqual(r.buf1.str, "Hello"); }); diff --git a/spec/javascript/test_process_xor4_const.js b/spec/javascript/test_process_xor4_const.js index 8592cbb75..a50c772de 100644 --- a/spec/javascript/test_process_xor4_const.js +++ b/spec/javascript/test_process_xor4_const.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ProcessXor4Const', 'src/process_xor_4.bin', function(r, ProcessXor4Const) { +testHelper('ProcessXor4Const', 'src/process_xor_4.bin', function(r, ProcessXor4Const_) { assert.strictEqual(hexString(r.key), hexString([236, 187, 163, 20])); assert.strictEqual(hexString(r.buf), hexString([102, 111, 111, 32, 98, 97, 114])); }); diff --git a/spec/javascript/test_process_xor4_value.js b/spec/javascript/test_process_xor4_value.js index c55941b63..479f138d3 100644 --- a/spec/javascript/test_process_xor4_value.js +++ b/spec/javascript/test_process_xor4_value.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ProcessXor4Value', 'src/process_xor_4.bin', function(r, ProcessXor4Value) { +testHelper('ProcessXor4Value', 'src/process_xor_4.bin', function(r, ProcessXor4Value_) { assert.strictEqual(hexString(r.key), hexString([236, 187, 163, 20])); assert.strictEqual(hexString(r.buf), hexString([102, 111, 111, 32, 98, 97, 114])); }); diff --git a/spec/javascript/test_process_xor_const.js b/spec/javascript/test_process_xor_const.js index 4128be510..36ea1b2ab 100644 --- a/spec/javascript/test_process_xor_const.js +++ b/spec/javascript/test_process_xor_const.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ProcessXorConst', 'src/process_xor_1.bin', function(r, ProcessXorConst) { +testHelper('ProcessXorConst', 'src/process_xor_1.bin', function(r, ProcessXorConst_) { assert.strictEqual(r.key, 255); assert.strictEqual(hexString(r.buf), hexString([102, 111, 111, 32, 98, 97, 114])); }); diff --git a/spec/javascript/test_process_xor_value.js b/spec/javascript/test_process_xor_value.js index 5169f6982..b724f56ce 100644 --- a/spec/javascript/test_process_xor_value.js +++ b/spec/javascript/test_process_xor_value.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ProcessXorValue', 'src/process_xor_1.bin', function(r, ProcessXorValue) { +testHelper('ProcessXorValue', 'src/process_xor_1.bin', function(r, ProcessXorValue_) { assert.strictEqual(r.key, 255); assert.strictEqual(hexString(r.buf), hexString([102, 111, 111, 32, 98, 97, 114])); }); diff --git a/spec/javascript/test_recursive_one.js b/spec/javascript/test_recursive_one.js index ff76a8919..d218c65ea 100644 --- a/spec/javascript/test_recursive_one.js +++ b/spec/javascript/test_recursive_one.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('RecursiveOne', 'src/fixed_struct.bin', function(r, RecursiveOne) { +testHelper('RecursiveOne', 'src/fixed_struct.bin', function(r, RecursiveOne_) { assert.strictEqual(r.one, 80); assert.strictEqual(r.next.one, 65); assert.strictEqual(r.next.next.one, 67); diff --git a/spec/javascript/test_repeat_eos_bit.js b/spec/javascript/test_repeat_eos_bit.js index 5e4b50c92..db7e80eb7 100644 --- a/spec/javascript/test_repeat_eos_bit.js +++ b/spec/javascript/test_repeat_eos_bit.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('RepeatEosBit', 'src/enum_0.bin', function(r, RepeatEosBit) { +testHelper('RepeatEosBit', 'src/enum_0.bin', function(r, RepeatEosBit_) { assert.strictEqual(r.nibbles.length, 16); }); diff --git a/spec/javascript/test_repeat_eos_struct.js b/spec/javascript/test_repeat_eos_struct.js index a2cb8d114..dc1683400 100644 --- a/spec/javascript/test_repeat_eos_struct.js +++ b/spec/javascript/test_repeat_eos_struct.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('RepeatEosStruct', 'src/repeat_eos_struct.bin', function(r, RepeatEosStruct) { +testHelper('RepeatEosStruct', 'src/repeat_eos_struct.bin', function(r, RepeatEosStruct_) { assert.strictEqual(r.chunks.length, 2); assert.strictEqual(r.chunks[0].offset, 0); assert.strictEqual(r.chunks[0].len, 66); diff --git a/spec/javascript/test_repeat_eos_u4.js b/spec/javascript/test_repeat_eos_u4.js index 6bb506df8..f08c7e5dd 100644 --- a/spec/javascript/test_repeat_eos_u4.js +++ b/spec/javascript/test_repeat_eos_u4.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('RepeatEosU4', 'src/repeat_eos_struct.bin', function(r, RepeatEosU4) { +testHelper('RepeatEosU4', 'src/repeat_eos_struct.bin', function(r, RepeatEosU4_) { assert.deepStrictEqual(r.numbers, [0, 66, 66, 2069]); }); diff --git a/spec/javascript/test_repeat_n_struct.js b/spec/javascript/test_repeat_n_struct.js index 3ce80c08c..d425d6ddc 100644 --- a/spec/javascript/test_repeat_n_struct.js +++ b/spec/javascript/test_repeat_n_struct.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('RepeatNStruct', 'src/repeat_n_struct.bin', function(r, RepeatNStruct) { +testHelper('RepeatNStruct', 'src/repeat_n_struct.bin', function(r, RepeatNStruct_) { assert.strictEqual(r.chunks.length, 2); assert.strictEqual(r.chunks[0].offset, 16); assert.strictEqual(r.chunks[0].len, 8312); diff --git a/spec/javascript/test_repeat_n_strz.js b/spec/javascript/test_repeat_n_strz.js index a73e526ad..9d19cbb60 100644 --- a/spec/javascript/test_repeat_n_strz.js +++ b/spec/javascript/test_repeat_n_strz.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('RepeatNStrz', 'src/repeat_n_strz.bin', function(r, RepeatNStrz) { +testHelper('RepeatNStrz', 'src/repeat_n_strz.bin', function(r, RepeatNStrz_) { assert.strictEqual(r.qty, 2); assert.deepStrictEqual(r.lines, ["foo", "bar"]); }); diff --git a/spec/javascript/test_repeat_n_strz_double.js b/spec/javascript/test_repeat_n_strz_double.js index 2d0eb25f0..0d6559ee2 100644 --- a/spec/javascript/test_repeat_n_strz_double.js +++ b/spec/javascript/test_repeat_n_strz_double.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('RepeatNStrzDouble', 'src/repeat_n_strz.bin', function(r, RepeatNStrzDouble) { +testHelper('RepeatNStrzDouble', 'src/repeat_n_strz.bin', function(r, RepeatNStrzDouble_) { assert.strictEqual(r.qty, 2); assert.deepStrictEqual(r.lines1, ["foo"]); assert.deepStrictEqual(r.lines2, ["bar"]); diff --git a/spec/javascript/test_repeat_until_calc_array_type.js b/spec/javascript/test_repeat_until_calc_array_type.js index ca6bc43d1..90361c174 100644 --- a/spec/javascript/test_repeat_until_calc_array_type.js +++ b/spec/javascript/test_repeat_until_calc_array_type.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('RepeatUntilCalcArrayType', 'src/repeat_until_process.bin', function(r, RepeatUntilCalcArrayType) { +testHelper('RepeatUntilCalcArrayType', 'src/repeat_until_process.bin', function(r, RepeatUntilCalcArrayType_) { assert.strictEqual(r.records.length, 3); assert.strictEqual(r.records[0].marker, 232); assert.strictEqual(r.records[0].body, 2863311546); diff --git a/spec/javascript/test_repeat_until_complex.js b/spec/javascript/test_repeat_until_complex.js index e94e3a078..56678b15c 100644 --- a/spec/javascript/test_repeat_until_complex.js +++ b/spec/javascript/test_repeat_until_complex.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('RepeatUntilComplex', 'src/repeat_until_complex.bin', function(r, RepeatUntilComplex) { +testHelper('RepeatUntilComplex', 'src/repeat_until_complex.bin', function(r, RepeatUntilComplex_) { assert.strictEqual(r.first.length, 3); assert.strictEqual(r.first[0].count, 4); assert.deepStrictEqual(r.first[0].values, [(0 + 1), 2, 3, 4]); diff --git a/spec/javascript/test_repeat_until_s4.js b/spec/javascript/test_repeat_until_s4.js index b8651c981..de32d493c 100644 --- a/spec/javascript/test_repeat_until_s4.js +++ b/spec/javascript/test_repeat_until_s4.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('RepeatUntilS4', 'src/repeat_until_s4.bin', function(r, RepeatUntilS4) { +testHelper('RepeatUntilS4', 'src/repeat_until_s4.bin', function(r, RepeatUntilS4_) { assert.deepStrictEqual(r.entries, [66, 4919, -251658241, -1]); assert.strictEqual(r.afterall, "foobar"); }); diff --git a/spec/javascript/test_repeat_until_sized.js b/spec/javascript/test_repeat_until_sized.js index c7f3560e5..41b8104ed 100644 --- a/spec/javascript/test_repeat_until_sized.js +++ b/spec/javascript/test_repeat_until_sized.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('RepeatUntilSized', 'src/repeat_until_process.bin', function(r, RepeatUntilSized) { +testHelper('RepeatUntilSized', 'src/repeat_until_process.bin', function(r, RepeatUntilSized_) { assert.strictEqual(r.records.length, 3); assert.strictEqual(r.records[0].marker, 232); assert.strictEqual(r.records[0].body, 2863311546); diff --git a/spec/javascript/test_str_encodings.js b/spec/javascript/test_str_encodings.js index ac6542516..7c220e480 100644 --- a/spec/javascript/test_str_encodings.js +++ b/spec/javascript/test_str_encodings.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('StrEncodings', 'src/str_encodings.bin', function(r, StrEncodings) { +testHelper('StrEncodings', 'src/str_encodings.bin', function(r, StrEncodings_) { assert.strictEqual(r.str1, "Some ASCII"); assert.strictEqual(r.str2, "\u3053\u3093\u306b\u3061\u306f"); assert.strictEqual(r.str3, "\u3053\u3093\u306b\u3061\u306f"); diff --git a/spec/javascript/test_str_encodings_default.js b/spec/javascript/test_str_encodings_default.js index 891ded7c0..dd57d37e7 100644 --- a/spec/javascript/test_str_encodings_default.js +++ b/spec/javascript/test_str_encodings_default.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('StrEncodingsDefault', 'src/str_encodings.bin', function(r, StrEncodingsDefault) { +testHelper('StrEncodingsDefault', 'src/str_encodings.bin', function(r, StrEncodingsDefault_) { assert.strictEqual(r.str1, "Some ASCII"); assert.strictEqual(r.rest.str2, "\u3053\u3093\u306b\u3061\u306f"); assert.strictEqual(r.rest.str3, "\u3053\u3093\u306b\u3061\u306f"); diff --git a/spec/javascript/test_str_encodings_escaping_enc.js b/spec/javascript/test_str_encodings_escaping_enc.js index 3e26b25d5..6de9d223e 100644 --- a/spec/javascript/test_str_encodings_escaping_enc.js +++ b/spec/javascript/test_str_encodings_escaping_enc.js @@ -22,7 +22,7 @@ function assertUnknownEncoding(expectedEncoding, fn) { assert.throws(fn, validateErr.bind(null, expectedEncoding)); } -testHelper('StrEncodingsEscapingEnc', 'src/str_encodings.bin', function(r, StrEncodingsEscapingEnc) { +testHelper('StrEncodingsEscapingEnc', 'src/str_encodings.bin', function(r, StrEncodingsEscapingEnc_) { assertUnknownEncoding( "ASCII\\\\x", function() { diff --git a/spec/javascript/test_str_encodings_escaping_to_s.js b/spec/javascript/test_str_encodings_escaping_to_s.js index d125a9426..a180f3c7a 100644 --- a/spec/javascript/test_str_encodings_escaping_to_s.js +++ b/spec/javascript/test_str_encodings_escaping_to_s.js @@ -31,7 +31,7 @@ function assertUnknownEncoding(expectedEncoding, fn) { assert.throws(fn, validateErr.bind(null, expectedEncoding)); } -testHelper('StrEncodingsEscapingToS', 'src/str_encodings.bin', function(r, StrEncodingsEscapingToS) { +testHelper('StrEncodingsEscapingToS', 'src/str_encodings.bin', function(r, StrEncodingsEscapingToS_) { assertUnknownEncoding( "ASCII\\\\x", function() { diff --git a/spec/javascript/test_str_encodings_utf16.js b/spec/javascript/test_str_encodings_utf16.js index 1e59223b7..7e650ea65 100644 --- a/spec/javascript/test_str_encodings_utf16.js +++ b/spec/javascript/test_str_encodings_utf16.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('StrEncodingsUtf16', 'src/str_encodings_utf16.bin', function(r, StrEncodingsUtf16) { +testHelper('StrEncodingsUtf16', 'src/str_encodings_utf16.bin', function(r, StrEncodingsUtf16_) { assert.strictEqual(r.lenBe, 12); assert.strictEqual(r.beBomRemoved.bom, 65279); assert.strictEqual(r.beBomRemoved.str, "\u3053\u3093\u306b\u3061\u306f"); diff --git a/spec/javascript/test_str_eos.js b/spec/javascript/test_str_eos.js index 7114376d1..a06a2d0b9 100644 --- a/spec/javascript/test_str_eos.js +++ b/spec/javascript/test_str_eos.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('StrEos', 'src/term_strz.bin', function(r, StrEos) { +testHelper('StrEos', 'src/term_strz.bin', function(r, StrEos_) { assert.strictEqual(r.str, "foo|bar|baz@"); }); diff --git a/spec/javascript/test_str_literals.js b/spec/javascript/test_str_literals.js index 3b3a6740e..cc794359b 100644 --- a/spec/javascript/test_str_literals.js +++ b/spec/javascript/test_str_literals.js @@ -1,7 +1,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('StrLiterals', 'src/fixed_struct.bin', function(r, StrLiterals) { +testHelper('StrLiterals', 'src/fixed_struct.bin', function(r, StrLiterals_) { function strToArr(s) { var r = []; for (var i = 0; i < s.length; i++) diff --git a/spec/javascript/test_str_literals2.js b/spec/javascript/test_str_literals2.js index 209bcb1f0..3f94400b6 100644 --- a/spec/javascript/test_str_literals2.js +++ b/spec/javascript/test_str_literals2.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('StrLiterals2', 'src/fixed_struct.bin', function(r, StrLiterals2) { +testHelper('StrLiterals2', 'src/fixed_struct.bin', function(r, StrLiterals2_) { assert.strictEqual(r.dollar1, "$foo"); assert.strictEqual(r.dollar2, "${foo}"); assert.strictEqual(r.hash, "#{foo}"); diff --git a/spec/javascript/test_str_literals_latin1.js b/spec/javascript/test_str_literals_latin1.js index 49c5ff08a..3a554a99b 100644 --- a/spec/javascript/test_str_literals_latin1.js +++ b/spec/javascript/test_str_literals_latin1.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('StrLiteralsLatin1', 'src/str_literals_latin1.bin', function(r, StrLiteralsLatin1) { +testHelper('StrLiteralsLatin1', 'src/str_literals_latin1.bin', function(r, StrLiteralsLatin1_) { assert.strictEqual(r.parsedEqLiteral, true); }); diff --git a/spec/javascript/test_str_pad_term.js b/spec/javascript/test_str_pad_term.js index 8f7a63fac..e2340343b 100644 --- a/spec/javascript/test_str_pad_term.js +++ b/spec/javascript/test_str_pad_term.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('StrPadTerm', 'src/str_pad_term.bin', function(r, StrPadTerm) { +testHelper('StrPadTerm', 'src/str_pad_term.bin', function(r, StrPadTerm_) { assert.strictEqual(r.strPad, "str1"); assert.strictEqual(r.strTerm, "str2foo"); assert.strictEqual(r.strTermAndPad, "str+++3bar+++"); diff --git a/spec/javascript/test_str_pad_term_empty.js b/spec/javascript/test_str_pad_term_empty.js index a6c4d30f9..d72268cf8 100644 --- a/spec/javascript/test_str_pad_term_empty.js +++ b/spec/javascript/test_str_pad_term_empty.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('StrPadTermEmpty', 'src/str_pad_term_empty.bin', function(r, StrPadTermEmpty) { +testHelper('StrPadTermEmpty', 'src/str_pad_term_empty.bin', function(r, StrPadTermEmpty_) { assert.strictEqual(r.strPad, ""); assert.strictEqual(r.strTerm, ""); assert.strictEqual(r.strTermAndPad, ""); diff --git a/spec/javascript/test_str_pad_term_utf16.js b/spec/javascript/test_str_pad_term_utf16.js index e1916b156..7d2c2c0c7 100644 --- a/spec/javascript/test_str_pad_term_utf16.js +++ b/spec/javascript/test_str_pad_term_utf16.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('StrPadTermUtf16', 'src/str_pad_term_utf16.bin', function(r, StrPadTermUtf16) { +testHelper('StrPadTermUtf16', 'src/str_pad_term_utf16.bin', function(r, StrPadTermUtf16_) { assert.strictEqual(r.strTerm, "a\u0200b"); assert.strictEqual(r.strTermInclude, "c\u0200d\x00"); assert.strictEqual(r.strTermAndPad, "e\u0200f"); diff --git a/spec/javascript/test_switch_bytearray.js b/spec/javascript/test_switch_bytearray.js index 88b9591b3..0af2a077a 100644 --- a/spec/javascript/test_switch_bytearray.js +++ b/spec/javascript/test_switch_bytearray.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('SwitchBytearray', 'src/switch_opcodes.bin', function(r, SwitchBytearray) { +testHelper('SwitchBytearray', 'src/switch_opcodes.bin', function(r, SwitchBytearray_) { assert.strictEqual(r.opcodes.length, 4); assert.strictEqual(hexString(r.opcodes[0].code), hexString([83])); assert.strictEqual(r.opcodes[0].body.value, "foobar"); diff --git a/spec/javascript/test_switch_else_only.js b/spec/javascript/test_switch_else_only.js index 8085b5579..e7d04f566 100644 --- a/spec/javascript/test_switch_else_only.js +++ b/spec/javascript/test_switch_else_only.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('SwitchElseOnly', 'src/switch_opcodes.bin', function(r, SwitchElseOnly) { +testHelper('SwitchElseOnly', 'src/switch_opcodes.bin', function(r, SwitchElseOnly_) { assert.strictEqual(r.opcode, 83); assert.strictEqual(r.primByte, 102); assert.strictEqual(hexString(r.ut.value), hexString([114, 0, 73, 66])); diff --git a/spec/javascript/test_switch_integers.js b/spec/javascript/test_switch_integers.js index 86a31c0ae..517e69eaf 100644 --- a/spec/javascript/test_switch_integers.js +++ b/spec/javascript/test_switch_integers.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('SwitchIntegers', 'src/switch_integers.bin', function(r, SwitchIntegers) { +testHelper('SwitchIntegers', 'src/switch_integers.bin', function(r, SwitchIntegers_) { assert.strictEqual(r.opcodes.length, 4); assert.strictEqual(r.opcodes[0].code, 1); assert.strictEqual(r.opcodes[0].body, 7); diff --git a/spec/javascript/test_switch_integers2.js b/spec/javascript/test_switch_integers2.js index 89af12c46..ae3daf56b 100644 --- a/spec/javascript/test_switch_integers2.js +++ b/spec/javascript/test_switch_integers2.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('SwitchIntegers2', 'src/switch_integers.bin', function(r, SwitchIntegers2) { +testHelper('SwitchIntegers2', 'src/switch_integers.bin', function(r, SwitchIntegers2_) { assert.strictEqual(r.code, 1); assert.strictEqual(r.len, 7); assert.strictEqual(hexString(r.ham), hexString([2, 64, 64, 4, 55, 19, 0])); diff --git a/spec/javascript/test_switch_manual_enum_invalid.js b/spec/javascript/test_switch_manual_enum_invalid.js index 43d757ff0..354f42484 100644 --- a/spec/javascript/test_switch_manual_enum_invalid.js +++ b/spec/javascript/test_switch_manual_enum_invalid.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('SwitchManualEnumInvalid', 'src/enum_negative.bin', function(r, SwitchManualEnumInvalid) { +testHelper('SwitchManualEnumInvalid', 'src/enum_negative.bin', function(r, SwitchManualEnumInvalid_) { assert.strictEqual(r.opcodes.length, 2); assert.strictEqual(r.opcodes[0].code, 255); assert.strictEqual(r.opcodes[0].body, undefined); diff --git a/spec/javascript/test_switch_manual_enum_invalid_else.js b/spec/javascript/test_switch_manual_enum_invalid_else.js index 6c7b2e25e..2b25e479c 100644 --- a/spec/javascript/test_switch_manual_enum_invalid_else.js +++ b/spec/javascript/test_switch_manual_enum_invalid_else.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('SwitchManualEnumInvalidElse', 'src/enum_negative.bin', function(r, SwitchManualEnumInvalidElse) { +testHelper('SwitchManualEnumInvalidElse', 'src/enum_negative.bin', function(r, SwitchManualEnumInvalidElse_) { assert.strictEqual(r.opcodes.length, 2); assert.strictEqual(r.opcodes[0].code, 255); assert.strictEqual(r.opcodes[0].body.value, 123); diff --git a/spec/javascript/test_switch_manual_int.js b/spec/javascript/test_switch_manual_int.js index 35de16f84..3367a9cfb 100644 --- a/spec/javascript/test_switch_manual_int.js +++ b/spec/javascript/test_switch_manual_int.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('SwitchManualInt', 'src/switch_opcodes.bin', function(r, SwitchManualInt) { +testHelper('SwitchManualInt', 'src/switch_opcodes.bin', function(r, SwitchManualInt_) { assert.strictEqual(r.opcodes.length, 4); assert.strictEqual(r.opcodes[0].code, 83); assert.strictEqual(r.opcodes[0].body.value, "foobar"); diff --git a/spec/javascript/test_switch_manual_int_else.js b/spec/javascript/test_switch_manual_int_else.js index c9272ba1e..7c70b7409 100644 --- a/spec/javascript/test_switch_manual_int_else.js +++ b/spec/javascript/test_switch_manual_int_else.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('SwitchManualIntElse', 'src/switch_opcodes2.bin', function(r, SwitchManualIntElse) { +testHelper('SwitchManualIntElse', 'src/switch_opcodes2.bin', function(r, SwitchManualIntElse_) { assert.strictEqual(r.opcodes.length, 4); assert.strictEqual(r.opcodes[0].code, 83); assert.strictEqual(r.opcodes[0].body.value, "foo"); diff --git a/spec/javascript/test_switch_manual_int_size.js b/spec/javascript/test_switch_manual_int_size.js index 0aa9706d6..79b0452da 100644 --- a/spec/javascript/test_switch_manual_int_size.js +++ b/spec/javascript/test_switch_manual_int_size.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('SwitchManualIntSize', 'src/switch_tlv.bin', function(r, SwitchManualIntSize) { +testHelper('SwitchManualIntSize', 'src/switch_tlv.bin', function(r, SwitchManualIntSize_) { assert.strictEqual(r.chunks.length, 4); assert.strictEqual(r.chunks[0].code, 17); assert.strictEqual(r.chunks[0].body.title, "Stuff"); diff --git a/spec/javascript/test_switch_manual_int_size_else.js b/spec/javascript/test_switch_manual_int_size_else.js index 1fe45ae42..8602ef067 100644 --- a/spec/javascript/test_switch_manual_int_size_else.js +++ b/spec/javascript/test_switch_manual_int_size_else.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('SwitchManualIntSizeElse', 'src/switch_tlv.bin', function(r, SwitchManualIntSizeElse) { +testHelper('SwitchManualIntSizeElse', 'src/switch_tlv.bin', function(r, SwitchManualIntSizeElse_) { assert.strictEqual(r.chunks.length, 4); assert.strictEqual(r.chunks[0].code, 17); assert.strictEqual(r.chunks[0].body.title, "Stuff"); diff --git a/spec/javascript/test_switch_manual_int_size_eos.js b/spec/javascript/test_switch_manual_int_size_eos.js index 49b8268ab..85dc622e3 100644 --- a/spec/javascript/test_switch_manual_int_size_eos.js +++ b/spec/javascript/test_switch_manual_int_size_eos.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('SwitchManualIntSizeEos', 'src/switch_tlv.bin', function(r, SwitchManualIntSizeEos) { +testHelper('SwitchManualIntSizeEos', 'src/switch_tlv.bin', function(r, SwitchManualIntSizeEos_) { assert.strictEqual(r.chunks.length, 4); assert.strictEqual(r.chunks[0].code, 17); assert.strictEqual(r.chunks[0].body.body.title, "Stuff"); diff --git a/spec/javascript/test_switch_manual_str.js b/spec/javascript/test_switch_manual_str.js index 9f019d6d0..c826702d1 100644 --- a/spec/javascript/test_switch_manual_str.js +++ b/spec/javascript/test_switch_manual_str.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('SwitchManualStr', 'src/switch_opcodes.bin', function(r, SwitchManualStr) { +testHelper('SwitchManualStr', 'src/switch_opcodes.bin', function(r, SwitchManualStr_) { assert.strictEqual(r.opcodes.length, 4); assert.strictEqual(r.opcodes[0].code, "S"); assert.strictEqual(r.opcodes[0].body.value, "foobar"); diff --git a/spec/javascript/test_switch_manual_str_else.js b/spec/javascript/test_switch_manual_str_else.js index 1663fa802..51bcdbe34 100644 --- a/spec/javascript/test_switch_manual_str_else.js +++ b/spec/javascript/test_switch_manual_str_else.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('SwitchManualStrElse', 'src/switch_opcodes2.bin', function(r, SwitchManualStrElse) { +testHelper('SwitchManualStrElse', 'src/switch_opcodes2.bin', function(r, SwitchManualStrElse_) { assert.strictEqual(r.opcodes.length, 4); assert.strictEqual(r.opcodes[0].code, "S"); assert.strictEqual(r.opcodes[0].body.value, "foo"); diff --git a/spec/javascript/test_switch_multi_bool_ops.js b/spec/javascript/test_switch_multi_bool_ops.js index 9aaac8e99..82c964d2f 100644 --- a/spec/javascript/test_switch_multi_bool_ops.js +++ b/spec/javascript/test_switch_multi_bool_ops.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('SwitchMultiBoolOps', 'src/switch_integers.bin', function(r, SwitchMultiBoolOps) { +testHelper('SwitchMultiBoolOps', 'src/switch_integers.bin', function(r, SwitchMultiBoolOps_) { assert.strictEqual(r.opcodes.length, 4); assert.strictEqual(r.opcodes[0].code, 1); assert.strictEqual(r.opcodes[0].body, 7); diff --git a/spec/javascript/test_switch_repeat_expr.js b/spec/javascript/test_switch_repeat_expr.js index e1b8a332b..0a2b0741d 100644 --- a/spec/javascript/test_switch_repeat_expr.js +++ b/spec/javascript/test_switch_repeat_expr.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('SwitchRepeatExpr', 'src/switch_tlv.bin', function(r, SwitchRepeatExpr) { +testHelper('SwitchRepeatExpr', 'src/switch_tlv.bin', function(r, SwitchRepeatExpr_) { assert.strictEqual(r.code, 17); assert.strictEqual(r.size, 9); assert.strictEqual(hexString(r.body[0].first), hexString([83, 116, 117, 102, 102, 0, 77, 101, 0])); diff --git a/spec/javascript/test_switch_repeat_expr_invalid.js b/spec/javascript/test_switch_repeat_expr_invalid.js index 76164955d..4af493e45 100644 --- a/spec/javascript/test_switch_repeat_expr_invalid.js +++ b/spec/javascript/test_switch_repeat_expr_invalid.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('SwitchRepeatExprInvalid', 'src/switch_tlv.bin', function(r, SwitchRepeatExprInvalid) { +testHelper('SwitchRepeatExprInvalid', 'src/switch_tlv.bin', function(r, SwitchRepeatExprInvalid_) { assert.strictEqual(r.code, 17); assert.strictEqual(r.size, 9); assert.strictEqual(hexString(r.body[0]), hexString([83, 116, 117, 102, 102, 0, 77, 101, 0])); diff --git a/spec/javascript/test_term_bytes.js b/spec/javascript/test_term_bytes.js index 0ad5b6491..8843fc780 100644 --- a/spec/javascript/test_term_bytes.js +++ b/spec/javascript/test_term_bytes.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('TermBytes', 'src/term_strz.bin', function(r, TermBytes) { +testHelper('TermBytes', 'src/term_strz.bin', function(r, TermBytes_) { assert.strictEqual(hexString(r.s1), hexString([102, 111, 111])); assert.strictEqual(hexString(r.s2), hexString([98, 97, 114])); assert.strictEqual(hexString(r.s3), hexString([124, 98, 97, 122, 64])); diff --git a/spec/javascript/test_term_strz.js b/spec/javascript/test_term_strz.js index e2e5d32b1..ac1e73a91 100644 --- a/spec/javascript/test_term_strz.js +++ b/spec/javascript/test_term_strz.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('TermStrz', 'src/term_strz.bin', function(r, TermStrz) { +testHelper('TermStrz', 'src/term_strz.bin', function(r, TermStrz_) { assert.strictEqual(r.s1, "foo"); assert.strictEqual(r.s2, "bar"); assert.strictEqual(r.s3, "|baz@"); diff --git a/spec/javascript/test_term_strz_utf16_v1.js b/spec/javascript/test_term_strz_utf16_v1.js index 3fd94eaa3..85c69a7ad 100644 --- a/spec/javascript/test_term_strz_utf16_v1.js +++ b/spec/javascript/test_term_strz_utf16_v1.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('TermStrzUtf16V1', 'src/term_strz_utf16.bin', function(r, TermStrzUtf16V1) { +testHelper('TermStrzUtf16V1', 'src/term_strz_utf16.bin', function(r, TermStrzUtf16V1_) { assert.strictEqual(r.s1, "a\u0200b"); assert.strictEqual(r.s2, "c\u0200d"); assert.strictEqual(r.term, 0); diff --git a/spec/javascript/test_term_strz_utf16_v2.js b/spec/javascript/test_term_strz_utf16_v2.js index 83684f5b6..ac0687f90 100644 --- a/spec/javascript/test_term_strz_utf16_v2.js +++ b/spec/javascript/test_term_strz_utf16_v2.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('TermStrzUtf16V2', 'src/term_strz_utf16.bin', function(r, TermStrzUtf16V2) { +testHelper('TermStrzUtf16V2', 'src/term_strz_utf16.bin', function(r, TermStrzUtf16V2_) { assert.strictEqual(r.s1, "a\u0200b"); assert.strictEqual(r.s2, "c\u0200d\x00"); assert.strictEqual(r.s3, "e\u0200f"); diff --git a/spec/javascript/test_term_strz_utf16_v3.js b/spec/javascript/test_term_strz_utf16_v3.js index d9f636058..53335379a 100644 --- a/spec/javascript/test_term_strz_utf16_v3.js +++ b/spec/javascript/test_term_strz_utf16_v3.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('TermStrzUtf16V3', 'src/term_strz_utf16.bin', function(r, TermStrzUtf16V3) { +testHelper('TermStrzUtf16V3', 'src/term_strz_utf16.bin', function(r, TermStrzUtf16V3_) { assert.strictEqual(r.s1, "a\u0200b"); assert.strictEqual(r.term, 0); assert.strictEqual(r.s2, "c\u0200d"); diff --git a/spec/javascript/test_term_strz_utf16_v4.js b/spec/javascript/test_term_strz_utf16_v4.js index f1b079d9a..54625cb19 100644 --- a/spec/javascript/test_term_strz_utf16_v4.js +++ b/spec/javascript/test_term_strz_utf16_v4.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('TermStrzUtf16V4', 'src/term_strz_utf16.bin', function(r, TermStrzUtf16V4) { +testHelper('TermStrzUtf16V4', 'src/term_strz_utf16.bin', function(r, TermStrzUtf16V4_) { assert.strictEqual(r.s1.value, "a\u0200b"); assert.strictEqual(r.s2.value, "c\u0200d"); assert.strictEqual(r.s3.value, "e\u0200f"); diff --git a/spec/javascript/test_term_u1_val.js b/spec/javascript/test_term_u1_val.js index 3018aa037..795d5479f 100644 --- a/spec/javascript/test_term_u1_val.js +++ b/spec/javascript/test_term_u1_val.js @@ -4,7 +4,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('TermU1Val', 'src/str_encodings.bin', function(r, TermU1Val) { +testHelper('TermU1Val', 'src/str_encodings.bin', function(r, TermU1Val_) { assert.strictEqual(hexString(r.foo), hexString([10, 0, 83, 111, 109, 101, 32, 65, 83, 67, 73, 73, 15, 0])); assert.strictEqual(r.bar, "\u3053\u3093\u306b"); }); diff --git a/spec/javascript/test_type_int_unary_op.js b/spec/javascript/test_type_int_unary_op.js index 477de08d7..d917fc9a7 100644 --- a/spec/javascript/test_type_int_unary_op.js +++ b/spec/javascript/test_type_int_unary_op.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('TypeIntUnaryOp', 'src/fixed_struct.bin', function(r, TypeIntUnaryOp) { +testHelper('TypeIntUnaryOp', 'src/fixed_struct.bin', function(r, TypeIntUnaryOp_) { assert.strictEqual(r.valueS2, 16720); assert.strictEqual(r.valueS8, 4706543082108963651); assert.strictEqual(r.unaryS2, -16720); diff --git a/spec/javascript/test_type_ternary.js b/spec/javascript/test_type_ternary.js index dc530d640..21a83532b 100644 --- a/spec/javascript/test_type_ternary.js +++ b/spec/javascript/test_type_ternary.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('TypeTernary', 'src/term_strz.bin', function(r, TypeTernary) { +testHelper('TypeTernary', 'src/term_strz.bin', function(r, TypeTernary_) { assert.strictEqual(r.dif.value, 101); }); diff --git a/spec/javascript/test_type_ternary_2nd_falsy.js b/spec/javascript/test_type_ternary_2nd_falsy.js index b6f92f095..6190d09e6 100644 --- a/spec/javascript/test_type_ternary_2nd_falsy.js +++ b/spec/javascript/test_type_ternary_2nd_falsy.js @@ -1,7 +1,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('TypeTernary2ndFalsy', 'src/switch_integers.bin', function(r, TypeTernary2ndFalsy) { +testHelper('TypeTernary2ndFalsy', 'src/switch_integers.bin', function(r, TypeTernary2ndFalsy_) { assert.strictEqual(r.vFalse, false); assert.strictEqual(r.vIntZero, 0); assert.strictEqual(r.vIntNegZero, 0); diff --git a/spec/javascript/test_user_type.js b/spec/javascript/test_user_type.js index 2d5ad3f70..86bf18e85 100644 --- a/spec/javascript/test_user_type.js +++ b/spec/javascript/test_user_type.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('UserType', 'src/repeat_until_s4.bin', function(r, UserType) { +testHelper('UserType', 'src/repeat_until_s4.bin', function(r, UserType_) { assert.strictEqual(r.one.width, 66); assert.strictEqual(r.one.height, 4919); }); diff --git a/spec/javascript/test_valid_eq_str_encodings.js b/spec/javascript/test_valid_eq_str_encodings.js index bb271c372..f1914f727 100644 --- a/spec/javascript/test_valid_eq_str_encodings.js +++ b/spec/javascript/test_valid_eq_str_encodings.js @@ -3,5 +3,5 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ValidEqStrEncodings', 'src/str_encodings.bin', function(r, ValidEqStrEncodings) { +testHelper('ValidEqStrEncodings', 'src/str_encodings.bin', function(r, ValidEqStrEncodings_) { }); diff --git a/spec/javascript/test_valid_long.js b/spec/javascript/test_valid_long.js index 5ade0855a..a9087e11e 100644 --- a/spec/javascript/test_valid_long.js +++ b/spec/javascript/test_valid_long.js @@ -3,5 +3,5 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ValidLong', 'src/fixed_struct.bin', function(r, ValidLong) { +testHelper('ValidLong', 'src/fixed_struct.bin', function(r, ValidLong_) { }); diff --git a/spec/javascript/test_valid_not_parsed_if.js b/spec/javascript/test_valid_not_parsed_if.js index 5268e1843..2884b683e 100644 --- a/spec/javascript/test_valid_not_parsed_if.js +++ b/spec/javascript/test_valid_not_parsed_if.js @@ -3,5 +3,5 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ValidNotParsedIf', 'src/fixed_struct.bin', function(r, ValidNotParsedIf) { +testHelper('ValidNotParsedIf', 'src/fixed_struct.bin', function(r, ValidNotParsedIf_) { }); diff --git a/spec/javascript/test_valid_optional_id.js b/spec/javascript/test_valid_optional_id.js index c1dda7d1a..e816c45af 100644 --- a/spec/javascript/test_valid_optional_id.js +++ b/spec/javascript/test_valid_optional_id.js @@ -3,5 +3,5 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ValidOptionalId', 'src/fixed_struct.bin', function(r, ValidOptionalId) { +testHelper('ValidOptionalId', 'src/fixed_struct.bin', function(r, ValidOptionalId_) { }); diff --git a/spec/javascript/test_valid_short.js b/spec/javascript/test_valid_short.js index 1bb5d3080..548d96100 100644 --- a/spec/javascript/test_valid_short.js +++ b/spec/javascript/test_valid_short.js @@ -3,5 +3,5 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ValidShort', 'src/fixed_struct.bin', function(r, ValidShort) { +testHelper('ValidShort', 'src/fixed_struct.bin', function(r, ValidShort_) { }); diff --git a/spec/javascript/test_valid_switch.js b/spec/javascript/test_valid_switch.js index 222a46a92..080fae1aa 100644 --- a/spec/javascript/test_valid_switch.js +++ b/spec/javascript/test_valid_switch.js @@ -3,5 +3,5 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ValidSwitch', 'src/fixed_struct.bin', function(r, ValidSwitch) { +testHelper('ValidSwitch', 'src/fixed_struct.bin', function(r, ValidSwitch_) { }); diff --git a/spec/javascript/test_yaml_ints.js b/spec/javascript/test_yaml_ints.js index 5ab7472d8..76e0e481f 100644 --- a/spec/javascript/test_yaml_ints.js +++ b/spec/javascript/test_yaml_ints.js @@ -3,7 +3,7 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('YamlInts', 'src/fixed_struct.bin', function(r, YamlInts) { +testHelper('YamlInts', 'src/fixed_struct.bin', function(r, YamlInts_) { assert.strictEqual(r.testU4Dec, 4294967295); assert.strictEqual(r.testU4Hex, 4294967295); assert.strictEqual(r.testU8Dec, 18446744073709551615); diff --git a/spec/javascript/test_zlib_surrounded.js b/spec/javascript/test_zlib_surrounded.js index 9239974ea..629d40146 100644 --- a/spec/javascript/test_zlib_surrounded.js +++ b/spec/javascript/test_zlib_surrounded.js @@ -3,6 +3,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); -testHelper('ZlibSurrounded', 'src/zlib_surrounded.bin', function(r, ZlibSurrounded) { +testHelper('ZlibSurrounded', 'src/zlib_surrounded.bin', function(r, ZlibSurrounded_) { assert.strictEqual(r.zlib.num, -1); }); diff --git a/spec/javascript/test_zlib_with_header_78.js b/spec/javascript/test_zlib_with_header_78.js index 820ecf1b5..cd994c9bc 100644 --- a/spec/javascript/test_zlib_with_header_78.js +++ b/spec/javascript/test_zlib_with_header_78.js @@ -4,6 +4,6 @@ var assert = require('assert'); var testHelper = require('testHelper'); var hexString = require('hexString'); -testHelper('ZlibWithHeader78', 'src/zlib_with_header_78.bin', function(r, ZlibWithHeader78) { +testHelper('ZlibWithHeader78', 'src/zlib_with_header_78.bin', function(r, ZlibWithHeader78_) { assert.strictEqual(hexString(r.data), hexString([97, 32, 113, 117, 105, 99, 107, 32, 98, 114, 111, 119, 110, 32, 102, 111, 120, 32, 106, 117, 109, 112, 115, 32, 111, 118, 101, 114])); });