@@ -87,7 +87,7 @@ fn test_sma_epoch_transition() {
8787 ) ;
8888 assert_eq ! ( price_data. time_machine. granularity, THIRTY_MINUTES ) ;
8989 assert_eq ! ( price_data. time_machine. current_epoch_numerator, 0 ) ;
90- assert_eq ! ( price_data. time_machine. current_epoch_is_valid, false ) ;
90+ assert ! ( ! price_data. time_machine. current_epoch_is_valid) ;
9191 assert_eq ! ( price_data. time_machine. current_epoch_denominator, 0 ) ;
9292 for i in 0 ..NUM_BUCKETS_THIRTY_MIN {
9393 assert_eq ! ( price_data. time_machine. running_sum_of_price_averages[ i] , 0 ) ;
@@ -120,7 +120,7 @@ fn test_sma_epoch_transition() {
120120 ) ;
121121 assert_eq ! ( price_data. time_machine. granularity, THIRTY_MINUTES ) ;
122122 assert_eq ! ( price_data. time_machine. current_epoch_numerator, 42 / 2 * 2 ) ;
123- assert_eq ! ( price_data. time_machine. current_epoch_is_valid, false ) ;
123+ assert ! ( ! price_data. time_machine. current_epoch_is_valid) ;
124124 assert_eq ! ( price_data. time_machine. current_epoch_denominator, 2 ) ;
125125 for i in 0 ..NUM_BUCKETS_THIRTY_MIN {
126126 assert_eq ! ( price_data. time_machine. running_sum_of_price_averages[ i] , 0 ) ;
@@ -157,7 +157,7 @@ fn test_sma_epoch_transition() {
157157 price_data. time_machine. current_epoch_numerator,
158158 ( 80 + 42 ) / 2
159159 ) ;
160- assert_eq ! ( price_data. time_machine. current_epoch_is_valid, true ) ;
160+ assert ! ( price_data. time_machine. current_epoch_is_valid) ;
161161 assert_eq ! ( price_data. time_machine. current_epoch_denominator, 1 ) ;
162162
163163 for i in 1 ..NUM_BUCKETS_THIRTY_MIN {
@@ -201,7 +201,7 @@ fn test_sma_epoch_transition() {
201201 price_data. time_machine. current_epoch_numerator,
202202 ( 80 + 42 ) / 2
203203 ) ;
204- assert_eq ! ( price_data. time_machine. current_epoch_is_valid, true ) ;
204+ assert ! ( price_data. time_machine. current_epoch_is_valid) ;
205205 assert_eq ! ( price_data. time_machine. current_epoch_denominator, 1 ) ;
206206
207207 for i in 1 ..NUM_BUCKETS_THIRTY_MIN {
@@ -246,7 +246,7 @@ fn test_sma_epoch_transition() {
246246 price_data. time_machine. current_epoch_numerator,
247247 ( 40 + 80 ) / 2 * 28
248248 ) ;
249- assert_eq ! ( price_data. time_machine. current_epoch_is_valid, false ) ;
249+ assert ! ( ! price_data. time_machine. current_epoch_is_valid) ;
250250 assert_eq ! ( price_data. time_machine. current_epoch_denominator, 28 ) ;
251251
252252 for i in 2 ..NUM_BUCKETS_THIRTY_MIN {
@@ -297,7 +297,7 @@ fn test_sma_epoch_transition() {
297297 price_data. time_machine. current_epoch_numerator,
298298 ( 40 + 41 ) / 2
299299 ) ;
300- assert_eq ! ( price_data. time_machine. current_epoch_is_valid, true ) ;
300+ assert ! ( price_data. time_machine. current_epoch_is_valid) ;
301301 assert_eq ! ( price_data. time_machine. current_epoch_denominator, 1 ) ;
302302
303303 for i in 5 ..NUM_BUCKETS_THIRTY_MIN {
@@ -367,7 +367,7 @@ fn test_sma_epoch_transition() {
367367 price_data. time_machine. current_epoch_numerator,
368368 ( 40 + 41 ) / 2
369369 ) ;
370- assert_eq ! ( price_data. time_machine. current_epoch_is_valid, true ) ;
370+ assert ! ( price_data. time_machine. current_epoch_is_valid) ;
371371 assert_eq ! ( price_data. time_machine. current_epoch_denominator, 1 ) ;
372372
373373 for i in 5 ..NUM_BUCKETS_THIRTY_MIN {
@@ -434,7 +434,7 @@ fn test_sma_epoch_transition() {
434434 price_data. time_machine. current_epoch_numerator,
435435 ( 41 + 100 ) / 2 * 69
436436 ) ;
437- assert_eq ! ( price_data. time_machine. current_epoch_is_valid, false ) ;
437+ assert ! ( ! price_data. time_machine. current_epoch_is_valid) ;
438438 assert_eq ! ( price_data. time_machine. current_epoch_denominator, 69 ) ;
439439 for i in 0 ..NUM_BUCKETS_THIRTY_MIN {
440440 assert_eq ! (
0 commit comments