From d61cee077bf76f9bc5c16ee4eb88385d1796b03c Mon Sep 17 00:00:00 2001 From: Piotr Idzik <65706193+vil02@users.noreply.github.com> Date: Sun, 16 Oct 2022 10:10:28 +0200 Subject: [PATCH] tests: math/pi/Spigot (#573) --- math/pi/spigotpi_test.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/math/pi/spigotpi_test.go b/math/pi/spigotpi_test.go index ad845da15..c48b7dc24 100644 --- a/math/pi/spigotpi_test.go +++ b/math/pi/spigotpi_test.go @@ -14,12 +14,22 @@ func TestSpigot(t *testing.T) { result string n int }{ + {"314", 3}, + {"31415", 5}, {"314159", 6}, {"31415926535", 11}, {"314159265358", 12}, {"314159265358979323846", 21}, - {"314", 3}, - {"31415", 5}, + {"3141592653589793238462643", 25}, + {"314159265358979323846264338327950", 33}, + {"31415926535897932384626433832795028841971693993751" + + "05820974944592307816406286208998628034825342117067" + + "98214808651328230664709384460955058223172535940812" + + "84811174502841027019385211055596446229489549303819" + + "64428810975665933446128475648233786783165271201909" + + "14564856692346034861045432664821339360726024914127" + + "37245870066063155881748815209209628292540917153643" + + "678925903600", 362}, } for _, tv := range tests { t.Run(strconv.Itoa(tv.n)+":"+tv.result, func(t *testing.T) {