@@ -206,7 +206,7 @@ subroutine test_io(error)
206
206
call set3 % read_bitset(unit)
207
207
call set5 % read_bitset(unit)
208
208
call set4 % read_bitset(unit)
209
- call check(error, set4 /= set0 .or . set5 /= set1 .or . set3 / = set2, &
209
+ call check(error, set4 == set0 .and . set5 == set1 .and . set3 = = set2, &
210
210
' transfer to and from units using bitset literals failed.' )
211
211
212
212
if (.not. allocated (error)) then
@@ -223,7 +223,7 @@ subroutine test_io(error)
223
223
call set13 % read_bitset(unit)
224
224
call set15 % read_bitset(unit)
225
225
call set14 % read_bitset(unit)
226
- call check(error, set14 /= set10 .or . set15 /= set11 .or . set3 / = set12, &
226
+ call check(error, set14 == set10 .and . set15 == set11 .and . set3 = = set12, &
227
227
' transfer to and from units using bitset literals for bits > 64 failed.' )
228
228
end if
229
229
if (.not. allocated (error)) then
@@ -237,7 +237,7 @@ subroutine test_io(error)
237
237
call set3 % read_bitset(unit, advance= ' no' )
238
238
call set4 % read_bitset(unit, advance= ' no' )
239
239
call set5 % read_bitset(unit)
240
- call check(error, set5 /= set0 .or . set4 /= set1 .or . set3 / = set2, &
240
+ call check(error, set5 == set0 .and . set4 == set1 .and . set3 = = set2, &
241
241
' transfer to and from units using bitset literals with advance == "no" failed.' )
242
242
end if
243
243
if (.not. allocated (error)) then
@@ -251,7 +251,7 @@ subroutine test_io(error)
251
251
call set13 % read_bitset(unit, advance= ' no' )
252
252
call set14 % read_bitset(unit, advance= ' no' )
253
253
call set15 % read_bitset(unit)
254
- call check(error, set15 /= set10 .or . set14 /= set11 .or . set13 / = set12, &
254
+ call check(error, set15 == set10 .and . set14 == set11 .and . set13 = = set12, &
255
255
' transfer to and from units using bitset literals for bitss > 64 with advance == "no" failed.' )
256
256
end if
257
257
@@ -267,7 +267,7 @@ subroutine test_io(error)
267
267
call set5 % input(unit)
268
268
call set4 % input(unit)
269
269
call set3 % input(unit)
270
- call check(error, set3 /= set0 .or . set4 /= set1 .or . set5 / = set2, &
270
+ call check(error, set3 == set0 .and . set4 == set1 .and . set5 = = set2, &
271
271
' transfer to and from units using output and input failed.' )
272
272
273
273
close ( unit )
@@ -282,7 +282,7 @@ subroutine test_io(error)
282
282
call set5 % input(unit)
283
283
call set4 % input(unit)
284
284
call set3 % input(unit)
285
- call check(error, set3 /= set0 .or . set4 /= set1 .or . set5 / = set2, &
285
+ call check(error, set3 == set0 .and . set4 == set1 .and . set5 = = set2, &
286
286
' transfer to and from units using stream output and input failed.' )
287
287
288
288
close ( unit )
@@ -297,7 +297,7 @@ subroutine test_io(error)
297
297
call set15 % input(unit)
298
298
call set14 % input(unit)
299
299
call set13 % input(unit)
300
- call check(error, set13 /= set10 .or . set14 /= set11 .or . set15 / = set12, &
300
+ call check(error, set13 == set10 .and . set14 == set11 .and . set15 = = set12, &
301
301
' transfer to and from units using output and input failed for bits . 64.' )
302
302
close (unit)
303
303
if (allocated (error)) return
@@ -311,7 +311,7 @@ subroutine test_io(error)
311
311
call set15 % input(unit)
312
312
call set14 % input(unit)
313
313
call set13 % input(unit)
314
- call check(error, set13 /= set10 .or . set14 /= set11 .or . set15 / = set12, &
314
+ call check(error, set13 == set10 .and . set14 == set11 .and . set15 = = set12, &
315
315
' transfer to and from units using stream output and input failed for bits . 64.' )
316
316
close (unit)
317
317
if (allocated (error)) return
@@ -594,32 +594,24 @@ subroutine test_bitset_inquiry(error)
594
594
if (allocated (error)) return
595
595
end do
596
596
597
- write (* ,* ) ' As expected set0 had no bits set.'
598
-
599
597
do i= 0 , set1 % bits() - 1
600
598
call check(error, set1 % test(i), &
601
599
' against expectations set0 has at least 1 bit unset.' )
602
600
if (allocated (error)) return
603
601
end do
604
602
605
- write (* ,* ) ' As expected set1 had all bits set.'
606
-
607
603
do i= 0 , set0 % bits() - 1
608
604
call check(error, set0 % value(i), 0 , &
609
605
' against expectations set0 has at least 1 bit set.' )
610
606
if (allocated (error)) return
611
607
end do
612
608
613
- write (* ,* ) ' As expected set0 had no bits set.'
614
-
615
609
do i= 0 , set1 % bits() - 1
616
610
call check(error, set1 % value(i), 1 , &
617
611
' against expectations set0 has at least 1 bit unset.' )
618
612
if (allocated (error)) return
619
613
end do
620
614
621
- write (* ,* ) ' As expected set1 had all bits set.'
622
-
623
615
call check(error, set0 % bits() == 33 , &
624
616
' set0 unexpectedly does not have 33 bits.' )
625
617
if (allocated (error)) return
@@ -750,7 +742,7 @@ subroutine test_bit_operations(error)
750
742
751
743
call set11 % init( 166_bits_kind )
752
744
call set11 % not ()
753
- call check(error, .not. set11 % all (), &
745
+ call check(error, set11 % all (), &
754
746
' set11 is not all set.' )
755
747
if (allocated (error)) return
756
748
0 commit comments