Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ANN2)
  > 
  > test_check("ANN2")
  ── 1. Failure: Catch unit tests pass (@test-cpp.R#3)  ──────────────────────────
  C++ unit tests:
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   is a Catch v1.9.6 host application.
  Run with -? for options
  
  -------------------------------------------------------------------------------
  Tests for optimizers | test-cpp-optimizers.cpp
    the SGD optimizer works correctly
  -------------------------------------------------------------------------------
  test-cpp-optimizers.cpp:22
  ...............................................................................
  
  test-cpp-optimizers.cpp:41: FAILED:
    CATCH_CHECK( std::abs(SGDTester.rosenbrock_eval(W)) < abs_tol )
  with expansion:
    56.5 < 0.001
  
  test-cpp-optimizers.cpp:42: FAILED:
    CATCH_CHECK( std::abs(SGDTester.rosenbrock_eval(b)) < abs_tol )
  with expansion:
    56.5 < 0.001
  
  test-cpp-optimizers.cpp:43: FAILED:
    CATCH_CHECK( std::abs(W_x-1) < abs_tol )
  with expansion:
    0.5 < 0.001
  
  test-cpp-optimizers.cpp:44: FAILED:
    CATCH_CHECK( std::abs(W_y-1) < abs_tol )
  with expansion:
    0.5 < 0.001
  
  test-cpp-optimizers.cpp:45: FAILED:
    CATCH_CHECK( std::abs(b_x-1) < abs_tol )
  with expansion:
    0.5 < 0.001
  
  test-cpp-optimizers.cpp:46: FAILED:
    CATCH_CHECK( std::abs(b_y-1) < abs_tol )
  with expansion:
    0.5 < 0.001
  
  -------------------------------------------------------------------------------
  Tests for optimizers | test-cpp-optimizers.cpp
    the RMSprop optimizer works correctly
  -------------------------------------------------------------------------------
  test-cpp-optimizers.cpp:50
  ...............................................................................
  
  test-cpp-optimizers.cpp:69: FAILED:
    CATCH_CHECK( std::abs(RMSPropTester.rosenbrock_eval(W)) < abs_tol )
  with expansion:
    56.5 < 0.001
  
  test-cpp-optimizers.cpp:70: FAILED:
    CATCH_CHECK( std::abs(RMSPropTester.rosenbrock_eval(b)) < abs_tol )
  with expansion:
    56.5 < 0.001
  
  test-cpp-optimizers.cpp:71: FAILED:
    CATCH_CHECK( std::abs(W_x-1) < abs_tol )
  with expansion:
    0.5 < 0.001
  
  test-cpp-optimizers.cpp:72: FAILED:
    CATCH_CHECK( std::abs(W_y-1) < abs_tol )
  with expansion:
    0.5 < 0.001
  
  test-cpp-optimizers.cpp:73: FAILED:
    CATCH_CHECK( std::abs(b_x-1) < abs_tol )
  with expansion:
    0.5 < 0.001
  
  test-cpp-optimizers.cpp:74: FAILED:
    CATCH_CHECK( std::abs(b_y-1) < abs_tol )
  with expansion:
    0.5 < 0.001
  
  -------------------------------------------------------------------------------
  Tests for optimizers | test-cpp-optimizers.cpp
    the ADAM optimizer works correctly
  -------------------------------------------------------------------------------
  test-cpp-optimizers.cpp:78
  ...............................................................................
  
  test-cpp-optimizers.cpp:97: FAILED:
    CATCH_CHECK( std::abs(AdamTester.rosenbrock_eval(W)) < abs_tol )
  with expansion:
    56.5 < 0.001
  
  test-cpp-optimizers.cpp:98: FAILED:
    CATCH_CHECK( std::abs(AdamTester.rosenbrock_eval(b)) < abs_tol )
  with expansion:
    56.5 < 0.001
  
  test-cpp-optimizers.cpp:99: FAILED:
    CATCH_CHECK( std::abs(W_x-1) < abs_tol )
  with expansion:
    0.5 < 0.001
  
  test-cpp-optimizers.cpp:100: FAILED:
    CATCH_CHECK( std::abs(W_y-1) < abs_tol )
  with expansion:
    0.5 < 0.001
  
  test-cpp-optimizers.cpp:101: FAILED:
    CATCH_CHECK( std::abs(b_x-1) < abs_tol )
  with expansion:
    0.5 < 0.001
  
  test-cpp-optimizers.cpp:102: FAILED:
    CATCH_CHECK( std::abs(b_y-1) < abs_tol )
  with expansion:
    0.5 < 0.001
  
  ===============================================================================
  test cases:  5 |  4 passed |  1 failed
  assertions: 88 | 70 passed | 18 failed
  
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 164 SKIPPED: 0 FAILED: 1
  1. Failure: Catch unit tests pass (@test-cpp.R#3) 
  
  Error: testthat unit tests failed
  Execution halted