Skip to content

Commit c576abe

Browse files
committed
feat(tests): replace vegetables with veggies
1 parent b315ccf commit c576abe

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

fpm.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ copyright = "2020-2022 Sourcery Institute"
99
assert = {git = "https://github.com/sourceryinstitute/assert", tag = "1.3.0"}
1010

1111
[dev-dependencies]
12-
vegetables = {git = "https://gitlab.com/everythingfunctional/vegetables", tag = "v7.4.2"}
12+
veggies = {git = "https://gitlab.com/everythingfunctional/veggies", tag = "v1.0.4"}

test/compiler_test.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module compiler_test
2-
use vegetables, only: result_t, test_item_t, describe, it, assert_equals
2+
use veggies, only: result_t, test_item_t, describe, it, assert_equals
33
implicit none
44

55
private

test/main.f90

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
! Generated by make_vegetable_driver. DO NOT EDIT
1+
! Generated by cart. DO NOT EDIT
22
program main
33
implicit none
44

5-
call run()
5+
if (.not.run()) stop 1
66
contains
7-
subroutine run()
7+
function run() result(passed)
88
use compiler_test, only: &
99
compiler_ref_reference => &
1010
test_ref_reference
1111
use usage_test, only: &
1212
usage_usage => &
1313
test_usage
14-
use vegetables, only: test_item_t, test_that, run_tests
14+
use veggies, only: test_item_t, test_that, run_tests
1515

1616

1717

18+
logical :: passed
19+
1820
type(test_item_t) :: tests
1921
type(test_item_t) :: individual_tests(2)
2022

@@ -23,7 +25,7 @@ subroutine run()
2325
tests = test_that(individual_tests)
2426

2527

26-
call run_tests(tests)
28+
passed = run_tests(tests)
2729

28-
end subroutine
30+
end function
2931
end program

test/usage_test.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module usage_test
22
use reference_counter_m, only: ref_reference_t
3-
use vegetables, only: &
3+
use veggies, only: &
44
result_t, &
55
test_item_t, &
66
assert_equals, &

0 commit comments

Comments
 (0)