Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dev-pack with last neo changes #146

Merged
merged 20 commits into from
Dec 9, 2019
Merged

Conversation

shargon
Copy link
Member

@shargon shargon commented Dec 5, 2019

@erikzhang
Copy link
Member

erikzhang commented Dec 5, 2019

Need to fix Travis too. Or do we move to Github Actions directly?

@shargon
Copy link
Member Author

shargon commented Dec 5, 2019

@erikzhang Please, Could you take a look to neo-project/neo#1330 ?

@shargon
Copy link
Member Author

shargon commented Dec 5, 2019

Need to fix Travis too. Or do we move to Github Actions directly?

I think that we should move to github actions directly. What do you prefer?


<PropertyGroup>
<Copyright>2015-2019 The Neo Project</Copyright>
<AssemblyTitle>Neo.Compiler.MSIL</AssemblyTitle>
<Version>2.4.1</Version>
<Authors>The Neo Project</Authors>
<TargetFrameworks>netcoreapp2.0;netstandard2.0</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;netstandard2.1</TargetFrameworks>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we supporting netstandard2.1 here. This is a CLI tool, it should just have the single 3.1 target framework

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it means that it is a library too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need it to be a library too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https:/neo-project/neo-compiler/pull/147#issue-252914432

This was the PR that turned neon into a library at the time. Maybe some developers have such a need. I do not know.

@codecov
Copy link

codecov bot commented Dec 6, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@d3d00e2). Click here to learn what that means.
The diff coverage is 15.78%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #146   +/-   ##
=========================================
  Coverage          ?   40.82%           
=========================================
  Files             ?       42           
  Lines             ?     4561           
  Branches          ?        0           
=========================================
  Hits              ?     1862           
  Misses            ?     2699           
  Partials          ?        0
Impacted Files Coverage Δ
tests/Neo.Compiler.MSIL.UnitTests/UnitTest1.cs 0% <ø> (ø)
.../Neo.Compiler.MSIL.UnitTests/UnitTest_StaticVar.cs 0% <ø> (ø)
...ts/Neo.Compiler.MSIL.UnitTests/UnitTest_Appcall.cs 0% <ø> (ø)
...sts/Neo.Compiler.MSIL.UnitTests/UnitTest_Switch.cs 0% <ø> (ø)
...Compiler.MSIL.UnitTests/UnitTest_AutoEntrypoint.cs 0% <0%> (ø)
...SIL.UnitTests/TestClasses/Contract_shift_bigint.cs 0% <0%> (ø)
...ests/Neo.Compiler.MSIL.UnitTests/UnitTest_Shift.cs 0% <0%> (ø)
...piler.MSIL.UnitTests/TestClasses/Contract_shift.cs 0% <0%> (ø)
tests/Neo.Compiler.MSIL.UnitTests/UnitTest_NULL.cs 0% <0%> (ø)
...Neo.Compiler.MSIL.UnitTests/Utils/TestDataCache.cs 32% <100%> (ø)
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3d00e2...60de122. Read the comment docs.

var testengine = new TestEngine();
testengine.AddEntryScript("./TestClasses/Contract_shift.cs");
testengine.ScriptEntry.DumpNEF();
var result = testengine.ExecuteTestCaseStandard("testfunc");
ApplicationEngine.Notify -= method;

CollectionAssert.AreEqual(new BigInteger[] { 16, 17179869184, 4, 0 }, list);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lightszero please take a look this, with int, we have a different result than BigInteger. it's this expected?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is only BigInteger in NeoVM, so currently it can only be handled like this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But integer result should be the same, because it should be converted to BigInteger. It's strange

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. We should treat the behavior of negative shifts as undefined and disallow it.

@shargon shargon merged commit ed93668 into neo-project:master Dec 9, 2019
@shargon shargon deleted the update-neo branch December 9, 2019 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants