Skip to content

updated tests for string parsing bug fix #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion files/inputs/test1.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"..\\path\\to\\files\\file2.txt",
"..\\path\\to\\files\\file3.txt",
"test \u2FA4 \uABCD \uABCD\uABCDtest",
" test test test"
" test \\u \" blah\\\" test test",
"..\\path\\to\\files\\"
],
"empty_array": [
],
Expand Down
10 changes: 5 additions & 5 deletions src/tests/jf_test_10.f90
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ subroutine test_10(error_cnt)
error_cnt = error_cnt + 1
else
!also make sure the values are correct:
if (found .and. size(str_vec)==5 .and. &
if (found .and. size(str_vec)==6 .and. &
str_vec(1)=='..\path\to\files\file1.txt') then
write(error_unit,'(A)') '...success'
else
Expand Down Expand Up @@ -282,7 +282,7 @@ subroutine test_10(error_cnt)
error_cnt = error_cnt + 1
else
!also make sure the values are correct:
if (found .and. size(str_vec)==5 .and. &
if (found .and. size(str_vec)==6 .and. &
str_vec(1)=='..\path\to\files\file1.txt') then
write(error_unit,'(A)') '...success'
else
Expand All @@ -304,7 +304,7 @@ subroutine test_10(error_cnt)
else
write(error_unit,'(A)') '...success'
end if


!--------------------------------

Expand All @@ -321,12 +321,12 @@ end module jf_test_10_mod
program jf_test_10

!! Tenth unit test.

use jf_test_10_mod , only: test_10
implicit none
integer :: n_errors
n_errors = 0
call test_10(n_errors)
if (n_errors /= 0) stop 1
end program jf_test_10
!*****************************************************************************************
!*****************************************************************************************