Skip to content

Commit

Permalink
update snapshot -- print behaviour for tibble changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Emi Tanaka committed Sep 26, 2022
1 parent 70a94e7 commit afb7fda
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 14 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/_snaps/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
9 unit9 trt2
10 unit10 trt4
# ... with 14 more rows
# i Use `print(n = ...)` to see more rows

# rcbd

Expand Down Expand Up @@ -127,6 +128,7 @@
9 block2 row6 col3 unit9 trt11 trt22
10 block2 row4 col4 unit10 trt12 trt21
# ... with 14 more rows
# i Use `print(n = ...)` to see more rows

# factorial

Expand Down Expand Up @@ -159,6 +161,7 @@
9 unit9 trt11 trt23 trt32
10 unit10 trt11 trt23 trt33
# ... with 38 more rows
# i Use `print(n = ...)` to see more rows
Code
fac_rcbd <- takeout(menu_factorial(trt = c(2, 3, 4), design = "rcbd", r = 2,
seed = 1))
Expand Down Expand Up @@ -189,6 +192,7 @@
9 block1 unit9 trt12 trt21 trt31
10 block1 unit10 trt11 trt21 trt31
# ... with 38 more rows
# i Use `print(n = ...)` to see more rows

# lsd

Expand Down Expand Up @@ -220,6 +224,7 @@
9 row9 col1 unit9 trt2
10 row10 col1 unit10 trt8
# ... with 90 more rows
# i Use `print(n = ...)` to see more rows

# youden

Expand Down Expand Up @@ -251,4 +256,5 @@
9 row9 col1 unit9 trt2
10 row10 col1 unit10 trt8
# ... with 60 more rows
# i Use `print(n = ...)` to see more rows

31 changes: 17 additions & 14 deletions tests/testthat/_snaps/rcrds.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
9 class1 student9 traditional closed-book o x
10 class1 student10 traditional open-book o x
# ... with 110 more rows
# i Use `print(n = ...)` to see more rows

---

Expand Down Expand Up @@ -59,6 +60,7 @@
9 class1 student9 traditional closed-book o x
10 class1 student10 traditional open-book o x
# ... with 110 more rows
# i Use `print(n = ...)` to see more rows

---

Expand Down Expand Up @@ -90,20 +92,21 @@
Output
# Effective teaching
# An edibble: 120 x 10
class student style exam exam_mark quiz1_mark quiz2_mark
<unit(4)> <unit(120)> <trt(2)> <trt(3)> <rcrd> <rcrd> <rcrd>
1 class1 student1 traditional closed-book o o o
2 class1 student2 traditional closed-book o o o
3 class1 student3 traditional take-home o o o
4 class1 student4 traditional take-home o o o
5 class1 student5 traditional open-book o o o
6 class1 student6 traditional take-home o o o
7 class1 student7 traditional take-home o o o
8 class1 student8 traditional closed-book o o o
9 class1 student9 traditional closed-book o o o
10 class1 student10 traditional open-book o o o
# ... with 110 more rows, and 3 more variables: gender <rcrd>, room <rcrd>,
# teacher <rcrd>
class student style exam exam_m~1 quiz1~2 quiz2~3 gender
<unit(4)> <unit(120)> <trt(2)> <trt(3)> <rcrd> <rcrd> <rcrd> <rcrd>
1 class1 student1 traditional closed-book o o o o
2 class1 student2 traditional closed-book o o o o
3 class1 student3 traditional take-home o o o o
4 class1 student4 traditional take-home o o o o
5 class1 student5 traditional open-book o o o o
6 class1 student6 traditional take-home o o o o
7 class1 student7 traditional take-home o o o o
8 class1 student8 traditional closed-book o o o o
9 class1 student9 traditional closed-book o o o o
10 class1 student10 traditional open-book o o o o
# ... with 110 more rows, 2 more variables: room <rcrd>, teacher <rcrd>, and
# abbreviated variable names 1: exam_mark, 2: quiz1_mark, 3: quiz2_mark
# i Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names

---

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/_snaps/serve.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# unlinked units with table
# An edibble: 0 x 2
# ... with 2 variables: block <unit(3)>, plot <unit(2)>
# i Use `colnames()` to see all variable names

---

Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/_snaps/trts.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
9 vaccine3 sex1 person9
10 vaccine1 sex2 person10
# ... with 20 more rows
# i Use `print(n = ...)` to see more rows

---

Expand All @@ -77,6 +78,7 @@
9 vaccine3 F person9
10 vaccine1 M person10
# ... with 20 more rows
# i Use `print(n = ...)` to see more rows

---

Expand All @@ -99,6 +101,7 @@
9 vaccine3 F person9
10 vaccine1 M person10
# ... with 20 more rows
# i Use `print(n = ...)` to see more rows

---

Expand All @@ -120,6 +123,7 @@
9 vaccine3 person9
10 vaccine1 person10
# ... with 20 more rows
# i Use `print(n = ...)` to see more rows

---

Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/_snaps/units.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
9 row3 col1 site1 plot9
10 row3 col1 site2 plot10
# ... with 38 more rows
# i Use `print(n = ...)` to see more rows

---

Expand All @@ -69,4 +70,5 @@
9 site2 row5 col1 plot9
10 site2 row5 col1 plot10
# ... with 50 more rows
# i Use `print(n = ...)` to see more rows

0 comments on commit afb7fda

Please sign in to comment.