Skip to content

Commit 8b3b3f0

Browse files
committed
remove # from tests
1 parent 9aae783 commit 8b3b3f0

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/fpm/manifest/example.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ subroutine new_example(self, table, error)
6464
end if
6565
if(.not.is_fortran_name(to_fortran_name(self%name)))then
6666
call syntax_error(error, 'manifest file syntax error: example name must be composed only of &
67-
&alphanumerics, "-" and "_" and start with a letter')
67+
&alphanumerics, "-" and "_" and start with a letter::'//self%name)
6868
return
6969
endif
7070
call get_value(table, "source-dir", self%source_dir, "example")

src/fpm/manifest/executable.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ subroutine new_executable(self, table, error)
7474
end if
7575
if(.not.is_fortran_name(to_fortran_name(self%name)))then
7676
call syntax_error(error, 'manifest file syntax error: executable name must be composed only of &
77-
&alphanumerics, "-" and "_" and start with a letter')
77+
&alphanumerics, "-" and "_" and start with a letter::'//self%name)
7878
return
7979
endif
8080
call get_value(table, "source-dir", self%source_dir, "app")

src/fpm/manifest/package.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ subroutine new_package(self, table, root, error)
134134
end if
135135
if(.not.is_fortran_name(to_fortran_name(self%name)))then
136136
call syntax_error(error, 'manifest file syntax error: package name must be composed only of &
137-
&alphanumerics, "-" and "_" and start with a letter')
137+
&alphanumerics, "-" and "_" and start with a letter::'//self%name)
138138
return
139139
endif
140140

src/fpm/manifest/test.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ subroutine new_test(self, table, error)
6464
end if
6565
if(.not.is_fortran_name(to_fortran_name(self%name)))then
6666
call syntax_error(error, 'manifest file syntax error: test name must be composed only of &
67-
&alphanumerics, "-" and "_" and start with a letter')
67+
&alphanumerics, "-" and "_" and start with a letter ::'//self%name)
6868
return
6969
endif
7070
call get_value(table, "source-dir", self%source_dir, "test")

test/fpm_test/test_manifest.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ subroutine test_valid_manifest(error)
8585
& '[dependencies.fpm]', &
8686
& 'git = "https://github.com/fortran-lang/fpm"', &
8787
& '[[executable]]', &
88-
& 'name = "example-#1" # comment', &
88+
& 'name = "example-1" # comment', &
8989
& 'source-dir = "prog"', &
9090
& '[dependencies]', &
9191
& 'toml-f.git = "[email protected]:toml-f/toml-f.git"', &
9292
& '"toml..f" = { path = ".." }', &
9393
& '[["executable"]]', &
94-
& 'name = "example-#2"', &
94+
& 'name = "example-2"', &
9595
& 'source-dir = "prog"', &
9696
& '[executable.dependencies]', &
9797
& '[''library'']', &

test/fpm_test/test_toml.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ subroutine test_valid_toml(error)
4141
& '[dependencies.fpm]', &
4242
& 'git = "https://github.com/fortran-lang/fpm"', &
4343
& '[[executable]]', &
44-
& 'name = "example-#1" # comment', &
44+
& 'name = "example-1" # comment', &
4545
& 'source-dir = "prog"', &
4646
& '[dependencies]', &
4747
& 'toml-f.git = "[email protected]:toml-f/toml-f.git"', &
4848
& '"toml..f" = { path = ".." }', &
4949
& '[["executable"]]', &
50-
& 'name = "example-#2"', &
50+
& 'name = "example-2"', &
5151
& 'source-dir = "prog"', &
5252
& '[executable.dependencies]', &
5353
& '[''library'']', &

0 commit comments

Comments
 (0)