Skip to content

Commit dc1adcf

Browse files
committed
flip the no-no test to test-with-hyphens
1 parent 27234a1 commit dc1adcf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fpm/test/new_test/new_test.f90

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ program new_test
1313
character(len=*),parameter :: cmds(*) = [character(len=80) :: &
1414
! run a variety of "fpm new" variations and verify expected files are generated
1515
' new', &
16-
' new no-no', &
16+
' new name-with-hyphens', &
1717
' new '//scr//'A', &
1818
' new '//scr//'B --lib', &
1919
' new '//scr//'C --app', &
@@ -63,7 +63,7 @@ program new_test
6363
if( is_dir(trim(directories(i))) ) then
6464
write(*,*)'ERROR:',trim( directories(i) ),' already exists'
6565
write(*,*)' you must remove scratch directories before performing this test'
66-
write(*,'(*(g0:,1x))')'directories:',(trim(directories(j)),j=1,size(directories)),'no-no'
66+
write(*,'(*(g0:,1x))')'directories:',(trim(directories(j)),j=1,size(directories)),'name-with-hyphens'
6767
stop
6868
endif
6969
enddo
@@ -75,11 +75,11 @@ program new_test
7575
write(*,'(*(g0))')'CMD=',trim(cmds(i)),' EXITSTAT=',estat,' CMDSTAT=',cstat,' MESSAGE=',trim(message)
7676
enddo
7777

78-
if( is_dir('no-no') ) then
79-
tally=[tally,.false.]
80-
write(*,*)'ERROR: directory no-no/ exists'
81-
else
78+
if( is_dir('name-with-hyphens') ) then
8279
tally=[tally,.true.]
80+
else
81+
write(*,*)'ERROR: directory name-with-hyphens/ exists'
82+
tally=[tally,.false.]
8383
endif
8484

8585
! assuming hidden files in .git and .gitignore are ignored for now

0 commit comments

Comments
 (0)