Skip to content

Commit

Permalink
update test snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Nov 30, 2023
1 parent d3ead49 commit 4e14939
Showing 1 changed file with 84 additions and 62 deletions.
146 changes: 84 additions & 62 deletions tests/testthat/_snaps/epichains.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,25 @@
< tree head (from first known ancestor) >
sim_id ancestor generation time
2 2 1 2 21.5834705
3 3 1 2 0.3939008
4 4 2 3 21.6595273
sim_id ancestor generation time
2 2 1 2 42.57973
3 3 2 3 42.80500
4 4 2 3 42.70415
5 5 4 4 43.87477
6 6 4 4 44.00812
7 7 3 4 78.73481
< tree tail >
sim_id ancestor generation time
1 1 NA 1 0.0000000
2 2 1 2 21.5834705
3 3 1 2 0.3939008
4 4 2 3 21.6595273
Number of ancestors (known): 2
Number of generations: 3
sim_id ancestor generation time
7 7 3 4 78.73481
8 8 5 5 47.03948
9 9 6 5 45.38534
10 10 9 6 46.14505
11 11 8 6 48.03103
12 12 7 5 81.49185
Number of ancestors (known): 9
Number of generations: 6
Use `as.data.frame(<object_name>)` to view the full output in the console.

---
Expand All @@ -52,20 +57,26 @@
< tree head (from first known ancestor) >
chain_id sim_id ancestor generation
3 1 2 1 2
4 1 3 1 2
chain_id sim_id ancestor generation
3 1 2 1 2
6 2 2 1 2
4 1 3 1 2
7 2 3 1 2
5 1 4 1 2
11 2 4 2 3
< tree tail >
chain_id sim_id ancestor generation
1 1 1 NA 1
2 2 1 NA 1
3 1 2 1 2
4 1 3 1 2
chain_id sim_id ancestor generation
9 1 6 4 3
10 1 7 4 3
15 2 7 6 4
16 2 8 6 4
14 1 8 7 4
17 2 9 8 5
Chains simulated: 2
Number of ancestors (known): 1
Number of generations: 2
Number of ancestors (known): 7
Number of generations: 5
Use `as.data.frame(<object_name>)` to view the full output in the console.

---
Expand All @@ -79,21 +90,21 @@
chain_id sim_id ancestor generation time
11 1 2 1 2 3
13 2 2 1 2 3
15 3 2 1 2 3
17 4 2 1 2 3
19 6 2 1 2 3
20 7 2 1 2 3
12 2 2 1 2 3
13 3 2 1 2 3
15 4 2 1 2 3
17 5 2 1 2 3
20 6 2 1 2 3
< tree tail >
chain_id sim_id ancestor generation time
92 9 19 8 4 9
109 6 19 8 5 12
93 9 20 9 4 9
110 6 20 9 5 12
94 9 21 9 4 9
111 6 21 9 5 12
131 10 19 9 4 9
81 2 20 6 4 9
103 4 20 9 4 9
104 4 21 9 4 9
105 4 22 9 4 9
106 4 23 9 4 9
Chains simulated: 10
Number of ancestors (known): 9
Number of generations: 5
Expand All @@ -106,11 +117,11 @@
Output
`epichains` object
[1] 4 1
[1] 1 3
Simulated chain lengths:
Max: 4
Max: 3
Min: 1

# head and tail print output as expected
Expand All @@ -130,10 +141,13 @@
Output
< tree head (from first known ancestor) >
sim_id ancestor generation time
2 2 1 2 21.5834705
3 3 1 2 0.3939008
4 4 2 3 21.6595273
sim_id ancestor generation time
2 2 1 2 42.57973
3 3 2 3 42.80500
4 4 2 3 42.70415
5 5 4 4 43.87477
6 6 4 4 44.00812
7 7 3 4 78.73481

---

Expand All @@ -142,9 +156,13 @@
Output
< tree head (from first known ancestor) >
chain_id sim_id ancestor generation
3 1 2 1 2
4 1 3 1 2
chain_id sim_id ancestor generation
3 1 2 1 2
6 2 2 1 2
4 1 3 1 2
7 2 3 1 2
5 1 4 1 2
11 2 4 2 3

---

Expand All @@ -155,11 +173,11 @@
chain_id sim_id ancestor generation time
11 1 2 1 2 3
13 2 2 1 2 3
15 3 2 1 2 3
17 4 2 1 2 3
19 6 2 1 2 3
20 7 2 1 2 3
12 2 2 1 2 3
13 3 2 1 2 3
15 4 2 1 2 3
17 5 2 1 2 3
20 6 2 1 2 3

---

Expand All @@ -180,11 +198,13 @@
< tree tail >
sim_id ancestor generation time
1 1 NA 1 0.0000000
2 2 1 2 21.5834705
3 3 1 2 0.3939008
4 4 2 3 21.6595273
sim_id ancestor generation time
7 7 3 4 78.73481
8 8 5 5 47.03948
9 9 6 5 45.38534
10 10 9 6 46.14505
11 11 8 6 48.03103
12 12 7 5 81.49185

---

Expand All @@ -194,11 +214,13 @@
< tree tail >
chain_id sim_id ancestor generation
1 1 1 NA 1
2 2 1 NA 1
3 1 2 1 2
4 1 3 1 2
chain_id sim_id ancestor generation
9 1 6 4 3
10 1 7 4 3
15 2 7 6 4
16 2 8 6 4
14 1 8 7 4
17 2 9 8 5

---

Expand All @@ -209,10 +231,10 @@
< tree tail >
chain_id sim_id ancestor generation time
92 9 19 8 4 9
109 6 19 8 5 12
93 9 20 9 4 9
110 6 20 9 5 12
94 9 21 9 4 9
111 6 21 9 5 12
131 10 19 9 4 9
81 2 20 6 4 9
103 4 20 9 4 9
104 4 21 9 4 9
105 4 22 9 4 9
106 4 23 9 4 9

0 comments on commit 4e14939

Please sign in to comment.