Running 'spelling.R' [0s]
  Running 'testthat.R' [10m]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(autodb)
  
  Attaching package: 'autodb'
  
  The following object is masked from 'package:stats':
  
      decompose
  
  > 
  > test_check("autodb")
  Saving _problems/test-helper-217.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 886 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-helper.r:194:5'): gen.database / generates valid databases ───
  Falsifiable after 15 tests, and 44 shrinks
  <expectation_failure/expectation/error/condition>
  foreign key 4 has differing child/join record counts: 1 vs 0
  Backtrace:
       x
    1. \-hedgehog::forall(...) at test-helper.r:194:5
    2.   \-hedgehog:::run.prop(property, counterexample$smallest, curry)
    3.     +-base::tryCatch(...)
    4.     | \-base (local) tryCatchList(expr, classes, parentenv, handlers)
    5.     |   \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    6.     |     \-base (local) doTryCatch(return(expr), name, parentenv, handler)
    7.     +-base::withCallingHandlers(...)
    8.     +-base::do.call(property, arguments)
    9.     \-autodb (local) `<fn>`(FALSE, FALSE, TRUE, `<database>`)
   10.       \-autodb:::expect_valid_database(...) at test-helper.r:210:7
  Counterexample:
  [[1]]
  [1] FALSE
  
  [[2]]
  [1] FALSE
  
  [[3]]
  [1] TRUE
  
  [[4]]
  database with 6 relations
  7 attributes: a, b, c, d, e, f, g
  relation X: a, d, g; 0 records
    key 1: 
  relation X.1: a, d, g; 0 records
    key 1: 
  relation X.2: a, d, g; 0 records
    key 1: 
  relation d: d, a, g; 1 record
    key 1: d
  relation a: a, g, d; 1 record
    key 1: a
    key 2: g
  relation X.3: a, d, g; 0 records
    key 1: 
  references:
  X.2.{g} -> d.{d}
  X.1.{d} -> a.{a}
  X.3.{a} -> a.{a}
  d.{a} -> a.{g}
  
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 886 ]
  Error:
  ! Test failures.
  Execution halted