@@ -46,13 +46,13 @@ func TestIndeterminateIndicatorDominoes(t *testing.T) {
4646 }
4747
4848 out := strings.Builder {}
49- f := IndeterminateIndicatorDominoes (time .Millisecond * 10 )
49+ f := IndeterminateIndicatorDominoes (time .Microsecond * 10 )
5050 for idx , expectedText := range expectedTexts {
5151 actual := f (maxLen )
5252 assert .Equal (t , 0 , actual .Position , fmt .Sprintf ("expectedTexts[%d]" , idx ))
5353 assert .Equal (t , expectedText , actual .Text , fmt .Sprintf ("expectedTexts[%d]" , idx ))
5454 out .WriteString (fmt .Sprintf ("`%v`,\n " , actual .Text ))
55- time .Sleep (time .Millisecond * 10 )
55+ time .Sleep (time .Microsecond * 10 )
5656 }
5757 if t .Failed () {
5858 fmt .Println (out .String ())
@@ -101,13 +101,13 @@ func TestIndeterminateIndicatorColoredDominoes(t *testing.T) {
101101 }
102102
103103 out := strings.Builder {}
104- f := IndeterminateIndicatorColoredDominoes (time .Millisecond * 10 , text .FgHiGreen , text .FgHiBlack )
104+ f := IndeterminateIndicatorColoredDominoes (time .Microsecond * 10 , text .FgHiGreen , text .FgHiBlack )
105105 for idx , expectedText := range expectedTexts {
106106 actual := f (maxLen )
107107 assert .Equal (t , 0 , actual .Position , fmt .Sprintf ("expectedTexts[%d]" , idx ))
108108 assert .Equal (t , expectedText , actual .Text , fmt .Sprintf ("expectedTexts[%d]" , idx ))
109109 out .WriteString (fmt .Sprintf ("`%v`,\n " , actual .Text ))
110- time .Sleep (time .Millisecond * 10 )
110+ time .Sleep (time .Microsecond * 10 )
111111 }
112112 if t .Failed () {
113113 fmt .Println (out .String ())
@@ -122,11 +122,11 @@ func TestIndeterminateIndicatorMovingBackAndForth(t *testing.T) {
122122 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 6 , 5 , 4 , 3 , 2 , 1 ,
123123 }
124124
125- f := IndeterminateIndicatorMovingBackAndForth (indicator , time .Millisecond * 10 )
125+ f := IndeterminateIndicatorMovingBackAndForth (indicator , time .Microsecond * 10 )
126126 for idx , expectedPosition := range expectedPositions {
127127 actual := f (maxLen )
128128 assert .Equal (t , expectedPosition , actual .Position , fmt .Sprintf ("expectedPositions[%d]" , idx ))
129- time .Sleep (time .Millisecond * 10 )
129+ time .Sleep (time .Microsecond * 10 )
130130 }
131131}
132132
@@ -183,11 +183,11 @@ func TestIndeterminateIndicatorMovingLeftToRight(t *testing.T) {
183183 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ,
184184 }
185185
186- f := IndeterminateIndicatorMovingLeftToRight (indicator , time .Millisecond * 10 )
186+ f := IndeterminateIndicatorMovingLeftToRight (indicator , time .Microsecond * 10 )
187187 for idx , expectedPosition := range expectedPositions {
188188 actual := f (maxLen )
189189 assert .Equal (t , expectedPosition , actual .Position , fmt .Sprintf ("expectedPositions[%d]" , idx ))
190- time .Sleep (time .Millisecond * 10 )
190+ time .Sleep (time .Microsecond * 10 )
191191 }
192192}
193193
@@ -244,11 +244,11 @@ func TestIndeterminateIndicatorMovingRightToLeft(t *testing.T) {
244244 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 ,
245245 }
246246
247- f := IndeterminateIndicatorMovingRightToLeft (indicator , time .Millisecond * 10 )
247+ f := IndeterminateIndicatorMovingRightToLeft (indicator , time .Microsecond * 10 )
248248 for idx , expectedPosition := range expectedPositions {
249249 actual := f (maxLen )
250250 assert .Equal (t , expectedPosition , actual .Position , fmt .Sprintf ("expectedPositions[%d]" , idx ))
251- time .Sleep (time .Millisecond * 10 )
251+ time .Sleep (time .Microsecond * 10 )
252252 }
253253}
254254
@@ -331,12 +331,12 @@ func TestIndeterminateIndicatorPacMan(t *testing.T) {
331331 }
332332
333333 out := strings.Builder {}
334- f := IndeterminateIndicatorPacMan (time .Millisecond * 10 )
334+ f := IndeterminateIndicatorPacMan (time .Microsecond * 10 )
335335 for idx , expectedText := range expectedTexts {
336336 actual := f (maxLen )
337337 assert .Equal (t , expectedText , actual .Text , fmt .Sprintf ("expectedTexts[%d]" , idx ))
338338 out .WriteString (fmt .Sprintf ("%#v,\n " , actual .Text ))
339- time .Sleep (time .Millisecond * 10 )
339+ time .Sleep (time .Microsecond * 10 )
340340 }
341341 if t .Failed () {
342342 fmt .Println (out .String ())
@@ -385,12 +385,12 @@ func TestIndeterminateIndicatorPacManChomp(t *testing.T) {
385385 }
386386
387387 out := strings.Builder {}
388- f := IndeterminateIndicatorPacManChomp (time .Millisecond * 10 )
388+ f := IndeterminateIndicatorPacManChomp (time .Microsecond * 10 )
389389 for idx , expectedText := range expectedTexts {
390390 actual := f (maxLen )
391391 assert .Equal (t , expectedText , actual .Text , fmt .Sprintf ("expectedTexts[%d]" , idx ))
392392 out .WriteString (fmt .Sprintf ("%#v,\n " , actual .Text ))
393- time .Sleep (time .Millisecond * 10 )
393+ time .Sleep (time .Microsecond * 10 )
394394 }
395395 if t .Failed () {
396396 fmt .Println (out .String ())
0 commit comments