Skip to content

Commit e8bd2fe

Browse files
committed
✅tests(fortran): examples.
1 parent d0bc068 commit e8bd2fe

9 files changed

Lines changed: 102 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
program main
2+
use hello_world, only: say_hello
3+
implicit none
4+
5+
call say_hello()
6+
end program main
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name = "hello_world"
2+
version = "0.1.0"
3+
license = "license"
4+
author = "potato"
5+
maintainer = "potatogirl@hotmail.com"
6+
copyright = "Copyright 2024, potato"
7+
[build]
8+
auto-executables = true
9+
auto-tests = true
10+
auto-examples = true
11+
module-naming = false
12+
[install]
13+
library = false
14+
[fortran]
15+
implicit-typing = false
16+
implicit-external = false
17+
source-form = "free"
18+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module hello_world
2+
implicit none
3+
private
4+
5+
public :: say_hello
6+
contains
7+
subroutine say_hello
8+
print *, "Hello, hello_world!"
9+
end subroutine say_hello
10+
end module hello_world
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
program main
2+
use hello_world, only: say_hello
3+
implicit none
4+
5+
call say_hello()
6+
end program main
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name = "hello_world"
2+
version = "0.1.0"
3+
license = "license"
4+
author = "potato"
5+
maintainer = "potatogirl@hotmail.com"
6+
copyright = "Copyright 2024, potato"
7+
[build]
8+
auto-executables = true
9+
auto-tests = true
10+
auto-examples = true
11+
module-naming = false
12+
[install]
13+
library = false
14+
[fortran]
15+
implicit-typing = false
16+
implicit-external = false
17+
source-form = "free"
18+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module hello_world
2+
implicit none
3+
private
4+
5+
public :: say_hello
6+
contains
7+
subroutine say_hello
8+
print *, "Hello, hello_world!"
9+
end subroutine say_hello
10+
end module hello_world
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
program main
2+
use hello_world, only: say_hello
3+
implicit none
4+
5+
call say_hello()
6+
end program main
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name = "hello_world"
2+
version = "0.1.0"
3+
license = "license"
4+
author = "potato"
5+
maintainer = "potatogirl@hotmail.com"
6+
copyright = "Copyright 2024, potato"
7+
[build]
8+
auto-executables = true
9+
auto-tests = true
10+
auto-examples = true
11+
module-naming = false
12+
[install]
13+
library = false
14+
[fortran]
15+
implicit-typing = false
16+
implicit-external = false
17+
source-form = "free"
18+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module hello_world
2+
implicit none
3+
private
4+
5+
public :: say_hello
6+
contains
7+
subroutine say_hello
8+
print *, "Hello, hello_world!"
9+
end subroutine say_hello
10+
end module hello_world

0 commit comments

Comments
 (0)