<commit_before>#include "stan/math/functions/int_step.hpp"
#include <gtest/gtest.h>

TEST(MathFunctions, int_step_double) {
  using stan::math::int_step;
  EXPECT_EQ(0U, int_step(-1.0));
  EXPECT_EQ(0U, int_step(0.0));
  EXPECT_EQ(1U, int_step(0.00000000001));
  EXPECT_EQ(1U, int_step(100.0));
}

TEST(MathFunctions, int_step_int) {
  using stan::math::int_step;

  EXPECT_EQ(0U, int_step(int(-1)));
  EXPECT_EQ(0U, int_step(int(0)));
  EXPECT_EQ(1U, int_step(int(100)));
}<commit_msg>adding failing int_step test with nan input<commit_after>#include <stan/math/functions/int_step.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <gtest/gtest.h>

TEST(MathFunctions, int_step_double) {
  using stan::math::int_step;
  EXPECT_EQ(0U, int_step(-1.0));
  EXPECT_EQ(0U, int_step(0.0));
  EXPECT_EQ(1U, int_step(0.00000000001));
  EXPECT_EQ(1U, int_step(100.0));
}

TEST(MathFunctions, int_step_int) {
  using stan::math::int_step;

  EXPECT_EQ(0U, int_step(int(-1)));
  EXPECT_EQ(0U, int_step(int(0)));
  EXPECT_EQ(1U, int_step(int(100)));
}

TEST(MathFunctions, int_step_nan) {
  double nan = std::numeric_limits<double>::quiet_NaN();
  
  EXPECT_PRED1(boost::math::isnan<double>,
               stan::math::int_step(nan));
}
{'fraction_non_alphanumeric': 0.17391304347826086, 'fraction_numerical': 0.05233494363929147, 'mean_word_length': 6.311764705882353, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4034592', 'n_tokens_mistral': 538, 'n_tokens_neox': 526, 'n_words': 67}