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

TEST(MathFunctions, step_double) {
  using stan::math::step;
  
  EXPECT_EQ(1, step(3.7));
  EXPECT_EQ(1, step(0.0));
  EXPECT_EQ(0, step(-2.93));
}

TEST(MathFunctions, step_int) {
  using stan::math::step;

  EXPECT_EQ(1, step(int(4)));
  EXPECT_EQ(1, step(int(0)));
  EXPECT_EQ(0, step(int(-3)));
}<commit_msg>added NaN test for step<commit_after>#include <stan/math/functions/step.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <gtest/gtest.h>

TEST(MathFunctions, step_double) {
  using stan::math::step;
  
  EXPECT_EQ(1, step(3.7));
  EXPECT_EQ(1, step(0.0));
  EXPECT_EQ(0, step(-2.93));
}

TEST(MathFunctions, step_int) {
  using stan::math::step;

  EXPECT_EQ(1, step(int(4)));
  EXPECT_EQ(1, step(int(0)));
  EXPECT_EQ(0, step(int(-3)));
}

TEST(MathFunctions, step_nan) {
  double nan = std::numeric_limits<double>::quiet_NaN();
  
  EXPECT_EQ(1, stan::math::step(nan));
}
{'fraction_non_alphanumeric': 0.19858156028368795, 'fraction_numerical': 0.03343465045592705, 'mean_word_length': 5.630872483221476, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '5904029', 'n_tokens_mistral': 408, 'n_tokens_neox': 418, 'n_words': 61}