mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Raise hash tests' digits-of-pi data length
This commit is contained in:
1 parent
3c254cb5f5
commit
d78101625e
3 files changed
+31
-15
No files matched your search
+3
-3
@@ -48,11 +48,11 @@ func main1() error {
|
||||
flag.Parse()
|
||||
|
||||
if *pi {
|
||||
const digits = "3.1415926535897932384626433832795028841971693993751058209749445"
|
||||
if len(digits) != 63 {
|
||||
const digits = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170"
|
||||
if len(digits) != 99 {
|
||||
panic("bad len(digits)")
|
||||
}
|
||||
for i := 0; i < 64; i++ {
|
||||
for i := 0; i < 100; i++ {
|
||||
if err := do(strings.NewReader(digits[:i])); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user