Skip to content

Commit e187fd0

Browse files
committed
add e[ ]+f test
1 parent 4c1e40f commit e187fd0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/test_2.f90

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,6 @@ subroutine read_test2(fileName)
490490
last = last+80
491491
end do
492492

493-
494-
495493
close(iunit)
496494

497495
1 format(4x,'character(len=*), parameter :: test2data(*) = [ &')

test/tests.f90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ logical function test_bracket_space() result(success)
9090
success = idx>0; if (.not.success) return
9191
success = text(idx:idx+ln-1) == "e f"
9292

93+
idx = REGEX(string=text,pattern='e[ ]+f',length=ln);
94+
95+
! Prints "football"
96+
success = idx>0; if (.not.success) return
97+
success = text(idx:idx+ln-1) == "e f"
98+
9399
end function test_bracket_space
94100

95101

0 commit comments

Comments
 (0)