-
Notifications
You must be signed in to change notification settings - Fork 13
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
Implement Blake2s Hints (Part 1) #311
Conversation
Codecov Report
@@ Coverage Diff @@
## main #311 +/- ##
==========================================
+ Coverage 57.07% 57.24% +0.16%
==========================================
Files 52 53 +1
Lines 6915 6984 +69
==========================================
+ Hits 3947 3998 +51
- Misses 2574 2586 +12
- Partials 394 400 +6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
func TestToU321(t *testing.T) { | ||
felt := lambdaworks.FeltOne() | ||
result, err := felt.ToU32() | ||
|
||
var expected uint32 = 1 | ||
|
||
if expected != result { | ||
t.Errorf("Error in conversion expected: %v, got %v with err: %v", expected, result, err) | ||
} | ||
|
||
} | ||
|
||
func TestToU3210230(t *testing.T) { | ||
felt := lambdaworks.FeltFromUint64(10230) | ||
result, err := felt.ToU32() | ||
|
||
var expected uint32 = 10230 | ||
|
||
if expected != result { | ||
t.Errorf("Error in conversion expected: %v, got %v with err: %v", expected, result, err) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe separate the the number from the type in the name with an underscore, or put the number first, so it's easier to read as two separate entities.
Depends on #310