Skip to content

Commit f207fd2

Browse files
author
Daniel Ruprecht
committed
randomised interval boundaries in collocation test
1 parent 62a99cf commit f207fd2

File tree

3 files changed

+6
-19
lines changed

3 files changed

+6
-19
lines changed

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/test_collocation.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
import pytest
55

66
# py.test excludes classes with a constructor by default, so define parameter here
7-
t_start = 0.0
8-
t_end = 1.0
9-
#classes = [ ["CollGaussLegendre", 2, 2]]
10-
classes = [ ["CollGaussLegendre", 2, 12], ["CollGaussLobatto", 2, 12], ["CollGaussRadau_Right", 2, 12] ]
7+
8+
# generate random boundaries for the time slice with 0.0 <= t_start < 0.2 and 0.8 <= t_end < 1.0
9+
t_start = np.random.rand(1)*0.2
10+
t_end = 0.8 + np.random.rand(1)*0.2
11+
12+
classes = [ ["CollGaussLegendre", 2, 12], ["CollGaussLobatto", 2, 12], ["CollGaussRadau_Right", 2, 12] ]
1113

1214
class TestCollocation:
1315

0 commit comments

Comments
 (0)