From 76f434f70f04187085853fa5e2f3726b1b2ffc62 Mon Sep 17 00:00:00 2001 From: "mike.stackhouse" Date: Tue, 10 Jan 2023 17:16:03 +0000 Subject: [PATCH] update snapshots for latest messages --- tests/testthat/_snaps/column_headers.md | 28 ++++++++++++++++++------- tests/testthat/_snaps/count.md | 27 ++++++++++++++++-------- tests/testthat/_snaps/desc.md | 5 +++-- tests/testthat/_snaps/layer.md | 12 ++++++++--- tests/testthat/_snaps/precision.md | 12 ++++++++--- tests/testthat/_snaps/shift.md | 5 +++-- 6 files changed, 63 insertions(+), 26 deletions(-) diff --git a/tests/testthat/_snaps/column_headers.md b/tests/testthat/_snaps/column_headers.md index c514a0d7..b316ca03 100644 --- a/tests/testthat/_snaps/column_headers.md +++ b/tests/testthat/_snaps/column_headers.md @@ -8,27 +8,39 @@ # Header strings must have the same number of columns as the data frame - Number of columns provided in header string does not match data + i In index: 1. + Caused by error: + ! Number of columns provided in header string does not match data --- - Number of columns provided in header string does not match data + i In index: 1. + Caused by error: + ! Number of columns provided in header string does not match data --- - Number of columns provided in header string does not match data + i In index: 1. + Caused by error: + ! Number of columns provided in header string does not match data --- - Number of columns provided in header string does not match data + i In index: 1. + Caused by error: + ! Number of columns provided in header string does not match data --- - Number of columns provided in header string does not match data + i In index: 1. + Caused by error: + ! Number of columns provided in header string does not match data --- - Number of columns provided in header string does not match data + i In index: 1. + Caused by error: + ! Number of columns provided in header string does not match data # Unmatched spanner brackers @@ -36,5 +48,7 @@ # add_column_headers throws an error when you use a token and don't pass header_n - You must pass a header_n if you are using replacement tokens + i In index: 1. + Caused by error: + ! You must pass a header_n if you are using replacement tokens diff --git a/tests/testthat/_snaps/count.md b/tests/testthat/_snaps/count.md index 2828ae26..c2dc3e33 100644 --- a/tests/testthat/_snaps/count.md +++ b/tests/testthat/_snaps/count.md @@ -1,11 +1,12 @@ # Count layer clauses with invalid syntax give informative error - group_count `where` condition `bad == code` is invalid. Filter error: + i In index: 1. + Caused by error in `value[[3L]]()`: + ! group_count `where` condition `bad == code` is invalid. Filter error: Error in `filter()`: ! Problem while computing `..1 = bad == code`. Caused by error in `mask$eval_all_filter()`: ! object 'bad' not found - # Total rows and missing counts are displayed correctly(0.1.5 Updates) @@ -124,7 +125,9 @@ # Nested count layers can accept text values in the first variable - Inner layers must be data driven variables + i In index: 1. + Caused by error: + ! Inner layers must be data driven variables # Variable names will be coersed into symbols @@ -136,15 +139,17 @@ # keep_levels works as expeceted - group_count `where` condition `TRUE` is invalid. Filter error: + i In index: 1. + Caused by error in `value[[3L]]()`: + ! group_count `where` condition `TRUE` is invalid. Filter error: Error: level passed to `kept_levels` not found: 10 20 - --- - group_count `where` condition `TRUE` is invalid. Filter error: + i In index: 1. + Caused by error in `value[[3L]]()`: + ! group_count `where` condition `TRUE` is invalid. Filter error: Error: level passed to `kept_levels` not found: nothere - # nested count layers handle `set_denoms_by` as expected @@ -152,7 +157,9 @@ # nested count layers will error out if second variable is bigger than the first - The number of values of your second variable must be greater than the number of levels in your first variable + i In index: 1. + Caused by error: + ! The number of values of your second variable must be greater than the number of levels in your first variable # set_numeric_threshold works as expected @@ -305,7 +312,9 @@ # nested count layers error out when you try to add a total row - You can't include total rows in nested counts. Instead, add a seperate layer for total counts. + i In index: 1. + Caused by error: + ! You can't include total rows in nested counts. Instead, add a seperate layer for total counts. # Tables with pop_data can accept a layer level where diff --git a/tests/testthat/_snaps/desc.md b/tests/testthat/_snaps/desc.md index 8607c166..854e8123 100644 --- a/tests/testthat/_snaps/desc.md +++ b/tests/testthat/_snaps/desc.md @@ -1,11 +1,12 @@ # Desc layer clauses with invalid syntax give informative error - group_desc `where` condition `bad == code` is invalid. Filter error: + i In index: 1. + Caused by error in `value[[3L]]()`: + ! group_desc `where` condition `bad == code` is invalid. Filter error: Error in `filter()`: ! Problem while computing `..1 = bad == code`. Caused by error in `mask$eval_all_filter()`: ! object 'bad' not found - # Stats as columns properly transposes the built data diff --git a/tests/testthat/_snaps/layer.md b/tests/testthat/_snaps/layer.md index e65803ac..6d6e847c 100644 --- a/tests/testthat/_snaps/layer.md +++ b/tests/testthat/_snaps/layer.md @@ -84,13 +84,19 @@ # Desc layers only accept numeric variables - Target variable `supp` is not numeric. Target variables must be numeric for desc layers. + i In index: 1. + Caused by error: + ! Target variable `supp` is not numeric. Target variables must be numeric for desc layers. --- - Target variable `supp` is not numeric. Target variables must be numeric for desc layers. + i In index: 2. + Caused by error: + ! Target variable `supp` is not numeric. Target variables must be numeric for desc layers. --- - Target variable `supp` is not numeric. Target variables must be numeric for desc layers. + i In index: 1. + Caused by error: + ! Target variable `supp` is not numeric. Target variables must be numeric for desc layers. diff --git a/tests/testthat/_snaps/precision.md b/tests/testthat/_snaps/precision.md index 1c2ce44a..f9db8a7b 100644 --- a/tests/testthat/_snaps/precision.md +++ b/tests/testthat/_snaps/precision.md @@ -1,12 +1,16 @@ # Missing by variables are handled as specified in precision data - The precision data provided is missing by variable cases: + i In index: 1. + Caused by error: + ! The precision data provided is missing by variable cases: vs Datsun 710 1 --- - The precision data provided is missing by variable cases: + i In index: 1. + Caused by error: + ! The precision data provided is missing by variable cases: vs Datsun 710 1 @@ -52,7 +56,9 @@ --- - By variable types mismatch between precision dataset and target data + i In index: 1. + Caused by error: + ! By variable types mismatch between precision dataset and target data # Partially provided decimal precision caps populate correctly diff --git a/tests/testthat/_snaps/shift.md b/tests/testthat/_snaps/shift.md index 713497ce..92cb93ca 100644 --- a/tests/testthat/_snaps/shift.md +++ b/tests/testthat/_snaps/shift.md @@ -1,9 +1,10 @@ # Shift layer clauses with invalid syntax give informative error - group_shift `where` condition `bad == code` is invalid. Filter error: + i In index: 1. + Caused by error in `value[[3L]]()`: + ! group_shift `where` condition `bad == code` is invalid. Filter error: Error in `filter()`: ! Problem while computing `..1 = bad == code`. Caused by error in `mask$eval_all_filter()`: ! object 'bad' not found -