diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..5acd074d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +############################### +# Core EditorConfig Options # +############################### + +# dotnet-format requires version 3.1.37601 +# dotnet tool update -g dotnet-format +# remember to have: git config --global core.autocrlf false #(which is usually default) + +root = true + +# Every file + +[*] +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 +end_of_line = lf diff --git a/.travis.yml b/.travis.yml index d08a4e07..c642d8c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,14 +11,20 @@ mono: none dotnet: 2.2.300 before_install: - - cd tests/neo-vm.Tests - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ulimit -n 2048; fi - +install: + - dotnet tool install -g dotnet-format --version 4.0.40103 --add-source https://dotnet.myget.org/F/format/api/v3/index.json + - export PATH="$PATH:$HOME/.dotnet/tools" + - dotnet-format --version +before_script: + - echo "Checking format..." + - dotnet format --check --dry-run -w src/neo-vm -v diagnostic # check C# formatting for the source + - dotnet format --check --dry-run -w tests/neo-vm.Tests -v diagnostic # check C# formatting for the unit tests + - cd tests/neo-vm.Tests script: - - dotnet restore - - find * -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild - - dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover - + - dotnet restore + - find * -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild + - dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover after_success: # After all tests OK, Send CodeDov report - echo "Test Success - Branch($TRAVIS_BRANCH) Pull Request($TRAVIS_PULL_REQUEST) Tag($TRAVIS_TAG)" diff --git a/neo-vm.sln b/neo-vm.sln index ad0ba680..33c1a889 100644 --- a/neo-vm.sln +++ b/neo-vm.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26430.15 diff --git a/src/neo-vm/Debugger.cs b/src/neo-vm/Debugger.cs index 611238e0..e3f7c732 100644 --- a/src/neo-vm/Debugger.cs +++ b/src/neo-vm/Debugger.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Neo.VM { diff --git a/src/neo-vm/ExecutionContext.cs b/src/neo-vm/ExecutionContext.cs index bb825f3b..131be431 100644 --- a/src/neo-vm/ExecutionContext.cs +++ b/src/neo-vm/ExecutionContext.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; diff --git a/src/neo-vm/ExecutionEngine.cs b/src/neo-vm/ExecutionEngine.cs index 16626a3b..95b99cf9 100644 --- a/src/neo-vm/ExecutionEngine.cs +++ b/src/neo-vm/ExecutionEngine.cs @@ -1,4 +1,4 @@ -using Neo.VM.Types; +using Neo.VM.Types; using System; using System.Collections; using System.Collections.Generic; diff --git a/src/neo-vm/Instruction.cs b/src/neo-vm/Instruction.cs index f2e05d74..80bcb7d8 100644 --- a/src/neo-vm/Instruction.cs +++ b/src/neo-vm/Instruction.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Text; diff --git a/src/neo-vm/OpCode.cs b/src/neo-vm/OpCode.cs index 07d7a66b..ef272d06 100644 --- a/src/neo-vm/OpCode.cs +++ b/src/neo-vm/OpCode.cs @@ -644,7 +644,7 @@ public enum OpCode : byte //Reserved = 0xAC, //Reserved = 0xAE, - + // Array /// /// An array is removed from top of the main stack. Its size is put on top of the main stack. diff --git a/src/neo-vm/Properties/AssemblyInfo.cs b/src/neo-vm/Properties/AssemblyInfo.cs index a527503c..2c77ef17 100644 --- a/src/neo-vm/Properties/AssemblyInfo.cs +++ b/src/neo-vm/Properties/AssemblyInfo.cs @@ -1,3 +1,3 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; -[assembly: InternalsVisibleTo("neo-vm.Tests")] \ No newline at end of file +[assembly: InternalsVisibleTo("neo-vm.Tests")] diff --git a/src/neo-vm/RandomAccessStack.cs b/src/neo-vm/RandomAccessStack.cs index 62a6b22b..16bd66c2 100644 --- a/src/neo-vm/RandomAccessStack.cs +++ b/src/neo-vm/RandomAccessStack.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; @@ -95,4 +95,4 @@ public void Set(int index, T item) list[(list.Count - index - 1)] = item; } } -} \ No newline at end of file +} diff --git a/src/neo-vm/Script.cs b/src/neo-vm/Script.cs index ac3e05bb..18395786 100644 --- a/src/neo-vm/Script.cs +++ b/src/neo-vm/Script.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; diff --git a/src/neo-vm/ScriptBuilder.cs b/src/neo-vm/ScriptBuilder.cs index 6861f1c9..6b068a7e 100644 --- a/src/neo-vm/ScriptBuilder.cs +++ b/src/neo-vm/ScriptBuilder.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Numerics; using System.Text; diff --git a/src/neo-vm/StackItem.cs b/src/neo-vm/StackItem.cs index 8a77bcf5..21070a70 100644 --- a/src/neo-vm/StackItem.cs +++ b/src/neo-vm/StackItem.cs @@ -1,4 +1,4 @@ -using Neo.VM.Types; +using Neo.VM.Types; using System; using System.Collections.Generic; using System.Numerics; diff --git a/src/neo-vm/Types/Array.cs b/src/neo-vm/Types/Array.cs index f7223115..0d976cdb 100644 --- a/src/neo-vm/Types/Array.cs +++ b/src/neo-vm/Types/Array.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; diff --git a/src/neo-vm/Types/Boolean.cs b/src/neo-vm/Types/Boolean.cs index 3b227adb..aab00e67 100644 --- a/src/neo-vm/Types/Boolean.cs +++ b/src/neo-vm/Types/Boolean.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Diagnostics; using System.Numerics; diff --git a/src/neo-vm/Types/ByteArray.cs b/src/neo-vm/Types/ByteArray.cs index 0df049c9..583343fe 100644 --- a/src/neo-vm/Types/ByteArray.cs +++ b/src/neo-vm/Types/ByteArray.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Diagnostics; namespace Neo.VM.Types diff --git a/src/neo-vm/Types/Integer.cs b/src/neo-vm/Types/Integer.cs index 1b39b995..c0ba2232 100644 --- a/src/neo-vm/Types/Integer.cs +++ b/src/neo-vm/Types/Integer.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Diagnostics; using System.Numerics; diff --git a/src/neo-vm/Types/InteropInterface.cs b/src/neo-vm/Types/InteropInterface.cs index 2934ac6b..e5b6e120 100644 --- a/src/neo-vm/Types/InteropInterface.cs +++ b/src/neo-vm/Types/InteropInterface.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Diagnostics; namespace Neo.VM.Types diff --git a/src/neo-vm/Types/Map.cs b/src/neo-vm/Types/Map.cs index a82cb21a..30065aaf 100644 --- a/src/neo-vm/Types/Map.cs +++ b/src/neo-vm/Types/Map.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; diff --git a/src/neo-vm/Types/Struct.cs b/src/neo-vm/Types/Struct.cs index 9619611b..eeae1eb3 100644 --- a/src/neo-vm/Types/Struct.cs +++ b/src/neo-vm/Types/Struct.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics; namespace Neo.VM.Types diff --git a/src/neo-vm/Unsafe.cs b/src/neo-vm/Unsafe.cs index 9cf061f2..df0a3deb 100644 --- a/src/neo-vm/Unsafe.cs +++ b/src/neo-vm/Unsafe.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Runtime.CompilerServices; namespace Neo.VM diff --git a/src/neo-vm/VMState.cs b/src/neo-vm/VMState.cs index 14c221b9..3f955b52 100644 --- a/src/neo-vm/VMState.cs +++ b/src/neo-vm/VMState.cs @@ -1,4 +1,4 @@ -namespace Neo.VM +namespace Neo.VM { public enum VMState : byte { diff --git a/src/neo-vm/neo-vm.csproj b/src/neo-vm/neo-vm.csproj index 60d7daeb..cbc76ef7 100644 --- a/src/neo-vm/neo-vm.csproj +++ b/src/neo-vm/neo-vm.csproj @@ -1,4 +1,4 @@ - + 2016-2019 The Neo Project diff --git a/tests/neo-vm.Tests/Converters/ScriptConverter.cs b/tests/neo-vm.Tests/Converters/ScriptConverter.cs index 85a64582..464bd999 100644 --- a/tests/neo-vm.Tests/Converters/ScriptConverter.cs +++ b/tests/neo-vm.Tests/Converters/ScriptConverter.cs @@ -1,4 +1,4 @@ -using System; +using System; using Neo.Test.Extensions; using Newtonsoft.Json; @@ -40,4 +40,4 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s } } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/Extensions/JsonExtensions.cs b/tests/neo-vm.Tests/Extensions/JsonExtensions.cs index b39c3e38..d4f20b1f 100644 --- a/tests/neo-vm.Tests/Extensions/JsonExtensions.cs +++ b/tests/neo-vm.Tests/Extensions/JsonExtensions.cs @@ -1,4 +1,4 @@ -using Newtonsoft.Json; +using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; @@ -43,4 +43,4 @@ public static string ToJson(this object ut) return JsonConvert.SerializeObject(ut, _settings); } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/Extensions/StringExtensions.cs b/tests/neo-vm.Tests/Extensions/StringExtensions.cs index 972e7bb2..4344b64d 100644 --- a/tests/neo-vm.Tests/Extensions/StringExtensions.cs +++ b/tests/neo-vm.Tests/Extensions/StringExtensions.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Globalization; namespace Neo.Test.Extensions @@ -54,4 +54,4 @@ public static byte[] FromHexString(this string value) return result; } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/Helpers/RandomHelper.cs b/tests/neo-vm.Tests/Helpers/RandomHelper.cs index 161c1719..4f8e6173 100644 --- a/tests/neo-vm.Tests/Helpers/RandomHelper.cs +++ b/tests/neo-vm.Tests/Helpers/RandomHelper.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace Neo.Test.Helpers { @@ -46,4 +46,4 @@ public static short RandInt16() return (short)_rand.Next(short.MaxValue); } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/APPEND.json b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/APPEND.json index 3125dc6a..20cd48f8 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/APPEND.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/APPEND.json @@ -1,4 +1,4 @@ -{ +{ "category": "Arrays", "name": "APPEND", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/ARRAYSIZE.json b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/ARRAYSIZE.json index 5e936a62..f246f40a 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/ARRAYSIZE.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/ARRAYSIZE.json @@ -1,4 +1,4 @@ -{ +{ "category": "Arrays", "name": "ARRAYSIZE", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/NEWARRAY.json b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/NEWARRAY.json index 7fad5de2..c2aecb12 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/NEWARRAY.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/NEWARRAY.json @@ -1,4 +1,4 @@ -{ +{ "category": "Arrays", "name": "NEWARRAY", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/NEWMAP.json b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/NEWMAP.json index 4b2df956..f780c798 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/NEWMAP.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/NEWMAP.json @@ -1,4 +1,4 @@ -{ +{ "category": "Arrays", "name": "NEWMAP", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/NEWSTRUCT.json b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/NEWSTRUCT.json index edab1270..d0b2ec51 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/NEWSTRUCT.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/NEWSTRUCT.json @@ -1,4 +1,4 @@ -{ +{ "category": "Arrays", "name": "NEWSTRUCT", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/PACK.json b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/PACK.json index f1c0716f..f686126b 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/PACK.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/PACK.json @@ -1,4 +1,4 @@ -{ +{ "category": "Arrays", "name": "PACK", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/PICKITEM.json b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/PICKITEM.json index a9d6db04..adaad3c4 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/PICKITEM.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/PICKITEM.json @@ -1,4 +1,4 @@ -{ +{ "category": "Arrays", "name": "PICKITEM", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/REMOVE.json b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/REMOVE.json index a2ac6f9e..4476af0f 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/REMOVE.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/REMOVE.json @@ -1,4 +1,4 @@ -{ +{ "category": "Arrays", "name": "REMOVE", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/REVERSE.json b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/REVERSE.json index 9ef8b7c8..d77bbcf6 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/REVERSE.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/REVERSE.json @@ -1,4 +1,4 @@ -{ +{ "category": "Arrays", "name": "REVERSE", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/SETITEM.json b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/SETITEM.json index fa7dcbbc..8e67b186 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/SETITEM.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/SETITEM.json @@ -1,4 +1,4 @@ -{ +{ "category": "Arrays", "name": "SETITEM", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/UNPACK.json b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/UNPACK.json index 5facb2f3..11907906 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Arrays/UNPACK.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Arrays/UNPACK.json @@ -1,4 +1,4 @@ -{ +{ "category": "Arrays", "name": "UNPACK", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/BitwiseLogic/EQUAL.json b/tests/neo-vm.Tests/Tests/OpCodes/BitwiseLogic/EQUAL.json index 09343348..fc7088f2 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/BitwiseLogic/EQUAL.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/BitwiseLogic/EQUAL.json @@ -1,4 +1,4 @@ -{ +{ "category": "Bitwise Logic", "name": "EQUAL same types", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Control/NOP.json b/tests/neo-vm.Tests/Tests/OpCodes/Control/NOP.json index 7456c113..1d924532 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Control/NOP.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Control/NOP.json @@ -1,4 +1,4 @@ -{ +{ "category": "Control", "name": "NOP", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Control/RET.json b/tests/neo-vm.Tests/Tests/OpCodes/Control/RET.json index d674bbd6..dde52a68 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Control/RET.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Control/RET.json @@ -1,4 +1,4 @@ -{ +{ "category": "Control", "name": "RET", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Control/SYSCALL.json b/tests/neo-vm.Tests/Tests/OpCodes/Control/SYSCALL.json index 19974876..c742535c 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Control/SYSCALL.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Control/SYSCALL.json @@ -1,4 +1,4 @@ -{ +{ "category": "Control", "name": "SYSCALL", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Exceptions/THROW.json b/tests/neo-vm.Tests/Tests/OpCodes/Exceptions/THROW.json index def26338..9650e4a6 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Exceptions/THROW.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Exceptions/THROW.json @@ -1,4 +1,4 @@ -{ +{ "category": "Exceptions", "name": "THROW", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Exceptions/THROWIFNOT.json b/tests/neo-vm.Tests/Tests/OpCodes/Exceptions/THROWIFNOT.json index 3025cf10..a2a635a9 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Exceptions/THROWIFNOT.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Exceptions/THROWIFNOT.json @@ -1,4 +1,4 @@ -{ +{ "category": "Exceptions", "name": "THROWIFNOT", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Numeric/NOT.json b/tests/neo-vm.Tests/Tests/OpCodes/Numeric/NOT.json index c31813bf..58ab6c14 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Numeric/NOT.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Numeric/NOT.json @@ -1,4 +1,4 @@ -{ +{ "category": "Numeric", "name": "NOT", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Numeric/NUMEQUAL.json b/tests/neo-vm.Tests/Tests/OpCodes/Numeric/NUMEQUAL.json index f1a5c703..50535d14 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Numeric/NUMEQUAL.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Numeric/NUMEQUAL.json @@ -1,4 +1,4 @@ -{ +{ "category": "Numeric", "name": "NUMEQUAL same types", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Numeric/NUMNOTEQUAL.json b/tests/neo-vm.Tests/Tests/OpCodes/Numeric/NUMNOTEQUAL.json index f35b9a6c..61067101 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Numeric/NUMNOTEQUAL.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Numeric/NUMNOTEQUAL.json @@ -1,4 +1,4 @@ -{ +{ "category": "Numeric", "name": "NUMNOTEQUAL same types", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Numeric/SHL.json b/tests/neo-vm.Tests/Tests/OpCodes/Numeric/SHL.json index 20b7a741..c3a4b2da 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Numeric/SHL.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Numeric/SHL.json @@ -1,4 +1,4 @@ -{ +{ "category": "Numeric", "name": "SHL", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Numeric/SHR.json b/tests/neo-vm.Tests/Tests/OpCodes/Numeric/SHR.json index 463aa7a6..4940aac8 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Numeric/SHR.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Numeric/SHR.json @@ -1,4 +1,4 @@ -{ +{ "category": "Numeric", "name": "SHR", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Numeric/SIGN.json b/tests/neo-vm.Tests/Tests/OpCodes/Numeric/SIGN.json index 16e78021..eed8c740 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Numeric/SIGN.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Numeric/SIGN.json @@ -1,4 +1,4 @@ -{ +{ "category": "Numeric", "name": "SIGN", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSH0.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSH0.json index 12b65179..7c76c341 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSH0.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSH0.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSH0", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES1.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES1.json index 52be7a70..f7b83d6e 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES1.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES1.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES1", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES10.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES10.json index 3784b3f0..b7d88225 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES10.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES10.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES10", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES11.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES11.json index 009e241b..503a853c 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES11.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES11.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES11", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES12.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES12.json index b43d169f..25ccc33b 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES12.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES12.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES12", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES13.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES13.json index 362a9f8d..403d8221 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES13.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES13.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES13", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES14.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES14.json index d93066a2..14c1a3e5 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES14.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES14.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES14", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES15.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES15.json index 1bbf6775..c2504e36 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES15.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES15.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES15", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES16.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES16.json index 520d0b01..bbd16bf6 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES16.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES16.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES16", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES17.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES17.json index 0d008d60..140da52e 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES17.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES17.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES17", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES18.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES18.json index 0147afc8..fabaa4dd 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES18.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES18.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES18", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES19.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES19.json index 569b2ecd..93e69ad6 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES19.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES19.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES19", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES2.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES2.json index 90c5e09b..d1217a2b 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES2.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES2.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES2", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES20.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES20.json index f252dd52..b5043d16 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES20.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES20.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES20", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES21.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES21.json index e2fc1608..e13b85c7 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES21.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES21.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES21", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES22.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES22.json index c1a41d6c..fd60acf4 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES22.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES22.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES22", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES23.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES23.json index c8ac1532..22338387 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES23.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES23.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES23", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES24.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES24.json index e6479834..9185fe04 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES24.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES24.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES24", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES25.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES25.json index 8484760f..8e7d2bdc 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES25.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES25.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES25", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES26.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES26.json index 03c7c0e1..746d9678 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES26.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES26.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES26", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES27.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES27.json index 9f2bd1ce..946e7dee 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES27.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES27.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES27", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES28.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES28.json index 83de7f2c..f59388c9 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES28.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES28.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES28", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES29.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES29.json index 1312d230..8c71fae6 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES29.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES29.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES29", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES3.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES3.json index 372ab742..7b20b82b 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES3.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES3.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES3", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES30.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES30.json index e9c31602..02336f9f 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES30.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES30.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES30", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES31.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES31.json index 578a2cca..82f84fad 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES31.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES31.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES31", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES32.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES32.json index a2950844..06585ec0 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES32.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES32.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES32", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES33.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES33.json index 858b6ddc..c7a293e5 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES33.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES33.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES33", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES34.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES34.json index 2bb67fd9..31b670a4 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES34.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES34.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES34", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES35.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES35.json index d4b20015..9e09e8b0 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES35.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES35.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES35", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES36.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES36.json index dadc0af7..fc09927e 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES36.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES36.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES36", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES37.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES37.json index f044e58b..706cb71d 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES37.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES37.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES37", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES38.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES38.json index 88ffe845..90124728 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES38.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES38.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES38", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES39.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES39.json index 64c655ef..cf9c1392 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES39.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES39.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES39", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES4.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES4.json index 40fb08e2..e59a3783 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES4.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES4.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES4", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES40.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES40.json index d5066204..4c86ffa5 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES40.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES40.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES40", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES41.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES41.json index 6259f70e..177ed48c 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES41.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES41.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES41", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES42.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES42.json index 6f538f92..ca47d034 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES42.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES42.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES42", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES43.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES43.json index b5e71432..a0d8854d 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES43.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES43.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES43", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES44.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES44.json index 887b8dc0..9e1b8dcb 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES44.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES44.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES44", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES45.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES45.json index 033970fb..dab5980c 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES45.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES45.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES45", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES46.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES46.json index 713203f6..b468b9c4 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES46.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES46.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES46", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES47.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES47.json index b3a5c98c..74b39b2e 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES47.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES47.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES47", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES48.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES48.json index 5b4a6b07..750ee8d5 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES48.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES48.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES48", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES49.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES49.json index 09fa5f36..a247dd72 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES49.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES49.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES49", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES5.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES5.json index 1505e82e..73e306f9 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES5.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES5.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES5", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES50.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES50.json index 1cfa6137..0f522b05 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES50.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES50.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES50", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES51.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES51.json index 67bc156e..739df8c4 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES51.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES51.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES51", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES52.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES52.json index 4cd49071..47cea479 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES52.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES52.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES52", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES53.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES53.json index a8ebe874..18e9269a 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES53.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES53.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES53", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES54.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES54.json index a2caedb6..33e123b4 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES54.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES54.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES54", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES55.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES55.json index c2b56cc5..fc3c78a8 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES55.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES55.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES55", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES56.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES56.json index 5bd46141..fa84ed86 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES56.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES56.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES56", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES57.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES57.json index 4e6ea78a..f2eaad3f 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES57.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES57.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES57", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES58.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES58.json index bb6ffb8e..bb345c7c 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES58.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES58.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES58", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES59.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES59.json index 6901f0a8..062957ad 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES59.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES59.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES59", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES6.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES6.json index 66eb5d05..781e57b5 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES6.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES6.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES6", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES60.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES60.json index 00fb0747..8029c95a 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES60.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES60.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES60", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES61.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES61.json index 17087a94..57dfa9d6 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES61.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES61.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES61", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES62.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES62.json index bdfb0a2b..0e07f940 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES62.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES62.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES62", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES63.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES63.json index 41a6391d..09efa1d9 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES63.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES63.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES63", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES64.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES64.json index 7ef683bf..3149dc8d 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES64.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES64.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES64", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES65.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES65.json index 3415e084..6e7b78b9 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES65.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES65.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES65", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES66.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES66.json index 5518f015..c907eaca 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES66.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES66.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES66", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES67.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES67.json index 75234a87..737a3c90 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES67.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES67.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES67", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES68.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES68.json index d412dd95..106af751 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES68.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES68.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES68", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES69.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES69.json index eccf3015..d0ca6945 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES69.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES69.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES69", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES7.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES7.json index 5ad0886d..b3354029 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES7.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES7.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES7", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES70.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES70.json index 660e9763..1b79c837 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES70.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES70.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES70", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES71.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES71.json index e883291c..74689448 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES71.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES71.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES71", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES72.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES72.json index c8baabf2..923e3848 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES72.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES72.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES72", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES73.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES73.json index cd1eb5b2..99125574 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES73.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES73.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES73", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES74.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES74.json index ae9247c0..b5093a3c 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES74.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES74.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES74", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES75.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES75.json index 75879fb5..e9a36053 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES75.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES75.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES75", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES8.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES8.json index 2ce351db..a9661428 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES8.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES8.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES8", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES9.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES9.json index f328c40b..81e0209d 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES9.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHBYTES9.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHBYTES9", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHDATA1.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHDATA1.json index 7ccfa788..046d9ce1 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHDATA1.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHDATA1.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHDATA1", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHDATA2.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHDATA2.json index 28756930..6d75ee08 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHDATA2.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHDATA2.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHDATA2", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHDATA4.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHDATA4.json index 98750d2c..cb588fb5 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHDATA4.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHDATA4.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "PUSHDATA4", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHM1_to_PUSH16.json b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHM1_to_PUSH16.json index 3b662cb5..146eb7d8 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHM1_to_PUSH16.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Push/PUSHM1_to_PUSH16.json @@ -1,4 +1,4 @@ -{ +{ "category": "Push", "name": "From PUSHM1 to PUSH16 [-1 to 16]", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Splice/CAT.json b/tests/neo-vm.Tests/Tests/OpCodes/Splice/CAT.json index ed7b4a15..e7b986c3 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Splice/CAT.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Splice/CAT.json @@ -1,4 +1,4 @@ -{ +{ "category": "Splice", "name": "CAT", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Splice/LEFT.json b/tests/neo-vm.Tests/Tests/OpCodes/Splice/LEFT.json index 50504240..381bbbbe 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Splice/LEFT.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Splice/LEFT.json @@ -1,4 +1,4 @@ -{ +{ "category": "Splice", "name": "LEFT", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Splice/RIGHT.json b/tests/neo-vm.Tests/Tests/OpCodes/Splice/RIGHT.json index ed859d89..5ea1a210 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Splice/RIGHT.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Splice/RIGHT.json @@ -1,4 +1,4 @@ -{ +{ "category": "Splice", "name": "RIGHT", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Splice/SIZE.json b/tests/neo-vm.Tests/Tests/OpCodes/Splice/SIZE.json index 8d905d11..bc21af8a 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Splice/SIZE.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Splice/SIZE.json @@ -1,4 +1,4 @@ -{ +{ "category": "Splice", "name": "SIZE", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Splice/SUBSTR.json b/tests/neo-vm.Tests/Tests/OpCodes/Splice/SUBSTR.json index 3fbf98d2..4fd0916e 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Splice/SUBSTR.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Splice/SUBSTR.json @@ -1,4 +1,4 @@ -{ +{ "category": "Splice", "name": "SUBSTR", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/DEPTH.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/DEPTH.json index df6614f2..0af49348 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/DEPTH.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/DEPTH.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "DEPTH", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/DROP.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/DROP.json index 938bee54..557db5b9 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/DROP.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/DROP.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "DROP", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/DUPFROMALTSTACK.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/DUPFROMALTSTACK.json index 646fd714..b00083af 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/DUPFROMALTSTACK.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/DUPFROMALTSTACK.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "DUPFROMALTSTACK", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/DUPFROMALTSTACKBOTTOM.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/DUPFROMALTSTACKBOTTOM.json index 6c2b6b35..c53df47c 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/DUPFROMALTSTACKBOTTOM.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/DUPFROMALTSTACKBOTTOM.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "DUPFROMALTSTACKBOTTOM", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/FROMALTSTACK.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/FROMALTSTACK.json index 5e5520fb..a83c71f1 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/FROMALTSTACK.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/FROMALTSTACK.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "FROMALTSTACK", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/NIP.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/NIP.json index 433b6c98..871807f4 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/NIP.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/NIP.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "NIP", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/OVER.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/OVER.json index bb742cc8..0b6859c4 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/OVER.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/OVER.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "OVER", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/PICK.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/PICK.json index 12830860..48aec472 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/PICK.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/PICK.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "PICK", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/ROLL.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/ROLL.json index 758ac1c2..4a13cb6a 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/ROLL.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/ROLL.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "ROLL", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/ROT.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/ROT.json index 5ff85c50..5b715670 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/ROT.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/ROT.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "ROT", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/SWAP.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/SWAP.json index bbdb25a9..6a24635f 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/SWAP.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/SWAP.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "SWAP", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/TOALTSTACK.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/TOALTSTACK.json index d08b34d7..acb0fb6a 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/TOALTSTACK.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/TOALTSTACK.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "TOALTSTACK", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/TUCK.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/TUCK.json index 74ecff5b..c5c08377 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/TUCK.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/TUCK.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "TUCK", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/XDROP.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/XDROP.json index 6ed504da..c07cd136 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/XDROP.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/XDROP.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "XDROP", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/XSWAP.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/XSWAP.json index d72d4882..19cf5b5f 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/XSWAP.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/XSWAP.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "XSWAP", "tests": diff --git a/tests/neo-vm.Tests/Tests/OpCodes/Stack/XTUCK.json b/tests/neo-vm.Tests/Tests/OpCodes/Stack/XTUCK.json index a19609c6..1d8be183 100644 --- a/tests/neo-vm.Tests/Tests/OpCodes/Stack/XTUCK.json +++ b/tests/neo-vm.Tests/Tests/OpCodes/Stack/XTUCK.json @@ -1,4 +1,4 @@ -{ +{ "category": "Stack", "name": "XTUCK", "tests": diff --git a/tests/neo-vm.Tests/Tests/Others/Debugger.json b/tests/neo-vm.Tests/Tests/Others/Debugger.json index c8b1b01d..5338d5ce 100644 --- a/tests/neo-vm.Tests/Tests/Others/Debugger.json +++ b/tests/neo-vm.Tests/Tests/Others/Debugger.json @@ -1,4 +1,4 @@ -{ +{ "category": "Others", "name": "Debugger", "tests": diff --git a/tests/neo-vm.Tests/Tests/Others/Init.json b/tests/neo-vm.Tests/Tests/Others/Init.json index 4baf913a..6e5704bc 100644 --- a/tests/neo-vm.Tests/Tests/Others/Init.json +++ b/tests/neo-vm.Tests/Tests/Others/Init.json @@ -1,4 +1,4 @@ -{ +{ "category": "Others", "name": "Init", "tests": diff --git a/tests/neo-vm.Tests/Tests/Others/InvocationLimits.json b/tests/neo-vm.Tests/Tests/Others/InvocationLimits.json index 3e0823fd..46ece144 100644 --- a/tests/neo-vm.Tests/Tests/Others/InvocationLimits.json +++ b/tests/neo-vm.Tests/Tests/Others/InvocationLimits.json @@ -1,4 +1,4 @@ -{ +{ "category": "Limits", "name": "Invocation limits", "tests": diff --git a/tests/neo-vm.Tests/Tests/Others/OtherCases.json b/tests/neo-vm.Tests/Tests/Others/OtherCases.json index 641d8520..a4f5d3db 100644 --- a/tests/neo-vm.Tests/Tests/Others/OtherCases.json +++ b/tests/neo-vm.Tests/Tests/Others/OtherCases.json @@ -1,4 +1,4 @@ -{ +{ "category": "Limits", "name": "OtherCases", "tests": diff --git a/tests/neo-vm.Tests/Tests/Others/ScriptLogic.json b/tests/neo-vm.Tests/Tests/Others/ScriptLogic.json index 578798c7..0023beb4 100644 --- a/tests/neo-vm.Tests/Tests/Others/ScriptLogic.json +++ b/tests/neo-vm.Tests/Tests/Others/ScriptLogic.json @@ -1,4 +1,4 @@ -{ +{ "category": "Others", "name": "ScriptLogic", "tests": diff --git a/tests/neo-vm.Tests/Tests/Others/StackItemLimits.json b/tests/neo-vm.Tests/Tests/Others/StackItemLimits.json index 44d28119..561a1499 100644 --- a/tests/neo-vm.Tests/Tests/Others/StackItemLimits.json +++ b/tests/neo-vm.Tests/Tests/Others/StackItemLimits.json @@ -1,4 +1,4 @@ -{ +{ "category": "Limits", "name": "Stack item limits", "tests": diff --git a/tests/neo-vm.Tests/Tests/Others/StackLimits.json b/tests/neo-vm.Tests/Tests/Others/StackLimits.json index 48d713fe..70f8b711 100644 --- a/tests/neo-vm.Tests/Tests/Others/StackLimits.json +++ b/tests/neo-vm.Tests/Tests/Others/StackLimits.json @@ -1,4 +1,4 @@ -{ +{ "category": "Limits", "name": "Stack limits", "tests": diff --git a/tests/neo-vm.Tests/Types/TestEngine.cs b/tests/neo-vm.Tests/Types/TestEngine.cs index ca6ee358..f7d45881 100644 --- a/tests/neo-vm.Tests/Types/TestEngine.cs +++ b/tests/neo-vm.Tests/Types/TestEngine.cs @@ -1,4 +1,4 @@ -using Neo.VM; +using Neo.VM; namespace Neo.Test.Types { diff --git a/tests/neo-vm.Tests/Types/VMUT.cs b/tests/neo-vm.Tests/Types/VMUT.cs index 50bb618e..a018d05c 100644 --- a/tests/neo-vm.Tests/Types/VMUT.cs +++ b/tests/neo-vm.Tests/Types/VMUT.cs @@ -1,4 +1,4 @@ -using Newtonsoft.Json; +using Newtonsoft.Json; namespace Neo.Test.Types { @@ -13,4 +13,4 @@ public class VMUT [JsonProperty] public VMUTEntry[] Tests { get; set; } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/Types/VMUTActionType.cs b/tests/neo-vm.Tests/Types/VMUTActionType.cs index b1af4e4d..a90691a6 100644 --- a/tests/neo-vm.Tests/Types/VMUTActionType.cs +++ b/tests/neo-vm.Tests/Types/VMUTActionType.cs @@ -1,4 +1,4 @@ -namespace Neo.Test.Types +namespace Neo.Test.Types { public enum VMUTActionType { @@ -10,4 +10,4 @@ public enum VMUTActionType StepOut, StepOver, } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/Types/VMUTEntry.cs b/tests/neo-vm.Tests/Types/VMUTEntry.cs index 7b6c26ed..75b1e982 100644 --- a/tests/neo-vm.Tests/Types/VMUTEntry.cs +++ b/tests/neo-vm.Tests/Types/VMUTEntry.cs @@ -1,4 +1,4 @@ -using Neo.Test.Converters; +using Neo.Test.Converters; using Newtonsoft.Json; namespace Neo.Test.Types @@ -14,4 +14,4 @@ public class VMUTEntry [JsonProperty] public VMUTStep[] Steps { get; set; } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/Types/VMUTExecutionContextState.cs b/tests/neo-vm.Tests/Types/VMUTExecutionContextState.cs index e2f66933..7ed91553 100644 --- a/tests/neo-vm.Tests/Types/VMUTExecutionContextState.cs +++ b/tests/neo-vm.Tests/Types/VMUTExecutionContextState.cs @@ -1,4 +1,4 @@ -using Neo.VM; +using Neo.VM; using Newtonsoft.Json; namespace Neo.Test.Types @@ -19,4 +19,4 @@ public class VMUTExecutionContextState [JsonProperty] public VMUTStackItem[] EvaluationStack { get; set; } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/Types/VMUTExecutionEngineState.cs b/tests/neo-vm.Tests/Types/VMUTExecutionEngineState.cs index 697ec291..c6c0aab9 100644 --- a/tests/neo-vm.Tests/Types/VMUTExecutionEngineState.cs +++ b/tests/neo-vm.Tests/Types/VMUTExecutionEngineState.cs @@ -1,4 +1,4 @@ -using Neo.VM; +using Neo.VM; using Newtonsoft.Json; namespace Neo.Test.Types @@ -14,4 +14,4 @@ public class VMUTExecutionEngineState [JsonProperty] public VMUTExecutionContextState[] InvocationStack { get; set; } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/Types/VMUTStackItem.cs b/tests/neo-vm.Tests/Types/VMUTStackItem.cs index bb0b614f..5bbca0ff 100644 --- a/tests/neo-vm.Tests/Types/VMUTStackItem.cs +++ b/tests/neo-vm.Tests/Types/VMUTStackItem.cs @@ -1,4 +1,4 @@ -using Newtonsoft.Json; +using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace Neo.Test.Types @@ -11,4 +11,4 @@ public class VMUTStackItem [JsonProperty] public JToken Value { get; set; } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/Types/VMUTStackItemType.cs b/tests/neo-vm.Tests/Types/VMUTStackItemType.cs index a36a96ab..cb08feb9 100644 --- a/tests/neo-vm.Tests/Types/VMUTStackItemType.cs +++ b/tests/neo-vm.Tests/Types/VMUTStackItemType.cs @@ -1,4 +1,4 @@ -namespace Neo.Test.Types +namespace Neo.Test.Types { public enum VMUTStackItemType { @@ -6,27 +6,27 @@ public enum VMUTStackItemType /// Boolean (true,false) /// Boolean, - + /// /// ByteArray /// ByteArray, - + /// /// ByteArray as UTF8 string /// String, - + /// /// String /// Interop, - + /// /// BigInteger /// Integer, - + /// /// Array /// @@ -42,4 +42,4 @@ public enum VMUTStackItemType /// Map } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/Types/VMUTStep.cs b/tests/neo-vm.Tests/Types/VMUTStep.cs index f8b1fa6b..d0d88e0c 100644 --- a/tests/neo-vm.Tests/Types/VMUTStep.cs +++ b/tests/neo-vm.Tests/Types/VMUTStep.cs @@ -1,4 +1,4 @@ -using Newtonsoft.Json; +using Newtonsoft.Json; namespace Neo.Test.Types { @@ -13,4 +13,4 @@ public class VMUTStep [JsonProperty] public VMUTExecutionEngineState Result { get; set; } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/UtDebugger.cs b/tests/neo-vm.Tests/UtDebugger.cs index 95587a24..b003b1db 100644 --- a/tests/neo-vm.Tests/UtDebugger.cs +++ b/tests/neo-vm.Tests/UtDebugger.cs @@ -1,4 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Neo.VM; namespace Neo.Test @@ -69,11 +69,16 @@ public void TestStepOver() using (var engine = new ExecutionEngine()) using (var script = new ScriptBuilder()) { - /* ┌ */ script.EmitJump(OpCode.CALL, 5); - /* │ ┌> */ script.Emit(OpCode.NOT); - /* │ │ */ script.Emit(OpCode.RET); - /* └> │ */ script.Emit(OpCode.PUSH0); - /* └─┘ */ script.Emit(OpCode.RET); + /* ┌ CALL + │ ┌> NOT + │ │ RET + └> │ PUSH0 + └─┘ RET */ + script.EmitJump(OpCode.CALL, 5); + script.Emit(OpCode.NOT); + script.Emit(OpCode.RET); + script.Emit(OpCode.PUSH0); + script.Emit(OpCode.RET); engine.LoadScript(script.ToArray()); @@ -107,11 +112,16 @@ public void TestStepInto() using (var engine = new ExecutionEngine()) using (var script = new ScriptBuilder()) { - /* ┌ */ script.EmitJump(OpCode.CALL, 5); - /* │ ┌> */ script.Emit(OpCode.NOT); - /* │ │ */ script.Emit(OpCode.RET); - /* └> │ */ script.Emit(OpCode.PUSH0); - /* └─┘ */ script.Emit(OpCode.RET); + /* ┌ CALL + │ ┌> NOT + │ │ RET + └> │ PUSH0 + └─┘ RET */ + script.EmitJump(OpCode.CALL, 5); + script.Emit(OpCode.NOT); + script.Emit(OpCode.RET); + script.Emit(OpCode.PUSH0); + script.Emit(OpCode.RET); engine.LoadScript(script.ToArray()); @@ -158,11 +168,16 @@ public void TestBreakPointStepOver() using (var engine = new ExecutionEngine()) using (var script = new ScriptBuilder()) { - /* ┌ */ script.EmitJump(OpCode.CALL, 5); - /* │ ┌> */ script.Emit(OpCode.NOT); - /* │ │ */ script.Emit(OpCode.RET); - /* └>X│ */ script.Emit(OpCode.PUSH0); - /* └┘ */ script.Emit(OpCode.RET); + /* ┌ CALL + │ ┌> NOT + │ │ RET + └>X│ PUSH0 + └┘ RET */ + script.EmitJump(OpCode.CALL, 5); + script.Emit(OpCode.NOT); + script.Emit(OpCode.RET); + script.Emit(OpCode.PUSH0); + script.Emit(OpCode.RET); engine.LoadScript(script.ToArray()); diff --git a/tests/neo-vm.Tests/UtExecutionContext.cs b/tests/neo-vm.Tests/UtExecutionContext.cs index 11da740a..8985ea47 100644 --- a/tests/neo-vm.Tests/UtExecutionContext.cs +++ b/tests/neo-vm.Tests/UtExecutionContext.cs @@ -1,4 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Neo.VM; namespace Neo.Test diff --git a/tests/neo-vm.Tests/UtOpCode.cs b/tests/neo-vm.Tests/UtOpCode.cs index a6bc7384..96d16ac5 100644 --- a/tests/neo-vm.Tests/UtOpCode.cs +++ b/tests/neo-vm.Tests/UtOpCode.cs @@ -1,4 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Neo.VM; using System; using System.Linq; diff --git a/tests/neo-vm.Tests/UtRandomAccessStack.cs b/tests/neo-vm.Tests/UtRandomAccessStack.cs index 95ab8d09..50c2308d 100644 --- a/tests/neo-vm.Tests/UtRandomAccessStack.cs +++ b/tests/neo-vm.Tests/UtRandomAccessStack.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Collections.Generic; using System.Linq; @@ -147,4 +147,4 @@ public void TestSet() CollectionAssert.AreEqual(new int[] { 1, 2, 3, 4 }, stack.Select(u => u).ToArray()); } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/UtScript.cs b/tests/neo-vm.Tests/UtScript.cs index 1d3c6132..e903401c 100644 --- a/tests/neo-vm.Tests/UtScript.cs +++ b/tests/neo-vm.Tests/UtScript.cs @@ -1,4 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Neo.VM; using System; using System.Text; @@ -75,4 +75,4 @@ public void Parse() Assert.AreSame(ins, Instruction.RET); } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/UtScriptBuilder.cs b/tests/neo-vm.Tests/UtScriptBuilder.cs index 6a43ee5f..97412cb7 100644 --- a/tests/neo-vm.Tests/UtScriptBuilder.cs +++ b/tests/neo-vm.Tests/UtScriptBuilder.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Numerics; using System.Text; @@ -211,4 +211,4 @@ public void TestEmitPushString() } } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/UtStackItem.cs b/tests/neo-vm.Tests/UtStackItem.cs index 4f333d37..efb1064c 100644 --- a/tests/neo-vm.Tests/UtStackItem.cs +++ b/tests/neo-vm.Tests/UtStackItem.cs @@ -1,4 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Neo.VM; using Neo.VM.Types; using System.Collections.Generic; @@ -129,4 +129,4 @@ public void CastTest() } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/UtStruct.cs b/tests/neo-vm.Tests/UtStruct.cs index bd95b2c6..99c73106 100644 --- a/tests/neo-vm.Tests/UtStruct.cs +++ b/tests/neo-vm.Tests/UtStruct.cs @@ -1,4 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Neo.VM.Types; namespace Neo.Test diff --git a/tests/neo-vm.Tests/UtUnsafe.cs b/tests/neo-vm.Tests/UtUnsafe.cs index 3ee4a63b..5e8b30c6 100644 --- a/tests/neo-vm.Tests/UtUnsafe.cs +++ b/tests/neo-vm.Tests/UtUnsafe.cs @@ -1,7 +1,7 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Neo.VM; -using System; - +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Neo.VM; +using System; + namespace Neo.Test { [TestClass] @@ -19,78 +19,78 @@ public void NotZero() Assert.IsFalse(Unsafe.NotZero(new byte[0])); Assert.IsFalse(Unsafe.NotZero(new byte[4])); Assert.IsFalse(Unsafe.NotZero(new byte[8])); - Assert.IsFalse(Unsafe.NotZero(new byte[11])); - + Assert.IsFalse(Unsafe.NotZero(new byte[11])); + Assert.IsTrue(Unsafe.NotZero(new byte[4] { 0x00, 0x00, 0x00, 0x01 })); Assert.IsTrue(Unsafe.NotZero(new byte[8] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 })); Assert.IsTrue(Unsafe.NotZero(new byte[11] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 })); - } - + } + [TestMethod] public void MemoryCopy() { var from = new byte[0]; var to = new byte[0]; - Unsafe.MemoryCopy(from, 0, to, 0, 0); - CollectionAssert.AreEqual(from, to); - - from = new byte[5] { 0x06, 0x07, 0x08, 0x08, 0x09 }; + Unsafe.MemoryCopy(from, 0, to, 0, 0); + CollectionAssert.AreEqual(from, to); + + from = new byte[5] { 0x06, 0x07, 0x08, 0x08, 0x09 }; to = new byte[10] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00 }; - Unsafe.MemoryCopy(from, 0, to, 5, 5); + Unsafe.MemoryCopy(from, 0, to, 5, 5); CollectionAssert.AreEqual(to, new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x08, 0x09 }); - } - + } + [TestMethod] public void MemoryEquals() - { - var a = new byte[0]; - var b = new byte[1]; - - Assert.IsTrue(Unsafe.MemoryEquals(null, null)); - Assert.IsFalse(Unsafe.MemoryEquals(a, null)); - Assert.IsFalse(Unsafe.MemoryEquals(null, a)); - + { + var a = new byte[0]; + var b = new byte[1]; + + Assert.IsTrue(Unsafe.MemoryEquals(null, null)); + Assert.IsFalse(Unsafe.MemoryEquals(a, null)); + Assert.IsFalse(Unsafe.MemoryEquals(null, a)); + Assert.IsTrue(Unsafe.MemoryEquals(a, a)); Assert.IsTrue(Unsafe.MemoryEquals(new byte[0], new byte[0])); - Assert.IsFalse(Unsafe.MemoryEquals(a, b)); - - a = new byte[4]; - b = new byte[4]; + Assert.IsFalse(Unsafe.MemoryEquals(a, b)); + + a = new byte[4]; + b = new byte[4]; Assert.IsTrue(Unsafe.MemoryEquals(a, b)); - a = new byte[8]; + a = new byte[8]; b = new byte[8]; - Assert.IsTrue(Unsafe.MemoryEquals(a, b)); - - a = new byte[11]; + Assert.IsTrue(Unsafe.MemoryEquals(a, b)); + + a = new byte[11]; b = new byte[11]; - Assert.IsTrue(Unsafe.MemoryEquals(a, b)); - - a = new byte[4] { 0x00, 0x00, 0x00, 0x01 }; - b = new byte[4] { 0x00, 0x00, 0x00, 0x01 }; - Assert.IsTrue(Unsafe.MemoryEquals(a, b)); - - a = new byte[4] { 0x00, 0x00, 0x00, 0x01 }; - b = new byte[4] { 0x00, 0x00, 0x00, 0x02 }; + Assert.IsTrue(Unsafe.MemoryEquals(a, b)); + + a = new byte[4] { 0x00, 0x00, 0x00, 0x01 }; + b = new byte[4] { 0x00, 0x00, 0x00, 0x01 }; + Assert.IsTrue(Unsafe.MemoryEquals(a, b)); + + a = new byte[4] { 0x00, 0x00, 0x00, 0x01 }; + b = new byte[4] { 0x00, 0x00, 0x00, 0x02 }; Assert.IsFalse(Unsafe.MemoryEquals(a, b)); - a = new byte[8] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }; + a = new byte[8] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }; b = new byte[8] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }; - Assert.IsTrue(Unsafe.MemoryEquals(a, b)); - - a = new byte[8] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }; + Assert.IsTrue(Unsafe.MemoryEquals(a, b)); + + a = new byte[8] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }; b = new byte[8] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 }; - Assert.IsFalse(Unsafe.MemoryEquals(a, b)); - - a = new byte[11] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }; + Assert.IsFalse(Unsafe.MemoryEquals(a, b)); + + a = new byte[11] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }; b = new byte[11] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }; - Assert.IsTrue(Unsafe.MemoryEquals(a, b)); - - a = new byte[11] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }; + Assert.IsTrue(Unsafe.MemoryEquals(a, b)); + + a = new byte[11] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }; b = new byte[11] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 }; - Assert.IsFalse(Unsafe.MemoryEquals(a, b)); - } - } -} \ No newline at end of file + Assert.IsFalse(Unsafe.MemoryEquals(a, b)); + } + } +} diff --git a/tests/neo-vm.Tests/UtVMJson.cs b/tests/neo-vm.Tests/UtVMJson.cs index cc735c3d..a5f20d8f 100644 --- a/tests/neo-vm.Tests/UtVMJson.cs +++ b/tests/neo-vm.Tests/UtVMJson.cs @@ -54,4 +54,4 @@ private void TestJson(string path) } } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/VMJsonTestBase.cs b/tests/neo-vm.Tests/VMJsonTestBase.cs index fb0b74a8..caee9614 100644 --- a/tests/neo-vm.Tests/VMJsonTestBase.cs +++ b/tests/neo-vm.Tests/VMJsonTestBase.cs @@ -253,4 +253,4 @@ private void AssertAreEqual(object a, object b, string message) } } } -} \ No newline at end of file +} diff --git a/tests/neo-vm.Tests/neo-vm.Tests.csproj b/tests/neo-vm.Tests/neo-vm.Tests.csproj index 1f251e18..e7d2138b 100644 --- a/tests/neo-vm.Tests/neo-vm.Tests.csproj +++ b/tests/neo-vm.Tests/neo-vm.Tests.csproj @@ -1,4 +1,4 @@ - + netcoreapp2.1