MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / getTestsForPhi

Function getTestsForPhi

math/eulertotient_test.go:7–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5)
6
7func getTestsForPhi() []struct {
8 n int64
9 expected int64
10} {
11 var tests = []struct {
12 n int64
13 expected int64
14 }{
15 {4, 2},
16 {5, 4},
17 {7, 6},
18 {10, 4},
19 {999, 648},
20 {1000, 400},
21 {1000000, 400000},
22 {999999, 466560},
23 {999999999999878, 473684210526240},
24 }
25 return tests
26}
27
28func TestPhi(t *testing.T) {
29

Callers 1

TestPhiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected