<commit_before>#include <catch.hpp>
#include <rapidcheck-catch.h>

#include "rapidcheck/newgen/Create.h"

#include "util/ArbitraryRandom.h"

using namespace rc;

TEST_CASE("newgen::just") {
    prop("returns value without shrinks regardless of input",
         [](int value, const Random &random, int size) {
             RC_ASSERT(newgen::just(value)(random, size) ==
                       shrinkable::just(value));
         });
}<commit_msg>Use GenParams in CreateTests<commit_after>#include <catch.hpp>
#include <rapidcheck-catch.h>

#include "rapidcheck/newgen/Create.h"

#include "util/ArbitraryRandom.h"
#include "util/GenUtils.h"

using namespace rc;
using namespace rc::test;

TEST_CASE("newgen::just") {
    prop("returns value without shrinks regardless of params",
         [](const GenParams &params, int value) {
             RC_ASSERT(newgen::just(value)(params.random, params.size) ==
                       shrinkable::just(value));
         });
}
{'fraction_non_alphanumeric': 0.1400414937759336, 'fraction_numerical': 0.0, 'mean_word_length': 3.447004608294931, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7030093', 'n_tokens_mistral': 302, 'n_tokens_neox': 298, 'n_words': 64}