diff --git a/spec/nim/tbcd_user_type_be.nim b/spec/nim/tbcd_user_type_be.nim index c161f3c53..2b23f309a 100644 --- a/spec/nim/tbcd_user_type_be.nim +++ b/spec/nim/tbcd_user_type_be.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/bcd_user_type_be import auxiliary/test_utils -let r = BcdUserTypeBe.fromFile("src/bcd_user_type_be.bin") +let r = BcdUserTypeBe.fromFile("../../src/bcd_user_type_be.bin") assert r.ltr.asInt == 12345678 assert r.ltr.asStr == "12345678" diff --git a/spec/nim/tbcd_user_type_le.nim b/spec/nim/tbcd_user_type_le.nim index 83c840be3..d9ff80245 100644 --- a/spec/nim/tbcd_user_type_le.nim +++ b/spec/nim/tbcd_user_type_le.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/bcd_user_type_le import auxiliary/test_utils -let r = BcdUserTypeLe.fromFile("src/bcd_user_type_le.bin") +let r = BcdUserTypeLe.fromFile("../../src/bcd_user_type_le.bin") assert r.ltr.asInt == 12345678 assert r.ltr.asStr == "12345678" diff --git a/spec/nim/tbits_byte_aligned.nim b/spec/nim/tbits_byte_aligned.nim index dc9d56f18..8f7b6fe8a 100644 --- a/spec/nim/tbits_byte_aligned.nim +++ b/spec/nim/tbits_byte_aligned.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/bits_byte_aligned import auxiliary/test_utils -let r = BitsByteAligned.fromFile("src/fixed_struct.bin") +let r = BitsByteAligned.fromFile("../../src/fixed_struct.bin") assert r.one == 20 assert r.byte1 == 65 diff --git a/spec/nim/tbits_enum.nim b/spec/nim/tbits_enum.nim index c412735bc..42d5584a4 100644 --- a/spec/nim/tbits_enum.nim +++ b/spec/nim/tbits_enum.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/bits_enum import auxiliary/test_utils -let r = BitsEnum.fromFile("src/fixed_struct.bin") +let r = BitsEnum.fromFile("../../src/fixed_struct.bin") assert r.one == bits_enum.platypus assert r.two == bits_enum.horse diff --git a/spec/nim/tbits_seq_endian_combo.nim b/spec/nim/tbits_seq_endian_combo.nim index e379d9ea2..c87ce552b 100644 --- a/spec/nim/tbits_seq_endian_combo.nim +++ b/spec/nim/tbits_seq_endian_combo.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/bits_seq_endian_combo import auxiliary/test_utils -let r = BitsSeqEndianCombo.fromFile("src/process_xor_4.bin") +let r = BitsSeqEndianCombo.fromFile("../../src/process_xor_4.bin") assert r.be1 == 59 assert r.be2 == 187 diff --git a/spec/nim/tbits_signed_b32_le.nim b/spec/nim/tbits_signed_b32_le.nim index afafc2b24..9c21fbfca 100644 --- a/spec/nim/tbits_signed_b32_le.nim +++ b/spec/nim/tbits_signed_b32_le.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/bits_signed_b32_le import auxiliary/test_utils -let r = BitsSignedB32Le.fromFile("src/bits_signed_b32_le.bin") +let r = BitsSignedB32Le.fromFile("../../src/bits_signed_b32_le.bin") assert r.aNum == 0 assert r.aBit == true diff --git a/spec/nim/tbits_signed_b64_le.nim b/spec/nim/tbits_signed_b64_le.nim index 7bdb8ac25..340cd423f 100644 --- a/spec/nim/tbits_signed_b64_le.nim +++ b/spec/nim/tbits_signed_b64_le.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/bits_signed_b64_le import auxiliary/test_utils -let r = BitsSignedB64Le.fromFile("src/bits_signed_b64_le.bin") +let r = BitsSignedB64Le.fromFile("../../src/bits_signed_b64_le.bin") assert r.aNum == 0 assert r.aBit == true diff --git a/spec/nim/tbits_simple.nim b/spec/nim/tbits_simple.nim index 912be361a..4efc896fc 100644 --- a/spec/nim/tbits_simple.nim +++ b/spec/nim/tbits_simple.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/bits_simple import auxiliary/test_utils -let r = BitsSimple.fromFile("src/fixed_struct.bin") +let r = BitsSimple.fromFile("../../src/fixed_struct.bin") assert r.byte1 == 80 assert r.byte2 == 65 diff --git a/spec/nim/tbits_simple_le.nim b/spec/nim/tbits_simple_le.nim index 3a214982f..ea409b1c6 100644 --- a/spec/nim/tbits_simple_le.nim +++ b/spec/nim/tbits_simple_le.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/bits_simple_le import auxiliary/test_utils -let r = BitsSimpleLe.fromFile("src/fixed_struct.bin") +let r = BitsSimpleLe.fromFile("../../src/fixed_struct.bin") assert r.byte1 == 80 assert r.byte2 == 65 diff --git a/spec/nim/tbuffered_struct.nim b/spec/nim/tbuffered_struct.nim index 9075be2fe..316a49c0d 100644 --- a/spec/nim/tbuffered_struct.nim +++ b/spec/nim/tbuffered_struct.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/buffered_struct import auxiliary/test_utils -let r = BufferedStruct.fromFile("src/buffered_struct.bin") +let r = BufferedStruct.fromFile("../../src/buffered_struct.bin") assert r.len1 == 16 assert r.block1.number1 == 66 diff --git a/spec/nim/tbytes_pad_term.nim b/spec/nim/tbytes_pad_term.nim index d67022072..442a74da2 100644 --- a/spec/nim/tbytes_pad_term.nim +++ b/spec/nim/tbytes_pad_term.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/bytes_pad_term import auxiliary/test_utils -let r = BytesPadTerm.fromFile("src/str_pad_term.bin") +let r = BytesPadTerm.fromFile("../../src/str_pad_term.bin") assert r.strPad == @[115'u8, 116'u8, 114'u8, 49'u8] assert r.strTerm == @[115'u8, 116'u8, 114'u8, 50'u8, 102'u8, 111'u8, 111'u8] diff --git a/spec/nim/tcast_nested.nim b/spec/nim/tcast_nested.nim index 403a12310..9251bb5ed 100644 --- a/spec/nim/tcast_nested.nim +++ b/spec/nim/tcast_nested.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/cast_nested import auxiliary/test_utils -let r = CastNested.fromFile("src/switch_opcodes.bin") +let r = CastNested.fromFile("../../src/switch_opcodes.bin") assert r.opcodes0Str.value == "foobar" assert r.opcodes0StrValue == "foobar" diff --git a/spec/nim/tcast_to_imported.nim b/spec/nim/tcast_to_imported.nim index f0d592de9..f8246ee60 100644 --- a/spec/nim/tcast_to_imported.nim +++ b/spec/nim/tcast_to_imported.nim @@ -5,7 +5,7 @@ import os, streams, options, sequtils import ../../compiled/nim/cast_to_imported import auxiliary/test_utils -let r = CastToImported.fromFile("src/fixed_struct.bin") +let r = CastToImported.fromFile("../../src/fixed_struct.bin") assert r.one.one == 80 assert r.oneCasted.one == 80 diff --git a/spec/nim/tcast_to_top.nim b/spec/nim/tcast_to_top.nim index 0b6ded919..5fca9b9d1 100644 --- a/spec/nim/tcast_to_top.nim +++ b/spec/nim/tcast_to_top.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/cast_to_top import auxiliary/test_utils -let r = CastToTop.fromFile("src/fixed_struct.bin") +let r = CastToTop.fromFile("../../src/fixed_struct.bin") assert r.code == 80 assert r.header.code == 65 diff --git a/spec/nim/tcombine_bool.nim b/spec/nim/tcombine_bool.nim index ed086d532..faa602913 100644 --- a/spec/nim/tcombine_bool.nim +++ b/spec/nim/tcombine_bool.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/combine_bool import auxiliary/test_utils -let r = CombineBool.fromFile("src/enum_negative.bin") +let r = CombineBool.fromFile("../../src/enum_negative.bin") assert r.boolBit == true assert r.boolCalcBit == false diff --git a/spec/nim/tcombine_bytes.nim b/spec/nim/tcombine_bytes.nim index 434a298ce..4059ae216 100644 --- a/spec/nim/tcombine_bytes.nim +++ b/spec/nim/tcombine_bytes.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/combine_bytes import auxiliary/test_utils -let r = CombineBytes.fromFile("src/term_strz.bin") +let r = CombineBytes.fromFile("../../src/term_strz.bin") assert r.bytesTerm == @[102'u8, 111'u8, 111'u8] assert r.bytesLimit == @[98'u8, 97'u8, 114'u8, 124'u8] diff --git a/spec/nim/tcombine_enum.nim b/spec/nim/tcombine_enum.nim index cb89d65e3..874def684 100644 --- a/spec/nim/tcombine_enum.nim +++ b/spec/nim/tcombine_enum.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/combine_enum import auxiliary/test_utils -let r = CombineEnum.fromFile("src/enum_0.bin") +let r = CombineEnum.fromFile("../../src/enum_0.bin") assert r.enumU4 == combine_enum.pig assert r.enumU2 == combine_enum.horse diff --git a/spec/nim/tcombine_str.nim b/spec/nim/tcombine_str.nim index f65362f10..cba949192 100644 --- a/spec/nim/tcombine_str.nim +++ b/spec/nim/tcombine_str.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/combine_str import auxiliary/test_utils -let r = CombineStr.fromFile("src/term_strz.bin") +let r = CombineStr.fromFile("../../src/term_strz.bin") assert r.strTerm == "foo" assert r.strLimit == "bar|" diff --git a/spec/nim/tdebug_switch_user.nim b/spec/nim/tdebug_switch_user.nim index 360678018..4546c213e 100644 --- a/spec/nim/tdebug_switch_user.nim +++ b/spec/nim/tdebug_switch_user.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/debug_switch_user import auxiliary/test_utils -let r = DebugSwitchUser.fromFile("src/nav_parent_switch.bin") +let r = DebugSwitchUser.fromFile("../../src/nav_parent_switch.bin") assert r.code == 1 assert (DebugSwitchUser_One(r.data)).val == -190 diff --git a/spec/nim/tdefault_big_endian.nim b/spec/nim/tdefault_big_endian.nim index 8296e11e3..75e568243 100644 --- a/spec/nim/tdefault_big_endian.nim +++ b/spec/nim/tdefault_big_endian.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/default_big_endian import auxiliary/test_utils -let r = DefaultBigEndian.fromFile("src/enum_0.bin") +let r = DefaultBigEndian.fromFile("../../src/enum_0.bin") assert r.one == 117440512 diff --git a/spec/nim/tdefault_bit_endian_mod.nim b/spec/nim/tdefault_bit_endian_mod.nim index 76f3363ed..2d9963b43 100644 --- a/spec/nim/tdefault_bit_endian_mod.nim +++ b/spec/nim/tdefault_bit_endian_mod.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/default_bit_endian_mod import auxiliary/test_utils -let r = DefaultBitEndianMod.fromFile("src/fixed_struct.bin") +let r = DefaultBitEndianMod.fromFile("../../src/fixed_struct.bin") assert r.main.one == 336 assert r.main.two == 8608 diff --git a/spec/nim/tdefault_endian_expr_inherited.nim b/spec/nim/tdefault_endian_expr_inherited.nim index a4ae55d41..5e0b5eb03 100644 --- a/spec/nim/tdefault_endian_expr_inherited.nim +++ b/spec/nim/tdefault_endian_expr_inherited.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/default_endian_expr_inherited import auxiliary/test_utils -let r = DefaultEndianExprInherited.fromFile("src/endian_expr.bin") +let r = DefaultEndianExprInherited.fromFile("../../src/endian_expr.bin") assert r.docs[0].indicator == @[73'u8, 73'u8] assert r.docs[0].main.insides.someInt == 66 diff --git a/spec/nim/tdefault_endian_expr_is_be.nim b/spec/nim/tdefault_endian_expr_is_be.nim index 68e5b00f7..a1f2f4bfe 100644 --- a/spec/nim/tdefault_endian_expr_is_be.nim +++ b/spec/nim/tdefault_endian_expr_is_be.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/default_endian_expr_is_be import auxiliary/test_utils -let r = DefaultEndianExprIsBe.fromFile("src/endian_expr.bin") +let r = DefaultEndianExprIsBe.fromFile("../../src/endian_expr.bin") assert r.docs[0].indicator == @[73'u8, 73'u8] assert r.docs[0].main.someInt == 66 diff --git a/spec/nim/tdefault_endian_expr_is_le.nim b/spec/nim/tdefault_endian_expr_is_le.nim index 7a2ff26ae..46876cbf3 100644 --- a/spec/nim/tdefault_endian_expr_is_le.nim +++ b/spec/nim/tdefault_endian_expr_is_le.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/default_endian_expr_is_le import auxiliary/test_utils -let r = DefaultEndianExprIsLe.fromFile("src/endian_expr.bin") +let r = DefaultEndianExprIsLe.fromFile("../../src/endian_expr.bin") assert r.docs[0].indicator == @[73'u8, 73'u8] assert r.docs[0].main.someInt == 66 diff --git a/spec/nim/tdefault_endian_mod.nim b/spec/nim/tdefault_endian_mod.nim index abbe7165f..53d403e6d 100644 --- a/spec/nim/tdefault_endian_mod.nim +++ b/spec/nim/tdefault_endian_mod.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/default_endian_mod import auxiliary/test_utils -let r = DefaultEndianMod.fromFile("src/fixed_struct.bin") +let r = DefaultEndianMod.fromFile("../../src/fixed_struct.bin") assert r.main.one == 1262698832 assert r.main.nest.two == -52947 diff --git a/spec/nim/tdocstrings.nim b/spec/nim/tdocstrings.nim index bec078161..65c704401 100644 --- a/spec/nim/tdocstrings.nim +++ b/spec/nim/tdocstrings.nim @@ -4,5 +4,5 @@ import os, streams, options, sequtils import ../../compiled/nim/docstrings import auxiliary/test_utils -let r = Docstrings.fromFile("src/fixed_struct.bin") +let r = Docstrings.fromFile("../../src/fixed_struct.bin") diff --git a/spec/nim/tdocstrings_docref.nim b/spec/nim/tdocstrings_docref.nim index 358348863..7e4fdd2e1 100644 --- a/spec/nim/tdocstrings_docref.nim +++ b/spec/nim/tdocstrings_docref.nim @@ -4,5 +4,5 @@ import os, streams, options, sequtils import ../../compiled/nim/docstrings_docref import auxiliary/test_utils -let r = DocstringsDocref.fromFile("src/fixed_struct.bin") +let r = DocstringsDocref.fromFile("../../src/fixed_struct.bin") diff --git a/spec/nim/tdocstrings_docref_multi.nim b/spec/nim/tdocstrings_docref_multi.nim index 0c1615995..b838e6ee0 100644 --- a/spec/nim/tdocstrings_docref_multi.nim +++ b/spec/nim/tdocstrings_docref_multi.nim @@ -4,5 +4,5 @@ import os, streams, options, sequtils import ../../compiled/nim/docstrings_docref_multi import auxiliary/test_utils -let r = DocstringsDocrefMulti.fromFile("src/fixed_struct.bin") +let r = DocstringsDocrefMulti.fromFile("../../src/fixed_struct.bin") diff --git a/spec/nim/tenum_0.nim b/spec/nim/tenum_0.nim index ee6998791..78ddf2f81 100644 --- a/spec/nim/tenum_0.nim +++ b/spec/nim/tenum_0.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_0 import auxiliary/test_utils -let r = Enum0.fromFile("src/enum_0.bin") +let r = Enum0.fromFile("../../src/enum_0.bin") assert r.pet1 == enum_0.cat assert r.pet2 == enum_0.chicken diff --git a/spec/nim/tenum_1.nim b/spec/nim/tenum_1.nim index 2a5b33a27..3daa2ffbb 100644 --- a/spec/nim/tenum_1.nim +++ b/spec/nim/tenum_1.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_1 import auxiliary/test_utils -let r = Enum1.fromFile("src/enum_0.bin") +let r = Enum1.fromFile("../../src/enum_0.bin") assert r.main.submain.pet1 == enum_1.cat assert r.main.submain.pet2 == enum_1.chicken diff --git a/spec/nim/tenum_deep.nim b/spec/nim/tenum_deep.nim index 6c3afca53..521ca181b 100644 --- a/spec/nim/tenum_deep.nim +++ b/spec/nim/tenum_deep.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_deep import auxiliary/test_utils -let r = EnumDeep.fromFile("src/enum_0.bin") +let r = EnumDeep.fromFile("../../src/enum_0.bin") assert r.pet1 == enum_deep.cat assert r.pet2 == enum_deep.hare diff --git a/spec/nim/tenum_deep_literals.nim b/spec/nim/tenum_deep_literals.nim index 4d0172240..9cd207ffe 100644 --- a/spec/nim/tenum_deep_literals.nim +++ b/spec/nim/tenum_deep_literals.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_deep_literals import auxiliary/test_utils -let r = EnumDeepLiterals.fromFile("src/enum_0.bin") +let r = EnumDeepLiterals.fromFile("../../src/enum_0.bin") assert r.isPet1Ok == true assert r.isPet2Ok == true diff --git a/spec/nim/tenum_fancy.nim b/spec/nim/tenum_fancy.nim index 3a464a4b1..8990d0b2e 100644 --- a/spec/nim/tenum_fancy.nim +++ b/spec/nim/tenum_fancy.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_fancy import auxiliary/test_utils -let r = EnumFancy.fromFile("src/enum_0.bin") +let r = EnumFancy.fromFile("../../src/enum_0.bin") assert r.pet1 == enum_fancy.cat assert r.pet2 == enum_fancy.chicken diff --git a/spec/nim/tenum_if.nim b/spec/nim/tenum_if.nim index 0f1c74d40..57220c015 100644 --- a/spec/nim/tenum_if.nim +++ b/spec/nim/tenum_if.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_if import auxiliary/test_utils -let r = EnumIf.fromFile("src/if_struct.bin") +let r = EnumIf.fromFile("../../src/if_struct.bin") assert r.op1.opcode == enum_if.a_string assert r.op1.argStr.str == "foo" diff --git a/spec/nim/tenum_import.nim b/spec/nim/tenum_import.nim index 0bdd01f26..36600e4a3 100644 --- a/spec/nim/tenum_import.nim +++ b/spec/nim/tenum_import.nim @@ -6,7 +6,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_import import auxiliary/test_utils -let r = EnumImport.fromFile("src/enum_0.bin") +let r = EnumImport.fromFile("../../src/enum_0.bin") assert r.pet1 == enum_0.cat assert r.pet2 == enum_deep.hare diff --git a/spec/nim/tenum_int_range_s.nim b/spec/nim/tenum_int_range_s.nim index 3ab77285f..cc27da45b 100644 --- a/spec/nim/tenum_int_range_s.nim +++ b/spec/nim/tenum_int_range_s.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_int_range_s import auxiliary/test_utils -let r = EnumIntRangeS.fromFile("src/enum_int_range_s.bin") +let r = EnumIntRangeS.fromFile("../../src/enum_int_range_s.bin") assert r.f1 == enum_int_range_s.int_min assert r.f2 == enum_int_range_s.zero diff --git a/spec/nim/tenum_int_range_u.nim b/spec/nim/tenum_int_range_u.nim index 3a06e90b9..c0007e56e 100644 --- a/spec/nim/tenum_int_range_u.nim +++ b/spec/nim/tenum_int_range_u.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_int_range_u import auxiliary/test_utils -let r = EnumIntRangeU.fromFile("src/enum_int_range_u.bin") +let r = EnumIntRangeU.fromFile("../../src/enum_int_range_u.bin") assert r.f1 == enum_int_range_u.zero assert r.f2 == enum_int_range_u.int_max diff --git a/spec/nim/tenum_invalid.nim b/spec/nim/tenum_invalid.nim index e0b089bb9..62e3a0741 100644 --- a/spec/nim/tenum_invalid.nim +++ b/spec/nim/tenum_invalid.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_invalid import auxiliary/test_utils -let r = EnumInvalid.fromFile("src/term_strz.bin") +let r = EnumInvalid.fromFile("../../src/term_strz.bin") assert r.pet1 == enum_invalid.dog assert r.pet2 == 111 diff --git a/spec/nim/tenum_long_range_s.nim b/spec/nim/tenum_long_range_s.nim index 279ae5aed..be83c742d 100644 --- a/spec/nim/tenum_long_range_s.nim +++ b/spec/nim/tenum_long_range_s.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_long_range_s import auxiliary/test_utils -let r = EnumLongRangeS.fromFile("src/enum_long_range_s.bin") +let r = EnumLongRangeS.fromFile("../../src/enum_long_range_s.bin") assert r.f1 == enum_long_range_s.long_min assert r.f2 == enum_long_range_s.int_below_min diff --git a/spec/nim/tenum_long_range_u.nim b/spec/nim/tenum_long_range_u.nim index 3633a2b91..b925a45d8 100644 --- a/spec/nim/tenum_long_range_u.nim +++ b/spec/nim/tenum_long_range_u.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_long_range_u import auxiliary/test_utils -let r = EnumLongRangeU.fromFile("src/enum_long_range_u.bin") +let r = EnumLongRangeU.fromFile("../../src/enum_long_range_u.bin") assert r.f1 == enum_long_range_u.zero assert r.f2 == enum_long_range_u.int_max diff --git a/spec/nim/tenum_negative.nim b/spec/nim/tenum_negative.nim index 863515243..b8e09d229 100644 --- a/spec/nim/tenum_negative.nim +++ b/spec/nim/tenum_negative.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_negative import auxiliary/test_utils -let r = EnumNegative.fromFile("src/enum_negative.bin") +let r = EnumNegative.fromFile("../../src/enum_negative.bin") assert r.f1 == enum_negative.negative_one assert r.f2 == enum_negative.positive_one diff --git a/spec/nim/tenum_of_value_inst.nim b/spec/nim/tenum_of_value_inst.nim index 6f960356e..0bc84d455 100644 --- a/spec/nim/tenum_of_value_inst.nim +++ b/spec/nim/tenum_of_value_inst.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_of_value_inst import auxiliary/test_utils -let r = EnumOfValueInst.fromFile("src/enum_0.bin") +let r = EnumOfValueInst.fromFile("../../src/enum_0.bin") assert r.pet1 == enum_of_value_inst.cat assert r.pet2 == enum_of_value_inst.chicken diff --git a/spec/nim/tenum_to_i.nim b/spec/nim/tenum_to_i.nim index 395fd3fad..31cefa46b 100644 --- a/spec/nim/tenum_to_i.nim +++ b/spec/nim/tenum_to_i.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_to_i import auxiliary/test_utils -let r = EnumToI.fromFile("src/enum_0.bin") +let r = EnumToI.fromFile("../../src/enum_0.bin") assert r.pet1 == enum_to_i.cat assert r.pet2 == enum_to_i.chicken diff --git a/spec/nim/tenum_to_i_class_border_1.nim b/spec/nim/tenum_to_i_class_border_1.nim index 7a7b8e01e..ecf9973c0 100644 --- a/spec/nim/tenum_to_i_class_border_1.nim +++ b/spec/nim/tenum_to_i_class_border_1.nim @@ -5,7 +5,7 @@ import os, streams, options, sequtils import ../../compiled/nim/enum_to_i_class_border_1 import auxiliary/test_utils -let r = EnumToIClassBorder1.fromFile("src/enum_0.bin") +let r = EnumToIClassBorder1.fromFile("../../src/enum_0.bin") assert r.pet1 == enum_to_i_class_border_1.cat assert r.pet2 == enum_to_i_class_border_1.chicken diff --git a/spec/nim/texpr_0.nim b/spec/nim/texpr_0.nim index 55a581639..d872c7d45 100644 --- a/spec/nim/texpr_0.nim +++ b/spec/nim/texpr_0.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_0 import auxiliary/test_utils -let r = Expr0.fromFile("src/str_encodings.bin") +let r = Expr0.fromFile("../../src/str_encodings.bin") assert r.mustBeF7 == 247 assert r.mustBeAbc123 == "abc123" diff --git a/spec/nim/texpr_1.nim b/spec/nim/texpr_1.nim index 98e5cbe28..d5d676c0e 100644 --- a/spec/nim/texpr_1.nim +++ b/spec/nim/texpr_1.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_1 import auxiliary/test_utils -let r = Expr1.fromFile("src/str_encodings.bin") +let r = Expr1.fromFile("../../src/str_encodings.bin") assert r.lenOf1 == 10 assert r.lenOf1Mod == 8 diff --git a/spec/nim/texpr_2.nim b/spec/nim/texpr_2.nim index 75e5869c6..1307746af 100644 --- a/spec/nim/texpr_2.nim +++ b/spec/nim/texpr_2.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_2 import auxiliary/test_utils -let r = Expr2.fromFile("src/str_encodings.bin") +let r = Expr2.fromFile("../../src/str_encodings.bin") assert r.str1.lenOrig == 10 assert r.str1.lenMod == 7 diff --git a/spec/nim/texpr_3.nim b/spec/nim/texpr_3.nim index 1c025cf7e..3f56780de 100644 --- a/spec/nim/texpr_3.nim +++ b/spec/nim/texpr_3.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_3 import auxiliary/test_utils -let r = Expr3.fromFile("src/fixed_struct.bin") +let r = Expr3.fromFile("../../src/fixed_struct.bin") assert r.one == 80 assert r.two == "ACK" diff --git a/spec/nim/texpr_array.nim b/spec/nim/texpr_array.nim index a8f821285..02bc75226 100644 --- a/spec/nim/texpr_array.nim +++ b/spec/nim/texpr_array.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_array import auxiliary/test_utils -let r = ExprArray.fromFile("src/expr_array.bin") +let r = ExprArray.fromFile("../../src/expr_array.bin") assert r.aintSize == 4 assert r.aintFirst == 7657765 diff --git a/spec/nim/texpr_bits.nim b/spec/nim/texpr_bits.nim index 10aa2e264..c04b63f39 100644 --- a/spec/nim/texpr_bits.nim +++ b/spec/nim/texpr_bits.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_bits import auxiliary/test_utils -let r = ExprBits.fromFile("src/switch_opcodes.bin") +let r = ExprBits.fromFile("../../src/switch_opcodes.bin") assert r.a == 2 assert r.enumSeq == expr_bits.foo diff --git a/spec/nim/texpr_bytes_cmp.nim b/spec/nim/texpr_bytes_cmp.nim index 0efc4bc93..a0d6dfb74 100644 --- a/spec/nim/texpr_bytes_cmp.nim +++ b/spec/nim/texpr_bytes_cmp.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_bytes_cmp import auxiliary/test_utils -let r = ExprBytesCmp.fromFile("src/fixed_struct.bin") +let r = ExprBytesCmp.fromFile("../../src/fixed_struct.bin") assert r.one == @[80'u8] assert r.two == @[65'u8, 67'u8, 75'u8] diff --git a/spec/nim/texpr_bytes_literal.nim b/spec/nim/texpr_bytes_literal.nim index 8ca656e2b..5034ae958 100644 --- a/spec/nim/texpr_bytes_literal.nim +++ b/spec/nim/texpr_bytes_literal.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_bytes_literal import auxiliary/test_utils -let r = ExprBytesLiteral.fromFile("src/enum_negative.bin") +let r = ExprBytesLiteral.fromFile("../../src/enum_negative.bin") assert len(r.literal) == 2 assert r.literal[0] == -1 diff --git a/spec/nim/texpr_bytes_ops.nim b/spec/nim/texpr_bytes_ops.nim index 01545d50f..7f092df03 100644 --- a/spec/nim/texpr_bytes_ops.nim +++ b/spec/nim/texpr_bytes_ops.nim @@ -5,7 +5,7 @@ import ../../compiled/nim/expr_bytes_ops import auxiliary/test_utils import strutils -let r = ExprBytesOps.fromFile("src/nav_parent_switch.bin") +let r = ExprBytesOps.fromFile("../../src/nav_parent_switch.bin") assert r.oneSize == 3 assert r.oneFirst == 1 diff --git a/spec/nim/texpr_calc_array_ops.nim b/spec/nim/texpr_calc_array_ops.nim index 241f90996..9ca83a3fa 100644 --- a/spec/nim/texpr_calc_array_ops.nim +++ b/spec/nim/texpr_calc_array_ops.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_calc_array_ops import auxiliary/test_utils -let r = ExprCalcArrayOps.fromFile("src/fixed_struct.bin") +let r = ExprCalcArrayOps.fromFile("../../src/fixed_struct.bin") assert r.intArraySize == 7 assert r.intArrayFirst == 10 diff --git a/spec/nim/texpr_enum.nim b/spec/nim/texpr_enum.nim index da5375995..77ef115ed 100644 --- a/spec/nim/texpr_enum.nim +++ b/spec/nim/texpr_enum.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_enum import auxiliary/test_utils -let r = ExprEnum.fromFile("src/term_strz.bin") +let r = ExprEnum.fromFile("../../src/term_strz.bin") assert r.constDog == expr_enum.dog assert r.derivedBoom == expr_enum.boom diff --git a/spec/nim/texpr_if_int_ops.nim b/spec/nim/texpr_if_int_ops.nim index b60112b28..61c38ba51 100644 --- a/spec/nim/texpr_if_int_ops.nim +++ b/spec/nim/texpr_if_int_ops.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_if_int_ops import auxiliary/test_utils -let r = ExprIfIntOps.fromFile("src/process_coerce_switch.bin") +let r = ExprIfIntOps.fromFile("../../src/process_coerce_switch.bin") assert r.isEqPrim == true assert r.isEqBoxed == true diff --git a/spec/nim/texpr_int_div.nim b/spec/nim/texpr_int_div.nim index c4371d860..5e0387c4f 100644 --- a/spec/nim/texpr_int_div.nim +++ b/spec/nim/texpr_int_div.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_int_div import auxiliary/test_utils -let r = ExprIntDiv.fromFile("src/fixed_struct.bin") +let r = ExprIntDiv.fromFile("../../src/fixed_struct.bin") assert r.intU == 1262698832 assert r.intS == -52947 diff --git a/spec/nim/texpr_io_eof.nim b/spec/nim/texpr_io_eof.nim index f53d1f23f..ff97a8286 100644 --- a/spec/nim/texpr_io_eof.nim +++ b/spec/nim/texpr_io_eof.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_io_eof import auxiliary/test_utils -let r = ExprIoEof.fromFile("src/fixed_struct.bin") +let r = ExprIoEof.fromFile("../../src/fixed_struct.bin") assert r.substream1.one == 1262698832 assert r.substream1.two == 0'u32 diff --git a/spec/nim/texpr_io_pos.nim b/spec/nim/texpr_io_pos.nim index 17038411f..1828d8585 100644 --- a/spec/nim/texpr_io_pos.nim +++ b/spec/nim/texpr_io_pos.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_io_pos import auxiliary/test_utils -let r = ExprIoPos.fromFile("src/expr_io_pos.bin") +let r = ExprIoPos.fromFile("../../src/expr_io_pos.bin") assert r.substream1.myStr == "CURIOSITY" assert r.substream1.body == @[17'u8, 34'u8, 51'u8, 68'u8] diff --git a/spec/nim/texpr_mod.nim b/spec/nim/texpr_mod.nim index 40b306823..041ef0028 100644 --- a/spec/nim/texpr_mod.nim +++ b/spec/nim/texpr_mod.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_mod import auxiliary/test_utils -let r = ExprMod.fromFile("src/fixed_struct.bin") +let r = ExprMod.fromFile("../../src/fixed_struct.bin") assert r.intU == 1262698832 assert r.intS == -52947 diff --git a/spec/nim/texpr_ops_parens.nim b/spec/nim/texpr_ops_parens.nim index 438006e4b..6f1409cf0 100644 --- a/spec/nim/texpr_ops_parens.nim +++ b/spec/nim/texpr_ops_parens.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_ops_parens import auxiliary/test_utils -let r = ExprOpsParens.fromFile("src/enum_negative.bin") +let r = ExprOpsParens.fromFile("../../src/enum_negative.bin") assert r.iSumToStr == "29" assert r.fSumToInt == 9 diff --git a/spec/nim/texpr_sizeof_type_0.nim b/spec/nim/texpr_sizeof_type_0.nim index 1d42ef792..023221c8b 100644 --- a/spec/nim/texpr_sizeof_type_0.nim +++ b/spec/nim/texpr_sizeof_type_0.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_sizeof_type_0 import auxiliary/test_utils -let r = ExprSizeofType0.fromFile("src/fixed_struct.bin") +let r = ExprSizeofType0.fromFile("../../src/fixed_struct.bin") assert r.sizeofBlock == ((1 + 4) + 2) diff --git a/spec/nim/texpr_sizeof_type_1.nim b/spec/nim/texpr_sizeof_type_1.nim index 73bd99a83..f84d28917 100644 --- a/spec/nim/texpr_sizeof_type_1.nim +++ b/spec/nim/texpr_sizeof_type_1.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_sizeof_type_1 import auxiliary/test_utils -let r = ExprSizeofType1.fromFile("src/fixed_struct.bin") +let r = ExprSizeofType1.fromFile("../../src/fixed_struct.bin") assert r.sizeofBlock == (((1 + 4) + 2) + 4) assert r.sizeofSubblock == 4 diff --git a/spec/nim/texpr_sizeof_value_0.nim b/spec/nim/texpr_sizeof_value_0.nim index 1fd275682..ead9fb43c 100644 --- a/spec/nim/texpr_sizeof_value_0.nim +++ b/spec/nim/texpr_sizeof_value_0.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_sizeof_value_0 import auxiliary/test_utils -let r = ExprSizeofValue0.fromFile("src/fixed_struct.bin") +let r = ExprSizeofValue0.fromFile("../../src/fixed_struct.bin") assert r.selfSizeof == (((1 + 4) + 2) + 2) assert r.sizeofBlock == ((1 + 4) + 2) diff --git a/spec/nim/texpr_sizeof_value_sized.nim b/spec/nim/texpr_sizeof_value_sized.nim index d8516766b..9304d9870 100644 --- a/spec/nim/texpr_sizeof_value_sized.nim +++ b/spec/nim/texpr_sizeof_value_sized.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_sizeof_value_sized import auxiliary/test_utils -let r = ExprSizeofValueSized.fromFile("src/fixed_struct.bin") +let r = ExprSizeofValueSized.fromFile("../../src/fixed_struct.bin") assert r.selfSizeof == (12 + 2) assert r.sizeofBlock == 12 diff --git a/spec/nim/texpr_str_encodings.nim b/spec/nim/texpr_str_encodings.nim index 90cbd6a2d..5fe091867 100644 --- a/spec/nim/texpr_str_encodings.nim +++ b/spec/nim/texpr_str_encodings.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_str_encodings import auxiliary/test_utils -let r = ExprStrEncodings.fromFile("src/str_encodings.bin") +let r = ExprStrEncodings.fromFile("../../src/str_encodings.bin") assert r.str1Eq == true assert r.str2Eq == true diff --git a/spec/nim/texpr_str_ops.nim b/spec/nim/texpr_str_ops.nim index b530e23ab..84190047b 100644 --- a/spec/nim/texpr_str_ops.nim +++ b/spec/nim/texpr_str_ops.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/expr_str_ops import auxiliary/test_utils -let r = ExprStrOps.fromFile("src/term_strz.bin") +let r = ExprStrOps.fromFile("../../src/term_strz.bin") assert r.one == "foo|b" assert r.oneLen == 5 diff --git a/spec/nim/tfixed_contents.nim b/spec/nim/tfixed_contents.nim index a7cef933e..b222dc3ec 100644 --- a/spec/nim/tfixed_contents.nim +++ b/spec/nim/tfixed_contents.nim @@ -4,5 +4,5 @@ import os, streams, options, sequtils import ../../compiled/nim/fixed_contents import auxiliary/test_utils -let r = FixedContents.fromFile("src/fixed_struct.bin") +let r = FixedContents.fromFile("../../src/fixed_struct.bin") diff --git a/spec/nim/tfixed_struct.nim b/spec/nim/tfixed_struct.nim index 234f28201..d79b7cea9 100644 --- a/spec/nim/tfixed_struct.nim +++ b/spec/nim/tfixed_struct.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/fixed_struct import auxiliary/test_utils -let r = FixedStruct.fromFile("src/fixed_struct.bin") +let r = FixedStruct.fromFile("../../src/fixed_struct.bin") assert r.hdr.uint8 == 255 assert r.hdr.uint16 == 65535 diff --git a/spec/nim/tfloat_to_i.nim b/spec/nim/tfloat_to_i.nim index 629a20f3c..67d369a48 100644 --- a/spec/nim/tfloat_to_i.nim +++ b/spec/nim/tfloat_to_i.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/float_to_i import auxiliary/test_utils -let r = FloatToI.fromFile("src/floating_points.bin") +let r = FloatToI.fromFile("../../src/floating_points.bin") assert r.singleValue == 0.5 assert r.doubleValue == 0.25 diff --git a/spec/nim/tfloating_points.nim b/spec/nim/tfloating_points.nim index 61976ed99..c5dc2a417 100644 --- a/spec/nim/tfloating_points.nim +++ b/spec/nim/tfloating_points.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/floating_points import auxiliary/test_utils -let r = FloatingPoints.fromFile("src/floating_points.bin") +let r = FloatingPoints.fromFile("../../src/floating_points.bin") assert r.singleValue == (float32(0.5)) assert r.singleValueBe == (float32(0.5)) diff --git a/spec/nim/thello_world.nim b/spec/nim/thello_world.nim index ca3a6cfaf..b4fc0134c 100644 --- a/spec/nim/thello_world.nim +++ b/spec/nim/thello_world.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/hello_world import auxiliary/test_utils -let r = HelloWorld.fromFile("src/fixed_struct.bin") +let r = HelloWorld.fromFile("../../src/fixed_struct.bin") assert r.one == 80 diff --git a/spec/nim/tif_instances.nim b/spec/nim/tif_instances.nim index fe0e041a2..c3551a02f 100644 --- a/spec/nim/tif_instances.nim +++ b/spec/nim/tif_instances.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/if_instances import auxiliary/test_utils -let r = IfInstances.fromFile("src/fixed_struct.bin") +let r = IfInstances.fromFile("../../src/fixed_struct.bin") assert r.neverHappens == 0'u8 diff --git a/spec/nim/tif_struct.nim b/spec/nim/tif_struct.nim index 42fd043ae..4af0ba969 100644 --- a/spec/nim/tif_struct.nim +++ b/spec/nim/tif_struct.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/if_struct import auxiliary/test_utils -let r = IfStruct.fromFile("src/if_struct.bin") +let r = IfStruct.fromFile("../../src/if_struct.bin") assert r.op1.opcode == 83 assert r.op1.argStr.str == "foo" diff --git a/spec/nim/tif_values.nim b/spec/nim/tif_values.nim index 8984e037a..44ceda5a4 100644 --- a/spec/nim/tif_values.nim +++ b/spec/nim/tif_values.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/if_values import auxiliary/test_utils -let r = IfValues.fromFile("src/fixed_struct.bin") +let r = IfValues.fromFile("../../src/fixed_struct.bin") assert r.codes[0].opcode == 80 assert r.codes[0].halfOpcode == 40 diff --git a/spec/nim/timports0.nim b/spec/nim/timports0.nim index 5db6320d5..d6c596dc8 100644 --- a/spec/nim/timports0.nim +++ b/spec/nim/timports0.nim @@ -5,7 +5,7 @@ import os, streams, options, sequtils import ../../compiled/nim/imports0 import auxiliary/test_utils -let r = Imports0.fromFile("src/fixed_struct.bin") +let r = Imports0.fromFile("../../src/fixed_struct.bin") assert r.two == 80 assert r.hw.one == 65 diff --git a/spec/nim/timports_abs.nim b/spec/nim/timports_abs.nim index d41c3349e..c29c92852 100644 --- a/spec/nim/timports_abs.nim +++ b/spec/nim/timports_abs.nim @@ -5,7 +5,7 @@ import os, streams, options, sequtils import ../../compiled/nim/imports_abs import auxiliary/test_utils -let r = ImportsAbs.fromFile("src/fixed_struct.bin") +let r = ImportsAbs.fromFile("../../src/fixed_struct.bin") assert r.len.value == 80 assert len(r.body) == 80 diff --git a/spec/nim/timports_circular_a.nim b/spec/nim/timports_circular_a.nim index 0fdacd0a2..a870a8e19 100644 --- a/spec/nim/timports_circular_a.nim +++ b/spec/nim/timports_circular_a.nim @@ -5,7 +5,7 @@ import os, streams, options, sequtils import ../../compiled/nim/imports_circular_a import auxiliary/test_utils -let r = ImportsCircularA.fromFile("src/fixed_struct.bin") +let r = ImportsCircularA.fromFile("../../src/fixed_struct.bin") assert r.code == 80 assert r.two.initial == 65 diff --git a/spec/nim/timports_rel_1.nim b/spec/nim/timports_rel_1.nim index dc14d959d..83852690b 100644 --- a/spec/nim/timports_rel_1.nim +++ b/spec/nim/timports_rel_1.nim @@ -6,7 +6,7 @@ import os, streams, options, sequtils import ../../compiled/nim/imports_rel_1 import auxiliary/test_utils -let r = ImportsRel1.fromFile("src/fixed_struct.bin") +let r = ImportsRel1.fromFile("../../src/fixed_struct.bin") assert r.one == 80 assert r.two.one == 65 diff --git a/spec/nim/tindex_sizes.nim b/spec/nim/tindex_sizes.nim index 1207203d7..73110cc3f 100644 --- a/spec/nim/tindex_sizes.nim +++ b/spec/nim/tindex_sizes.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/index_sizes import auxiliary/test_utils -let r = IndexSizes.fromFile("src/index_sizes.bin") +let r = IndexSizes.fromFile("../../src/index_sizes.bin") assert r.qty == 3 assert r.sizes[0] == 1 diff --git a/spec/nim/tindex_to_param_eos.nim b/spec/nim/tindex_to_param_eos.nim index c4aea35ae..7cbb17cc0 100644 --- a/spec/nim/tindex_to_param_eos.nim +++ b/spec/nim/tindex_to_param_eos.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/index_to_param_eos import auxiliary/test_utils -let r = IndexToParamEos.fromFile("src/index_sizes.bin") +let r = IndexToParamEos.fromFile("../../src/index_sizes.bin") assert r.qty == 3 assert r.sizes[0] == 1 diff --git a/spec/nim/tindex_to_param_expr.nim b/spec/nim/tindex_to_param_expr.nim index 650459b87..634069385 100644 --- a/spec/nim/tindex_to_param_expr.nim +++ b/spec/nim/tindex_to_param_expr.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/index_to_param_expr import auxiliary/test_utils -let r = IndexToParamExpr.fromFile("src/index_sizes.bin") +let r = IndexToParamExpr.fromFile("../../src/index_sizes.bin") assert r.qty == 3 assert r.sizes[0] == 1 diff --git a/spec/nim/tindex_to_param_until.nim b/spec/nim/tindex_to_param_until.nim index e6cbb1e12..c2b67f9c2 100644 --- a/spec/nim/tindex_to_param_until.nim +++ b/spec/nim/tindex_to_param_until.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/index_to_param_until import auxiliary/test_utils -let r = IndexToParamUntil.fromFile("src/index_sizes.bin") +let r = IndexToParamUntil.fromFile("../../src/index_sizes.bin") assert r.qty == 3 assert r.sizes[0] == 1 diff --git a/spec/nim/tinstance_io_user.nim b/spec/nim/tinstance_io_user.nim index 0d51797f4..3594fc455 100644 --- a/spec/nim/tinstance_io_user.nim +++ b/spec/nim/tinstance_io_user.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/instance_io_user import auxiliary/test_utils -let r = InstanceIoUser.fromFile("src/instance_io.bin") +let r = InstanceIoUser.fromFile("../../src/instance_io.bin") assert r.qtyEntries == 3 assert r.entries[0].name == "the" diff --git a/spec/nim/tinstance_std.nim b/spec/nim/tinstance_std.nim index b3faea21f..78a7f7345 100644 --- a/spec/nim/tinstance_std.nim +++ b/spec/nim/tinstance_std.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/instance_std import auxiliary/test_utils -let r = InstanceStd.fromFile("src/str_encodings.bin") +let r = InstanceStd.fromFile("../../src/str_encodings.bin") assert r.header == "Some " diff --git a/spec/nim/tinstance_std_array.nim b/spec/nim/tinstance_std_array.nim index 4792d7f12..d6c7e4bd0 100644 --- a/spec/nim/tinstance_std_array.nim +++ b/spec/nim/tinstance_std_array.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/instance_std_array import auxiliary/test_utils -let r = InstanceStdArray.fromFile("src/instance_std_array.bin") +let r = InstanceStdArray.fromFile("../../src/instance_std_array.bin") assert r.ofs == 16 assert r.qtyEntries == 3 diff --git a/spec/nim/tinstance_user_array.nim b/spec/nim/tinstance_user_array.nim index 215ec27d4..70e1d9ba1 100644 --- a/spec/nim/tinstance_user_array.nim +++ b/spec/nim/tinstance_user_array.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/instance_user_array import auxiliary/test_utils -let r = InstanceUserArray.fromFile("src/instance_std_array.bin") +let r = InstanceUserArray.fromFile("../../src/instance_std_array.bin") assert r.ofs == 16 assert r.qtyEntries == 3 diff --git a/spec/nim/tintegers.nim b/spec/nim/tintegers.nim index 4a2c57928..37c5b7d97 100644 --- a/spec/nim/tintegers.nim +++ b/spec/nim/tintegers.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/integers import auxiliary/test_utils -let r = Integers.fromFile("src/fixed_struct.bin") +let r = Integers.fromFile("../../src/fixed_struct.bin") assert r.uint8 == 255 assert r.uint16 == 65535 diff --git a/spec/nim/tintegers_double_overflow.nim b/spec/nim/tintegers_double_overflow.nim index 89d47936c..19e6252ae 100644 --- a/spec/nim/tintegers_double_overflow.nim +++ b/spec/nim/tintegers_double_overflow.nim @@ -5,7 +5,7 @@ import ../../compiled/nim/integers_double_overflow import auxiliary/test_utils import strutils -let r = IntegersDoubleOverflow.fromFile("src/integers_double_overflow.bin") +let r = IntegersDoubleOverflow.fromFile("../../src/integers_double_overflow.bin") assert r.signedSafeMinBe == -9007199254740991'i64 assert r.signedSafeMinLe == -9007199254740991'i64 diff --git a/spec/nim/tintegers_min_max.nim b/spec/nim/tintegers_min_max.nim index 16b396745..5e61f089d 100644 --- a/spec/nim/tintegers_min_max.nim +++ b/spec/nim/tintegers_min_max.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/integers_min_max import auxiliary/test_utils -let r = IntegersMinMax.fromFile("src/integers_min_max.bin") +let r = IntegersMinMax.fromFile("../../src/integers_min_max.bin") assert r.unsignedMin.u1 == 0 assert r.unsignedMin.u2le == 0 diff --git a/spec/nim/tio_local_var.nim b/spec/nim/tio_local_var.nim index 50bbe6754..64b4d097c 100644 --- a/spec/nim/tio_local_var.nim +++ b/spec/nim/tio_local_var.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/io_local_var import auxiliary/test_utils -let r = IoLocalVar.fromFile("src/full256.bin") +let r = IoLocalVar.fromFile("../../src/full256.bin") assert r.skip == @[0'u8, 1'u8, 2'u8, 3'u8, 4'u8, 5'u8, 6'u8, 7'u8, 8'u8, 9'u8, 10'u8, 11'u8, 12'u8, 13'u8, 14'u8, 15'u8, 16'u8, 17'u8, 18'u8, 19'u8] assert r.followup == 20 diff --git a/spec/nim/tjs_signed_right_shift.nim b/spec/nim/tjs_signed_right_shift.nim index 7da5c644f..dc703285c 100644 --- a/spec/nim/tjs_signed_right_shift.nim +++ b/spec/nim/tjs_signed_right_shift.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/js_signed_right_shift import auxiliary/test_utils -let r = JsSignedRightShift.fromFile("src/fixed_struct.bin") +let r = JsSignedRightShift.fromFile("../../src/fixed_struct.bin") assert r.shouldBe40000000 == 1073741824 assert r.shouldBeA00000 == 10485760 diff --git a/spec/nim/tmeta_tags.nim b/spec/nim/tmeta_tags.nim index bec31aae3..978c9083c 100644 --- a/spec/nim/tmeta_tags.nim +++ b/spec/nim/tmeta_tags.nim @@ -4,5 +4,5 @@ import os, streams, options, sequtils import ../../compiled/nim/meta_tags import auxiliary/test_utils -let r = MetaTags.fromFile("src/fixed_struct.bin") +let r = MetaTags.fromFile("../../src/fixed_struct.bin") diff --git a/spec/nim/tmeta_xref.nim b/spec/nim/tmeta_xref.nim index e8d9869e3..309787f17 100644 --- a/spec/nim/tmeta_xref.nim +++ b/spec/nim/tmeta_xref.nim @@ -4,5 +4,5 @@ import os, streams, options, sequtils import ../../compiled/nim/meta_xref import auxiliary/test_utils -let r = MetaXref.fromFile("src/fixed_struct.bin") +let r = MetaXref.fromFile("../../src/fixed_struct.bin") diff --git a/spec/nim/tmultiple_use.nim b/spec/nim/tmultiple_use.nim index 7602a40df..816c92b02 100644 --- a/spec/nim/tmultiple_use.nim +++ b/spec/nim/tmultiple_use.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/multiple_use import auxiliary/test_utils -let r = MultipleUse.fromFile("src/position_abs.bin") +let r = MultipleUse.fromFile("../../src/position_abs.bin") assert r.t1.firstUse.value == 32 assert r.t2.secondUse.value == 32 diff --git a/spec/nim/tnav_parent.nim b/spec/nim/tnav_parent.nim index e46720175..e26cb9ec0 100644 --- a/spec/nim/tnav_parent.nim +++ b/spec/nim/tnav_parent.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nav_parent import auxiliary/test_utils -let r = NavParent.fromFile("src/nav.bin") +let r = NavParent.fromFile("../../src/nav.bin") assert r.header.qtyEntries == 2 assert r.header.filenameLen == 8 diff --git a/spec/nim/tnav_parent2.nim b/spec/nim/tnav_parent2.nim index 690ab686d..98886dc39 100644 --- a/spec/nim/tnav_parent2.nim +++ b/spec/nim/tnav_parent2.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nav_parent2 import auxiliary/test_utils -let r = NavParent2.fromFile("src/nav_parent2.bin") +let r = NavParent2.fromFile("../../src/nav_parent2.bin") assert r.ofsTags == 8 assert r.numTags == 2 diff --git a/spec/nim/tnav_parent3.nim b/spec/nim/tnav_parent3.nim index 716b6154a..c128b0371 100644 --- a/spec/nim/tnav_parent3.nim +++ b/spec/nim/tnav_parent3.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nav_parent3 import auxiliary/test_utils -let r = NavParent3.fromFile("src/nav_parent2.bin") +let r = NavParent3.fromFile("../../src/nav_parent2.bin") assert r.ofsTags == 8 assert r.numTags == 2 diff --git a/spec/nim/tnav_parent_false.nim b/spec/nim/tnav_parent_false.nim index 9c765bb06..53183c246 100644 --- a/spec/nim/tnav_parent_false.nim +++ b/spec/nim/tnav_parent_false.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nav_parent_false import auxiliary/test_utils -let r = NavParentFalse.fromFile("src/nav_parent_codes.bin") +let r = NavParentFalse.fromFile("../../src/nav_parent_codes.bin") assert r.childSize == 3 assert r.elementA.foo.code == 73 diff --git a/spec/nim/tnav_parent_false2.nim b/spec/nim/tnav_parent_false2.nim index c7698cf2a..4150b26ea 100644 --- a/spec/nim/tnav_parent_false2.nim +++ b/spec/nim/tnav_parent_false2.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/nav_parent_false2 import auxiliary/test_utils -let r = NavParentFalse2.fromFile("src/fixed_struct.bin") +let r = NavParentFalse2.fromFile("../../src/fixed_struct.bin") assert r.parentless.foo == 80 diff --git a/spec/nim/tnav_parent_override.nim b/spec/nim/tnav_parent_override.nim index 52c0b12f5..658469170 100644 --- a/spec/nim/tnav_parent_override.nim +++ b/spec/nim/tnav_parent_override.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nav_parent_override import auxiliary/test_utils -let r = NavParentOverride.fromFile("src/nav_parent_codes.bin") +let r = NavParentOverride.fromFile("../../src/nav_parent_codes.bin") assert r.childSize == 3 assert r.child1.data == @[73'u8, 49'u8, 50'u8] diff --git a/spec/nim/tnav_parent_switch.nim b/spec/nim/tnav_parent_switch.nim index 2f8905e45..ba8a82595 100644 --- a/spec/nim/tnav_parent_switch.nim +++ b/spec/nim/tnav_parent_switch.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nav_parent_switch import auxiliary/test_utils -let r = NavParentSwitch.fromFile("src/nav_parent_switch.bin") +let r = NavParentSwitch.fromFile("../../src/nav_parent_switch.bin") assert r.category == 1 assert (NavParentSwitch_Element1(r.content)).foo == 66 diff --git a/spec/nim/tnav_parent_switch_cast.nim b/spec/nim/tnav_parent_switch_cast.nim index 2fbece8e7..c4c4d9ba3 100644 --- a/spec/nim/tnav_parent_switch_cast.nim +++ b/spec/nim/tnav_parent_switch_cast.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nav_parent_switch_cast import auxiliary/test_utils -let r = NavParentSwitchCast.fromFile("src/switch_integers.bin") +let r = NavParentSwitchCast.fromFile("../../src/switch_integers.bin") assert r.main.bufType == 1 assert r.main.flag == 7 diff --git a/spec/nim/tnav_parent_vs_value_inst.nim b/spec/nim/tnav_parent_vs_value_inst.nim index aaa9a2919..8a86639b9 100644 --- a/spec/nim/tnav_parent_vs_value_inst.nim +++ b/spec/nim/tnav_parent_vs_value_inst.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/nav_parent_vs_value_inst import auxiliary/test_utils -let r = NavParentVsValueInst.fromFile("src/term_strz.bin") +let r = NavParentVsValueInst.fromFile("../../src/term_strz.bin") assert r.s1 == "foo" diff --git a/spec/nim/tnav_root.nim b/spec/nim/tnav_root.nim index f0ea6ad21..fae8ee2c7 100644 --- a/spec/nim/tnav_root.nim +++ b/spec/nim/tnav_root.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nav_root import auxiliary/test_utils -let r = NavRoot.fromFile("src/nav.bin") +let r = NavRoot.fromFile("../../src/nav.bin") assert r.header.qtyEntries == 2 assert r.header.filenameLen == 8 diff --git a/spec/nim/tnested_same_name.nim b/spec/nim/tnested_same_name.nim index 95d51c240..2071b34d9 100644 --- a/spec/nim/tnested_same_name.nim +++ b/spec/nim/tnested_same_name.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nested_same_name import auxiliary/test_utils -let r = NestedSameName.fromFile("src/repeat_n_struct.bin") +let r = NestedSameName.fromFile("../../src/repeat_n_struct.bin") assert r.mainData.mainSize == 2 assert r.mainData.foo.data == @[16'u8, 0'u8, 0'u8, 0'u8] diff --git a/spec/nim/tnested_same_name2.nim b/spec/nim/tnested_same_name2.nim index b39076953..aa2b1e1ec 100644 --- a/spec/nim/tnested_same_name2.nim +++ b/spec/nim/tnested_same_name2.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nested_same_name2 import auxiliary/test_utils -let r = NestedSameName2.fromFile("src/nested_same_name2.bin") +let r = NestedSameName2.fromFile("../../src/nested_same_name2.bin") assert r.version == 66 assert r.mainData.mainSize == 2 diff --git a/spec/nim/tnested_type_param.nim b/spec/nim/tnested_type_param.nim index 60db5fbc2..5a6ad79c7 100644 --- a/spec/nim/tnested_type_param.nim +++ b/spec/nim/tnested_type_param.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nested_type_param import auxiliary/test_utils -let r = NestedTypeParam.fromFile("src/term_strz.bin") +let r = NestedTypeParam.fromFile("../../src/term_strz.bin") assert r.mainSeq.myLen == 5 assert r.mainSeq.body == "foo|b" diff --git a/spec/nim/tnested_types.nim b/spec/nim/tnested_types.nim index cfdb8ceaf..fc0c731f9 100644 --- a/spec/nim/tnested_types.nim +++ b/spec/nim/tnested_types.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nested_types import auxiliary/test_utils -let r = NestedTypes.fromFile("src/fixed_struct.bin") +let r = NestedTypes.fromFile("../../src/fixed_struct.bin") assert r.one.typedAtRoot.valueB == 80 assert r.one.typedHere.valueC == 65 diff --git a/spec/nim/tnested_types2.nim b/spec/nim/tnested_types2.nim index d0eb71836..511e7a465 100644 --- a/spec/nim/tnested_types2.nim +++ b/spec/nim/tnested_types2.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nested_types2 import auxiliary/test_utils -let r = NestedTypes2.fromFile("src/fixed_struct.bin") +let r = NestedTypes2.fromFile("../../src/fixed_struct.bin") assert r.one.typedAtRoot.valueB == 80 assert r.one.typedHere1.valueC == 65 diff --git a/spec/nim/tnested_types3.nim b/spec/nim/tnested_types3.nim index 683e21baa..7d619361e 100644 --- a/spec/nim/tnested_types3.nim +++ b/spec/nim/tnested_types3.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/nested_types3 import auxiliary/test_utils -let r = NestedTypes3.fromFile("src/fixed_struct.bin") +let r = NestedTypes3.fromFile("../../src/fixed_struct.bin") assert r.aCc.valueCc == 80 assert r.aCD.valueD == 65 diff --git a/spec/nim/tnon_standard.nim b/spec/nim/tnon_standard.nim index a8aa3c005..7f864a3a7 100644 --- a/spec/nim/tnon_standard.nim +++ b/spec/nim/tnon_standard.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/non_standard import auxiliary/test_utils -let r = NonStandard.fromFile("src/fixed_struct.bin") +let r = NonStandard.fromFile("../../src/fixed_struct.bin") assert r.foo == 80 diff --git a/spec/nim/tparams_call_extra_parens.nim b/spec/nim/tparams_call_extra_parens.nim index afe973a13..da115eae3 100644 --- a/spec/nim/tparams_call_extra_parens.nim +++ b/spec/nim/tparams_call_extra_parens.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/params_call_extra_parens import auxiliary/test_utils -let r = ParamsCallExtraParens.fromFile("src/term_strz.bin") +let r = ParamsCallExtraParens.fromFile("../../src/term_strz.bin") assert r.buf1.body == "foo|b" diff --git a/spec/nim/tparams_call_short.nim b/spec/nim/tparams_call_short.nim index d62f533bf..18b9241ac 100644 --- a/spec/nim/tparams_call_short.nim +++ b/spec/nim/tparams_call_short.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/params_call_short import auxiliary/test_utils -let r = ParamsCallShort.fromFile("src/term_strz.bin") +let r = ParamsCallShort.fromFile("../../src/term_strz.bin") assert r.buf1.body == "foo|b" assert r.buf2.body == "ar|ba" diff --git a/spec/nim/tparams_enum.nim b/spec/nim/tparams_enum.nim index 98847ad82..5d1f61fcd 100644 --- a/spec/nim/tparams_enum.nim +++ b/spec/nim/tparams_enum.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/params_enum import auxiliary/test_utils -let r = ParamsEnum.fromFile("src/enum_0.bin") +let r = ParamsEnum.fromFile("../../src/enum_0.bin") assert r.one == params_enum.cat assert r.invokeWithParam.isCat == true diff --git a/spec/nim/tparams_pass_array_int.nim b/spec/nim/tparams_pass_array_int.nim index cf5b64726..3d60ad537 100644 --- a/spec/nim/tparams_pass_array_int.nim +++ b/spec/nim/tparams_pass_array_int.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/params_pass_array_int import auxiliary/test_utils -let r = ParamsPassArrayInt.fromFile("src/position_to_end.bin") +let r = ParamsPassArrayInt.fromFile("../../src/position_to_end.bin") assert len(r.passInts.nums) == 3 assert r.passInts.nums[0] == 513 diff --git a/spec/nim/tparams_pass_array_str.nim b/spec/nim/tparams_pass_array_str.nim index c729fca01..611a5de2b 100644 --- a/spec/nim/tparams_pass_array_str.nim +++ b/spec/nim/tparams_pass_array_str.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/params_pass_array_str import auxiliary/test_utils -let r = ParamsPassArrayStr.fromFile("src/term_strz.bin") +let r = ParamsPassArrayStr.fromFile("../../src/term_strz.bin") assert len(r.passStrArray.strs) == 3 assert r.passStrArray.strs[0] == "fo" diff --git a/spec/nim/tparams_pass_array_struct.nim b/spec/nim/tparams_pass_array_struct.nim index 5f62dd2d5..183b51c37 100644 --- a/spec/nim/tparams_pass_array_struct.nim +++ b/spec/nim/tparams_pass_array_struct.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/params_pass_array_struct import auxiliary/test_utils -let r = ParamsPassArrayStruct.fromFile("src/position_to_end.bin") +let r = ParamsPassArrayStruct.fromFile("../../src/position_to_end.bin") assert len(r.passStructs.structs) == 2 assert (ParamsPassArrayStruct_Foo(r.passStructs.structs[0])).f == 1 diff --git a/spec/nim/tparams_pass_array_usertype.nim b/spec/nim/tparams_pass_array_usertype.nim index ae7a550d8..3e30ad949 100644 --- a/spec/nim/tparams_pass_array_usertype.nim +++ b/spec/nim/tparams_pass_array_usertype.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/params_pass_array_usertype import auxiliary/test_utils -let r = ParamsPassArrayUsertype.fromFile("src/position_to_end.bin") +let r = ParamsPassArrayUsertype.fromFile("../../src/position_to_end.bin") assert len(r.passBlocks.bar) == 2 assert r.passBlocks.bar[0].foo == 1 diff --git a/spec/nim/tparams_pass_bool.nim b/spec/nim/tparams_pass_bool.nim index 3afd04979..96da4d4d5 100644 --- a/spec/nim/tparams_pass_bool.nim +++ b/spec/nim/tparams_pass_bool.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/params_pass_bool import auxiliary/test_utils -let r = ParamsPassBool.fromFile("src/term_strz.bin") +let r = ParamsPassBool.fromFile("../../src/term_strz.bin") assert r.sFalse == false assert r.sTrue == true diff --git a/spec/nim/tparams_pass_struct.nim b/spec/nim/tparams_pass_struct.nim index e8abdd71a..d900f6270 100644 --- a/spec/nim/tparams_pass_struct.nim +++ b/spec/nim/tparams_pass_struct.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/params_pass_struct import auxiliary/test_utils -let r = ParamsPassStruct.fromFile("src/enum_negative.bin") +let r = ParamsPassStruct.fromFile("../../src/enum_negative.bin") assert r.first.foo == 255 assert r.one.bar.qux == 1 diff --git a/spec/nim/tparams_pass_usertype.nim b/spec/nim/tparams_pass_usertype.nim index 3298a1bed..93cc9bda9 100644 --- a/spec/nim/tparams_pass_usertype.nim +++ b/spec/nim/tparams_pass_usertype.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/params_pass_usertype import auxiliary/test_utils -let r = ParamsPassUsertype.fromFile("src/position_in_seq.bin") +let r = ParamsPassUsertype.fromFile("../../src/position_in_seq.bin") assert r.first.foo == 1 assert r.one.buf == @[2'u8] diff --git a/spec/nim/tposition_abs.nim b/spec/nim/tposition_abs.nim index 0760019e2..8c29ca1e4 100644 --- a/spec/nim/tposition_abs.nim +++ b/spec/nim/tposition_abs.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/position_abs import auxiliary/test_utils -let r = PositionAbs.fromFile("src/position_abs.bin") +let r = PositionAbs.fromFile("../../src/position_abs.bin") assert r.indexOffset == 32 assert r.index.entry == "foo" diff --git a/spec/nim/tposition_in_seq.nim b/spec/nim/tposition_in_seq.nim index d9a4c8df7..5b704b28e 100644 --- a/spec/nim/tposition_in_seq.nim +++ b/spec/nim/tposition_in_seq.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/position_in_seq import auxiliary/test_utils -let r = PositionInSeq.fromFile("src/position_in_seq.bin") +let r = PositionInSeq.fromFile("../../src/position_in_seq.bin") assert r.numbers == @[uint8((0 + 1)), 2, 3] diff --git a/spec/nim/tposition_to_end.nim b/spec/nim/tposition_to_end.nim index 3a7543266..367519018 100644 --- a/spec/nim/tposition_to_end.nim +++ b/spec/nim/tposition_to_end.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/position_to_end import auxiliary/test_utils -let r = PositionToEnd.fromFile("src/position_to_end.bin") +let r = PositionToEnd.fromFile("../../src/position_to_end.bin") assert r.index.foo == 66 assert r.index.bar == 4660 diff --git a/spec/nim/tprocess_coerce_bytes.nim b/spec/nim/tprocess_coerce_bytes.nim index 48b1ca7d0..98d262212 100644 --- a/spec/nim/tprocess_coerce_bytes.nim +++ b/spec/nim/tprocess_coerce_bytes.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/process_coerce_bytes import auxiliary/test_utils -let r = ProcessCoerceBytes.fromFile("src/process_coerce_bytes.bin") +let r = ProcessCoerceBytes.fromFile("../../src/process_coerce_bytes.bin") assert r.records[0].flag == 0 assert r.records[0].buf == @[65'u8, 65'u8, 65'u8, 65'u8] diff --git a/spec/nim/tprocess_coerce_switch.nim b/spec/nim/tprocess_coerce_switch.nim index 7ad2c0295..585e1d24f 100644 --- a/spec/nim/tprocess_coerce_switch.nim +++ b/spec/nim/tprocess_coerce_switch.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/process_coerce_switch import auxiliary/test_utils -let r = ProcessCoerceSwitch.fromFile("src/process_coerce_switch.bin") +let r = ProcessCoerceSwitch.fromFile("../../src/process_coerce_switch.bin") assert r.bufType == 0 assert r.flag == 0 diff --git a/spec/nim/tprocess_coerce_usertype1.nim b/spec/nim/tprocess_coerce_usertype1.nim index a46621359..b861457ed 100644 --- a/spec/nim/tprocess_coerce_usertype1.nim +++ b/spec/nim/tprocess_coerce_usertype1.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/process_coerce_usertype1 import auxiliary/test_utils -let r = ProcessCoerceUsertype1.fromFile("src/process_coerce_bytes.bin") +let r = ProcessCoerceUsertype1.fromFile("../../src/process_coerce_bytes.bin") assert r.records[0].flag == 0 assert r.records[0].buf.value == 1094795585 diff --git a/spec/nim/tprocess_coerce_usertype2.nim b/spec/nim/tprocess_coerce_usertype2.nim index 58060a840..db4f635f0 100644 --- a/spec/nim/tprocess_coerce_usertype2.nim +++ b/spec/nim/tprocess_coerce_usertype2.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/process_coerce_usertype2 import auxiliary/test_utils -let r = ProcessCoerceUsertype2.fromFile("src/process_coerce_bytes.bin") +let r = ProcessCoerceUsertype2.fromFile("../../src/process_coerce_bytes.bin") assert r.records[0].flag == 0 assert r.records[0].buf.value == 1094795585 diff --git a/spec/nim/tprocess_custom.nim b/spec/nim/tprocess_custom.nim index a2128ac14..b06d98c21 100644 --- a/spec/nim/tprocess_custom.nim +++ b/spec/nim/tprocess_custom.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/process_custom import auxiliary/test_utils -let r = ProcessCustom.fromFile("src/process_rotate.bin") +let r = ProcessCustom.fromFile("../../src/process_rotate.bin") assert r.buf1 == @[16'u8, 179'u8, 148'u8, 148'u8, 244'u8] assert r.buf2 == @[95'u8, 186'u8, 123'u8, 147'u8, 99'u8, 35'u8, 95'u8] diff --git a/spec/nim/tprocess_custom_no_args.nim b/spec/nim/tprocess_custom_no_args.nim index c58f61cd4..263d8d8b6 100644 --- a/spec/nim/tprocess_custom_no_args.nim +++ b/spec/nim/tprocess_custom_no_args.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/process_custom_no_args import auxiliary/test_utils -let r = ProcessCustomNoArgs.fromFile("src/process_rotate.bin") +let r = ProcessCustomNoArgs.fromFile("../../src/process_rotate.bin") assert r.buf == @[95'u8, 9'u8, 172'u8, 141'u8, 141'u8, 237'u8, 95'u8] diff --git a/spec/nim/tprocess_repeat_bytes.nim b/spec/nim/tprocess_repeat_bytes.nim index c5e91777b..5097fb7a8 100644 --- a/spec/nim/tprocess_repeat_bytes.nim +++ b/spec/nim/tprocess_repeat_bytes.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/process_repeat_bytes import auxiliary/test_utils -let r = ProcessRepeatBytes.fromFile("src/process_xor_4.bin") +let r = ProcessRepeatBytes.fromFile("../../src/process_xor_4.bin") assert r.bufs[0] == @[114'u8, 37'u8, 61'u8, 138'u8, 20'u8] assert r.bufs[1] == @[74'u8, 82'u8, 170'u8, 16'u8, 68'u8] diff --git a/spec/nim/tprocess_repeat_usertype.nim b/spec/nim/tprocess_repeat_usertype.nim index 236ab404c..68f3d2116 100644 --- a/spec/nim/tprocess_repeat_usertype.nim +++ b/spec/nim/tprocess_repeat_usertype.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/process_repeat_usertype import auxiliary/test_utils -let r = ProcessRepeatUsertype.fromFile("src/process_xor_4.bin") +let r = ProcessRepeatUsertype.fromFile("../../src/process_xor_4.bin") assert r.blocks[0].a == -1975704206 assert r.blocks[0].b == 20 diff --git a/spec/nim/tprocess_rotate.nim b/spec/nim/tprocess_rotate.nim index f7459f4e9..2228c3421 100644 --- a/spec/nim/tprocess_rotate.nim +++ b/spec/nim/tprocess_rotate.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/process_rotate import auxiliary/test_utils -let r = ProcessRotate.fromFile("src/process_rotate.bin") +let r = ProcessRotate.fromFile("../../src/process_rotate.bin") assert r.buf1 == @[72'u8, 101'u8, 108'u8, 108'u8, 111'u8] assert r.buf2 == @[87'u8, 111'u8, 114'u8, 108'u8, 100'u8] diff --git a/spec/nim/tprocess_to_user.nim b/spec/nim/tprocess_to_user.nim index c1397dea7..e87f0f313 100644 --- a/spec/nim/tprocess_to_user.nim +++ b/spec/nim/tprocess_to_user.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/process_to_user import auxiliary/test_utils -let r = ProcessToUser.fromFile("src/process_rotate.bin") +let r = ProcessToUser.fromFile("../../src/process_rotate.bin") assert r.buf1.str == "Hello" diff --git a/spec/nim/tprocess_xor4_const.nim b/spec/nim/tprocess_xor4_const.nim index e3007773b..380b1fd0b 100644 --- a/spec/nim/tprocess_xor4_const.nim +++ b/spec/nim/tprocess_xor4_const.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/process_xor4_const import auxiliary/test_utils -let r = ProcessXor4Const.fromFile("src/process_xor_4.bin") +let r = ProcessXor4Const.fromFile("../../src/process_xor_4.bin") assert r.key == @[236'u8, 187'u8, 163'u8, 20'u8] assert r.buf == @[102'u8, 111'u8, 111'u8, 32'u8, 98'u8, 97'u8, 114'u8] diff --git a/spec/nim/tprocess_xor4_value.nim b/spec/nim/tprocess_xor4_value.nim index 5551837fa..4be046feb 100644 --- a/spec/nim/tprocess_xor4_value.nim +++ b/spec/nim/tprocess_xor4_value.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/process_xor4_value import auxiliary/test_utils -let r = ProcessXor4Value.fromFile("src/process_xor_4.bin") +let r = ProcessXor4Value.fromFile("../../src/process_xor_4.bin") assert r.key == @[236'u8, 187'u8, 163'u8, 20'u8] assert r.buf == @[102'u8, 111'u8, 111'u8, 32'u8, 98'u8, 97'u8, 114'u8] diff --git a/spec/nim/tprocess_xor_const.nim b/spec/nim/tprocess_xor_const.nim index e8c15be18..f13d36bc2 100644 --- a/spec/nim/tprocess_xor_const.nim +++ b/spec/nim/tprocess_xor_const.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/process_xor_const import auxiliary/test_utils -let r = ProcessXorConst.fromFile("src/process_xor_1.bin") +let r = ProcessXorConst.fromFile("../../src/process_xor_1.bin") assert r.key == 255 assert r.buf == @[102'u8, 111'u8, 111'u8, 32'u8, 98'u8, 97'u8, 114'u8] diff --git a/spec/nim/tprocess_xor_value.nim b/spec/nim/tprocess_xor_value.nim index 1d149f170..d1c3dbf8a 100644 --- a/spec/nim/tprocess_xor_value.nim +++ b/spec/nim/tprocess_xor_value.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/process_xor_value import auxiliary/test_utils -let r = ProcessXorValue.fromFile("src/process_xor_1.bin") +let r = ProcessXorValue.fromFile("../../src/process_xor_1.bin") assert r.key == 255 assert r.buf == @[102'u8, 111'u8, 111'u8, 32'u8, 98'u8, 97'u8, 114'u8] diff --git a/spec/nim/trecursive_one.nim b/spec/nim/trecursive_one.nim index 0e5414a0c..2f838dea0 100644 --- a/spec/nim/trecursive_one.nim +++ b/spec/nim/trecursive_one.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/recursive_one import auxiliary/test_utils -let r = RecursiveOne.fromFile("src/fixed_struct.bin") +let r = RecursiveOne.fromFile("../../src/fixed_struct.bin") assert r.one == 80 assert (RecursiveOne(r.next)).one == 65 diff --git a/spec/nim/trepeat_eos_bit.nim b/spec/nim/trepeat_eos_bit.nim index f5c1de2d7..4cd57282b 100644 --- a/spec/nim/trepeat_eos_bit.nim +++ b/spec/nim/trepeat_eos_bit.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/repeat_eos_bit import auxiliary/test_utils -let r = RepeatEosBit.fromFile("src/enum_0.bin") +let r = RepeatEosBit.fromFile("../../src/enum_0.bin") assert len(r.nibbles) == 16 diff --git a/spec/nim/trepeat_eos_struct.nim b/spec/nim/trepeat_eos_struct.nim index c610280a6..a2b70ff62 100644 --- a/spec/nim/trepeat_eos_struct.nim +++ b/spec/nim/trepeat_eos_struct.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/repeat_eos_struct import auxiliary/test_utils -let r = RepeatEosStruct.fromFile("src/repeat_eos_struct.bin") +let r = RepeatEosStruct.fromFile("../../src/repeat_eos_struct.bin") assert len(r.chunks) == 2 assert r.chunks[0].offset == 0 diff --git a/spec/nim/trepeat_eos_u4.nim b/spec/nim/trepeat_eos_u4.nim index 9aefae0a5..c822c2ad7 100644 --- a/spec/nim/trepeat_eos_u4.nim +++ b/spec/nim/trepeat_eos_u4.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/repeat_eos_u4 import auxiliary/test_utils -let r = RepeatEosU4.fromFile("src/repeat_eos_struct.bin") +let r = RepeatEosU4.fromFile("../../src/repeat_eos_struct.bin") assert r.numbers == @[uint32(0), 66, 66, 2069] diff --git a/spec/nim/trepeat_n_struct.nim b/spec/nim/trepeat_n_struct.nim index 3a88b189e..6c1a9a288 100644 --- a/spec/nim/trepeat_n_struct.nim +++ b/spec/nim/trepeat_n_struct.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/repeat_n_struct import auxiliary/test_utils -let r = RepeatNStruct.fromFile("src/repeat_n_struct.bin") +let r = RepeatNStruct.fromFile("../../src/repeat_n_struct.bin") assert len(r.chunks) == 2 assert r.chunks[0].offset == 16 diff --git a/spec/nim/trepeat_n_strz.nim b/spec/nim/trepeat_n_strz.nim index 17b805dfe..46773c12d 100644 --- a/spec/nim/trepeat_n_strz.nim +++ b/spec/nim/trepeat_n_strz.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/repeat_n_strz import auxiliary/test_utils -let r = RepeatNStrz.fromFile("src/repeat_n_strz.bin") +let r = RepeatNStrz.fromFile("../../src/repeat_n_strz.bin") assert r.qty == 2 assert r.lines == @[string("foo"), "bar"] diff --git a/spec/nim/trepeat_n_strz_double.nim b/spec/nim/trepeat_n_strz_double.nim index bb1ca749d..5c4b29233 100644 --- a/spec/nim/trepeat_n_strz_double.nim +++ b/spec/nim/trepeat_n_strz_double.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/repeat_n_strz_double import auxiliary/test_utils -let r = RepeatNStrzDouble.fromFile("src/repeat_n_strz.bin") +let r = RepeatNStrzDouble.fromFile("../../src/repeat_n_strz.bin") assert r.qty == 2 assert r.lines1 == @[string("foo"), ] diff --git a/spec/nim/trepeat_until_calc_array_type.nim b/spec/nim/trepeat_until_calc_array_type.nim index cfc564890..7c953035f 100644 --- a/spec/nim/trepeat_until_calc_array_type.nim +++ b/spec/nim/trepeat_until_calc_array_type.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/repeat_until_calc_array_type import auxiliary/test_utils -let r = RepeatUntilCalcArrayType.fromFile("src/repeat_until_process.bin") +let r = RepeatUntilCalcArrayType.fromFile("../../src/repeat_until_process.bin") assert len(r.records) == 3 assert r.records[0].marker == 232 diff --git a/spec/nim/trepeat_until_complex.nim b/spec/nim/trepeat_until_complex.nim index e3db52e42..bbf1ad048 100644 --- a/spec/nim/trepeat_until_complex.nim +++ b/spec/nim/trepeat_until_complex.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/repeat_until_complex import auxiliary/test_utils -let r = RepeatUntilComplex.fromFile("src/repeat_until_complex.bin") +let r = RepeatUntilComplex.fromFile("../../src/repeat_until_complex.bin") assert len(r.first) == 3 assert r.first[0].count == 4 diff --git a/spec/nim/trepeat_until_s4.nim b/spec/nim/trepeat_until_s4.nim index 31afa57f6..10e492b7d 100644 --- a/spec/nim/trepeat_until_s4.nim +++ b/spec/nim/trepeat_until_s4.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/repeat_until_s4 import auxiliary/test_utils -let r = RepeatUntilS4.fromFile("src/repeat_until_s4.bin") +let r = RepeatUntilS4.fromFile("../../src/repeat_until_s4.bin") assert r.entries == @[int32(66), 4919, -251658241, -1] assert r.afterall == "foobar" diff --git a/spec/nim/trepeat_until_sized.nim b/spec/nim/trepeat_until_sized.nim index ff90478bd..224e10f3d 100644 --- a/spec/nim/trepeat_until_sized.nim +++ b/spec/nim/trepeat_until_sized.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/repeat_until_sized import auxiliary/test_utils -let r = RepeatUntilSized.fromFile("src/repeat_until_process.bin") +let r = RepeatUntilSized.fromFile("../../src/repeat_until_process.bin") assert len(r.records) == 3 assert r.records[0].marker == 232 diff --git a/spec/nim/tstr_encodings.nim b/spec/nim/tstr_encodings.nim index 1937a8969..387e28c37 100644 --- a/spec/nim/tstr_encodings.nim +++ b/spec/nim/tstr_encodings.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/str_encodings import auxiliary/test_utils -let r = StrEncodings.fromFile("src/str_encodings.bin") +let r = StrEncodings.fromFile("../../src/str_encodings.bin") assert r.str1 == "Some ASCII" assert r.str2 == "\u3053\u3093\u306b\u3061\u306f" diff --git a/spec/nim/tstr_encodings_default.nim b/spec/nim/tstr_encodings_default.nim index 99f66b87c..2e5371c23 100644 --- a/spec/nim/tstr_encodings_default.nim +++ b/spec/nim/tstr_encodings_default.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/str_encodings_default import auxiliary/test_utils -let r = StrEncodingsDefault.fromFile("src/str_encodings.bin") +let r = StrEncodingsDefault.fromFile("../../src/str_encodings.bin") assert r.str1 == "Some ASCII" assert r.rest.str2 == "\u3053\u3093\u306b\u3061\u306f" diff --git a/spec/nim/tstr_eos.nim b/spec/nim/tstr_eos.nim index a49a01edf..8ae2845c9 100644 --- a/spec/nim/tstr_eos.nim +++ b/spec/nim/tstr_eos.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/str_eos import auxiliary/test_utils -let r = StrEos.fromFile("src/term_strz.bin") +let r = StrEos.fromFile("../../src/term_strz.bin") assert r.str == "foo|bar|baz@" diff --git a/spec/nim/tstr_literals2.nim b/spec/nim/tstr_literals2.nim index 6681db494..b27e263f5 100644 --- a/spec/nim/tstr_literals2.nim +++ b/spec/nim/tstr_literals2.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/str_literals2 import auxiliary/test_utils -let r = StrLiterals2.fromFile("src/fixed_struct.bin") +let r = StrLiterals2.fromFile("../../src/fixed_struct.bin") assert r.dollar1 == "$foo" assert r.dollar2 == "${foo}" diff --git a/spec/nim/tstr_pad_term.nim b/spec/nim/tstr_pad_term.nim index f8144533a..6b46c52db 100644 --- a/spec/nim/tstr_pad_term.nim +++ b/spec/nim/tstr_pad_term.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/str_pad_term import auxiliary/test_utils -let r = StrPadTerm.fromFile("src/str_pad_term.bin") +let r = StrPadTerm.fromFile("../../src/str_pad_term.bin") assert r.strPad == "str1" assert r.strTerm == "str2foo" diff --git a/spec/nim/tstr_pad_term_empty.nim b/spec/nim/tstr_pad_term_empty.nim index dc82463de..f01ae8fd2 100644 --- a/spec/nim/tstr_pad_term_empty.nim +++ b/spec/nim/tstr_pad_term_empty.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/str_pad_term_empty import auxiliary/test_utils -let r = StrPadTermEmpty.fromFile("src/str_pad_term_empty.bin") +let r = StrPadTermEmpty.fromFile("../../src/str_pad_term_empty.bin") assert r.strPad == "" assert r.strTerm == "" diff --git a/spec/nim/tswitch_bytearray.nim b/spec/nim/tswitch_bytearray.nim index 3d9ce9503..53b5dd9d7 100644 --- a/spec/nim/tswitch_bytearray.nim +++ b/spec/nim/tswitch_bytearray.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_bytearray import auxiliary/test_utils -let r = SwitchBytearray.fromFile("src/switch_opcodes.bin") +let r = SwitchBytearray.fromFile("../../src/switch_opcodes.bin") assert len(r.opcodes) == 4 assert r.opcodes[0].code == @[83'u8] diff --git a/spec/nim/tswitch_else_only.nim b/spec/nim/tswitch_else_only.nim index f913fa073..c6e6edd4b 100644 --- a/spec/nim/tswitch_else_only.nim +++ b/spec/nim/tswitch_else_only.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_else_only import auxiliary/test_utils -let r = SwitchElseOnly.fromFile("src/switch_opcodes.bin") +let r = SwitchElseOnly.fromFile("../../src/switch_opcodes.bin") assert r.opcode == 83 assert r.primByte == 102 diff --git a/spec/nim/tswitch_integers.nim b/spec/nim/tswitch_integers.nim index aefd13fb6..387020b96 100644 --- a/spec/nim/tswitch_integers.nim +++ b/spec/nim/tswitch_integers.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_integers import auxiliary/test_utils -let r = SwitchIntegers.fromFile("src/switch_integers.bin") +let r = SwitchIntegers.fromFile("../../src/switch_integers.bin") assert len(r.opcodes) == 4 assert r.opcodes[0].code == 1 diff --git a/spec/nim/tswitch_integers2.nim b/spec/nim/tswitch_integers2.nim index 960482e4e..053831424 100644 --- a/spec/nim/tswitch_integers2.nim +++ b/spec/nim/tswitch_integers2.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_integers2 import auxiliary/test_utils -let r = SwitchIntegers2.fromFile("src/switch_integers.bin") +let r = SwitchIntegers2.fromFile("../../src/switch_integers.bin") assert r.code == 1 assert r.len == 7 diff --git a/spec/nim/tswitch_manual_enum.nim b/spec/nim/tswitch_manual_enum.nim index e8e1c0c9b..09588aac6 100644 --- a/spec/nim/tswitch_manual_enum.nim +++ b/spec/nim/tswitch_manual_enum.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_manual_enum import auxiliary/test_utils -let r = SwitchManualEnum.fromFile("src/switch_opcodes.bin") +let r = SwitchManualEnum.fromFile("../../src/switch_opcodes.bin") assert len(r.opcodes) == 4 assert r.opcodes[0].code == switch_manual_enum.strval diff --git a/spec/nim/tswitch_manual_enum_invalid.nim b/spec/nim/tswitch_manual_enum_invalid.nim index 54c96e519..3a1c2e398 100644 --- a/spec/nim/tswitch_manual_enum_invalid.nim +++ b/spec/nim/tswitch_manual_enum_invalid.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_manual_enum_invalid import auxiliary/test_utils -let r = SwitchManualEnumInvalid.fromFile("src/enum_negative.bin") +let r = SwitchManualEnumInvalid.fromFile("../../src/enum_negative.bin") assert len(r.opcodes) == 2 assert r.opcodes[0].code == 255 diff --git a/spec/nim/tswitch_manual_enum_invalid_else.nim b/spec/nim/tswitch_manual_enum_invalid_else.nim index 7a2ea3aa0..c907a82c7 100644 --- a/spec/nim/tswitch_manual_enum_invalid_else.nim +++ b/spec/nim/tswitch_manual_enum_invalid_else.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_manual_enum_invalid_else import auxiliary/test_utils -let r = SwitchManualEnumInvalidElse.fromFile("src/enum_negative.bin") +let r = SwitchManualEnumInvalidElse.fromFile("../../src/enum_negative.bin") assert len(r.opcodes) == 2 assert r.opcodes[0].code == 255 diff --git a/spec/nim/tswitch_manual_int.nim b/spec/nim/tswitch_manual_int.nim index 996c64c77..cee142c2c 100644 --- a/spec/nim/tswitch_manual_int.nim +++ b/spec/nim/tswitch_manual_int.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_manual_int import auxiliary/test_utils -let r = SwitchManualInt.fromFile("src/switch_opcodes.bin") +let r = SwitchManualInt.fromFile("../../src/switch_opcodes.bin") assert len(r.opcodes) == 4 assert r.opcodes[0].code == 83 diff --git a/spec/nim/tswitch_manual_int_else.nim b/spec/nim/tswitch_manual_int_else.nim index 648ce27b5..21f4d4b9c 100644 --- a/spec/nim/tswitch_manual_int_else.nim +++ b/spec/nim/tswitch_manual_int_else.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_manual_int_else import auxiliary/test_utils -let r = SwitchManualIntElse.fromFile("src/switch_opcodes2.bin") +let r = SwitchManualIntElse.fromFile("../../src/switch_opcodes2.bin") assert len(r.opcodes) == 4 assert r.opcodes[0].code == 83 diff --git a/spec/nim/tswitch_manual_int_size.nim b/spec/nim/tswitch_manual_int_size.nim index e49d6fd4f..99f9c9497 100644 --- a/spec/nim/tswitch_manual_int_size.nim +++ b/spec/nim/tswitch_manual_int_size.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_manual_int_size import auxiliary/test_utils -let r = SwitchManualIntSize.fromFile("src/switch_tlv.bin") +let r = SwitchManualIntSize.fromFile("../../src/switch_tlv.bin") assert len(r.chunks) == 4 assert r.chunks[0].code == 17 diff --git a/spec/nim/tswitch_manual_int_size_else.nim b/spec/nim/tswitch_manual_int_size_else.nim index aa74f00f3..01573d126 100644 --- a/spec/nim/tswitch_manual_int_size_else.nim +++ b/spec/nim/tswitch_manual_int_size_else.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_manual_int_size_else import auxiliary/test_utils -let r = SwitchManualIntSizeElse.fromFile("src/switch_tlv.bin") +let r = SwitchManualIntSizeElse.fromFile("../../src/switch_tlv.bin") assert len(r.chunks) == 4 assert r.chunks[0].code == 17 diff --git a/spec/nim/tswitch_manual_str.nim b/spec/nim/tswitch_manual_str.nim index 78a678fcb..81414a4d3 100644 --- a/spec/nim/tswitch_manual_str.nim +++ b/spec/nim/tswitch_manual_str.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_manual_str import auxiliary/test_utils -let r = SwitchManualStr.fromFile("src/switch_opcodes.bin") +let r = SwitchManualStr.fromFile("../../src/switch_opcodes.bin") assert len(r.opcodes) == 4 assert r.opcodes[0].code == "S" diff --git a/spec/nim/tswitch_manual_str_else.nim b/spec/nim/tswitch_manual_str_else.nim index 65819a293..1848f01aa 100644 --- a/spec/nim/tswitch_manual_str_else.nim +++ b/spec/nim/tswitch_manual_str_else.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_manual_str_else import auxiliary/test_utils -let r = SwitchManualStrElse.fromFile("src/switch_opcodes2.bin") +let r = SwitchManualStrElse.fromFile("../../src/switch_opcodes2.bin") assert len(r.opcodes) == 4 assert r.opcodes[0].code == "S" diff --git a/spec/nim/tswitch_repeat_expr.nim b/spec/nim/tswitch_repeat_expr.nim index a2afce098..f67554206 100644 --- a/spec/nim/tswitch_repeat_expr.nim +++ b/spec/nim/tswitch_repeat_expr.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_repeat_expr import auxiliary/test_utils -let r = SwitchRepeatExpr.fromFile("src/switch_tlv.bin") +let r = SwitchRepeatExpr.fromFile("../../src/switch_tlv.bin") assert r.code == 17 assert r.size == 9 diff --git a/spec/nim/tswitch_repeat_expr_invalid.nim b/spec/nim/tswitch_repeat_expr_invalid.nim index 442bf2d8b..ee9ef1f95 100644 --- a/spec/nim/tswitch_repeat_expr_invalid.nim +++ b/spec/nim/tswitch_repeat_expr_invalid.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/switch_repeat_expr_invalid import auxiliary/test_utils -let r = SwitchRepeatExprInvalid.fromFile("src/switch_tlv.bin") +let r = SwitchRepeatExprInvalid.fromFile("../../src/switch_tlv.bin") assert r.code == 17 assert r.size == 9 diff --git a/spec/nim/tterm_bytes.nim b/spec/nim/tterm_bytes.nim index 69f976f6e..82a9920fd 100644 --- a/spec/nim/tterm_bytes.nim +++ b/spec/nim/tterm_bytes.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/term_bytes import auxiliary/test_utils -let r = TermBytes.fromFile("src/term_strz.bin") +let r = TermBytes.fromFile("../../src/term_strz.bin") assert r.s1 == @[102'u8, 111'u8, 111'u8] assert r.s2 == @[98'u8, 97'u8, 114'u8] diff --git a/spec/nim/tterm_strz.nim b/spec/nim/tterm_strz.nim index 6bdc6de0d..aee5b5e99 100644 --- a/spec/nim/tterm_strz.nim +++ b/spec/nim/tterm_strz.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/term_strz import auxiliary/test_utils -let r = TermStrz.fromFile("src/term_strz.bin") +let r = TermStrz.fromFile("../../src/term_strz.bin") assert r.s1 == "foo" assert r.s2 == "bar" diff --git a/spec/nim/tterm_u1_val.nim b/spec/nim/tterm_u1_val.nim index 1d187e286..8424f583a 100644 --- a/spec/nim/tterm_u1_val.nim +++ b/spec/nim/tterm_u1_val.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/term_u1_val import auxiliary/test_utils -let r = TermU1Val.fromFile("src/str_encodings.bin") +let r = TermU1Val.fromFile("../../src/str_encodings.bin") assert r.foo == @[10'u8, 0'u8, 83'u8, 111'u8, 109'u8, 101'u8, 32'u8, 65'u8, 83'u8, 67'u8, 73'u8, 73'u8, 15'u8, 0'u8] assert r.bar == "\u3053\u3093\u306b" diff --git a/spec/nim/tts_packet_header.nim b/spec/nim/tts_packet_header.nim index 96e3d4bfb..c745561d6 100644 --- a/spec/nim/tts_packet_header.nim +++ b/spec/nim/tts_packet_header.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/ts_packet_header import auxiliary/test_utils -let r = TsPacketHeader.fromFile("src/ts_packet.bin") +let r = TsPacketHeader.fromFile("../../src/ts_packet.bin") assert r.syncByte == 71 assert r.transportErrorIndicator == false diff --git a/spec/nim/ttype_int_unary_op.nim b/spec/nim/ttype_int_unary_op.nim index 1e1b2c603..935f3d15c 100644 --- a/spec/nim/ttype_int_unary_op.nim +++ b/spec/nim/ttype_int_unary_op.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/type_int_unary_op import auxiliary/test_utils -let r = TypeIntUnaryOp.fromFile("src/fixed_struct.bin") +let r = TypeIntUnaryOp.fromFile("../../src/fixed_struct.bin") assert r.valueS2 == 16720 assert r.valueS8 == 4706543082108963651'i64 diff --git a/spec/nim/ttype_ternary.nim b/spec/nim/ttype_ternary.nim index 44744ded2..cf92b078a 100644 --- a/spec/nim/ttype_ternary.nim +++ b/spec/nim/ttype_ternary.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/type_ternary import auxiliary/test_utils -let r = TypeTernary.fromFile("src/term_strz.bin") +let r = TypeTernary.fromFile("../../src/term_strz.bin") assert r.dif.value == 101 diff --git a/spec/nim/ttype_ternary_2nd_falsy.nim b/spec/nim/ttype_ternary_2nd_falsy.nim index c2b4ca524..a7bf4de94 100644 --- a/spec/nim/ttype_ternary_2nd_falsy.nim +++ b/spec/nim/ttype_ternary_2nd_falsy.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/type_ternary_2nd_falsy import auxiliary/test_utils -let r = TypeTernary2ndFalsy.fromFile("src/switch_integers.bin") +let r = TypeTernary2ndFalsy.fromFile("../../src/switch_integers.bin") assert r.vFalse == false assert r.vIntZero == 0 diff --git a/spec/nim/tuser_type.nim b/spec/nim/tuser_type.nim index a53352d01..172611d9b 100644 --- a/spec/nim/tuser_type.nim +++ b/spec/nim/tuser_type.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/user_type import auxiliary/test_utils -let r = UserType.fromFile("src/repeat_until_s4.bin") +let r = UserType.fromFile("../../src/repeat_until_s4.bin") assert r.one.width == 66 assert r.one.height == 4919 diff --git a/spec/nim/tvalid_eq_str_encodings.nim b/spec/nim/tvalid_eq_str_encodings.nim index 7739e926d..74b92e848 100644 --- a/spec/nim/tvalid_eq_str_encodings.nim +++ b/spec/nim/tvalid_eq_str_encodings.nim @@ -4,5 +4,5 @@ import os, streams, options, sequtils import ../../compiled/nim/valid_eq_str_encodings import auxiliary/test_utils -let r = ValidEqStrEncodings.fromFile("src/str_encodings.bin") +let r = ValidEqStrEncodings.fromFile("../../src/str_encodings.bin") diff --git a/spec/nim/tvalid_long.nim b/spec/nim/tvalid_long.nim index 2c2c662ce..a011c6dd2 100644 --- a/spec/nim/tvalid_long.nim +++ b/spec/nim/tvalid_long.nim @@ -4,5 +4,5 @@ import os, streams, options, sequtils import ../../compiled/nim/valid_long import auxiliary/test_utils -let r = ValidLong.fromFile("src/fixed_struct.bin") +let r = ValidLong.fromFile("../../src/fixed_struct.bin") diff --git a/spec/nim/tvalid_not_parsed_if.nim b/spec/nim/tvalid_not_parsed_if.nim index 705c1bd8b..37e6591de 100644 --- a/spec/nim/tvalid_not_parsed_if.nim +++ b/spec/nim/tvalid_not_parsed_if.nim @@ -4,5 +4,5 @@ import os, streams, options, sequtils import ../../compiled/nim/valid_not_parsed_if import auxiliary/test_utils -let r = ValidNotParsedIf.fromFile("src/fixed_struct.bin") +let r = ValidNotParsedIf.fromFile("../../src/fixed_struct.bin") diff --git a/spec/nim/tvalid_short.nim b/spec/nim/tvalid_short.nim index 72b8a37e1..137f78f43 100644 --- a/spec/nim/tvalid_short.nim +++ b/spec/nim/tvalid_short.nim @@ -4,5 +4,5 @@ import os, streams, options, sequtils import ../../compiled/nim/valid_short import auxiliary/test_utils -let r = ValidShort.fromFile("src/fixed_struct.bin") +let r = ValidShort.fromFile("../../src/fixed_struct.bin") diff --git a/spec/nim/tvalid_switch.nim b/spec/nim/tvalid_switch.nim index 2055e31d7..2a6df3a92 100644 --- a/spec/nim/tvalid_switch.nim +++ b/spec/nim/tvalid_switch.nim @@ -4,5 +4,5 @@ import os, streams, options, sequtils import ../../compiled/nim/valid_switch import auxiliary/test_utils -let r = ValidSwitch.fromFile("src/fixed_struct.bin") +let r = ValidSwitch.fromFile("../../src/fixed_struct.bin") diff --git a/spec/nim/tyaml_ints.nim b/spec/nim/tyaml_ints.nim index 999f077bf..3ee7b713d 100644 --- a/spec/nim/tyaml_ints.nim +++ b/spec/nim/tyaml_ints.nim @@ -4,7 +4,7 @@ import os, streams, options, sequtils import ../../compiled/nim/yaml_ints import auxiliary/test_utils -let r = YamlInts.fromFile("src/fixed_struct.bin") +let r = YamlInts.fromFile("../../src/fixed_struct.bin") assert r.testU4Dec == 4294967295'i64 assert r.testU4Hex == 4294967295'i64 diff --git a/spec/nim/tzlib_surrounded.nim b/spec/nim/tzlib_surrounded.nim index 460d468b4..03a46d07c 100644 --- a/spec/nim/tzlib_surrounded.nim +++ b/spec/nim/tzlib_surrounded.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/zlib_surrounded import auxiliary/test_utils -let r = ZlibSurrounded.fromFile("src/zlib_surrounded.bin") +let r = ZlibSurrounded.fromFile("../../src/zlib_surrounded.bin") assert r.zlib.num == -1 diff --git a/spec/nim/tzlib_with_header_78.nim b/spec/nim/tzlib_with_header_78.nim index 98212f058..e8d9b22b8 100644 --- a/spec/nim/tzlib_with_header_78.nim +++ b/spec/nim/tzlib_with_header_78.nim @@ -4,6 +4,6 @@ import os, streams, options, sequtils import ../../compiled/nim/zlib_with_header_78 import auxiliary/test_utils -let r = ZlibWithHeader78.fromFile("src/zlib_with_header_78.bin") +let r = ZlibWithHeader78.fromFile("../../src/zlib_with_header_78.bin") assert r.data == @[97'u8, 32'u8, 113'u8, 117'u8, 105'u8, 99'u8, 107'u8, 32'u8, 98'u8, 114'u8, 111'u8, 119'u8, 110'u8, 32'u8, 102'u8, 111'u8, 120'u8, 32'u8, 106'u8, 117'u8, 109'u8, 112'u8, 115'u8, 32'u8, 111'u8, 118'u8, 101'u8, 114'u8] diff --git a/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/NimSG.scala b/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/NimSG.scala index 5f3b25a34..9eb665028 100644 --- a/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/NimSG.scala +++ b/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/NimSG.scala @@ -20,7 +20,7 @@ class NimSG(spec: TestSpec, provider: ClassTypeProvider) extends BaseGenerator(s // Members declared in io.kaitai.struct.testtranslator.specgenerators.BaseGenerator override def fileName(name: String): String = s"tests/t${spec.id}.nim" override def header(): Unit = { - out.puts(s"let r = ${className}.fromFile" + "(\"src/" + spec.data + "\")") + out.puts(s"let r = ${className}.fromFile" + "(\"../../src/" + spec.data + "\")") } override def footer(): Unit = { } override def nullAssert(actual: expr): Unit = {