Giter Club home page Giter Club logo

Comments (9)

stefannibrasil avatar stefannibrasil commented on June 9, 2024 2

Hi @ak2-lucky thank you for your contribution! @fernandomenolli already has shared an interest in taking this one, I just didn't have the time to assign the issue to them earlier this week. I hope you understand. Thanks!

from faker.

fernandomenolli avatar fernandomenolli commented on June 9, 2024 2

@stefannibrasil I just opened a PR to this issue. Feel free to let me know if anything needs to be improved.

from faker.

fernandomenolli avatar fernandomenolli commented on June 9, 2024 1

Hello,
I am a junior/mid level ruby on rails dev, I am looking for some open source projects to contribute, because I believe it helps a lot the learning journey.

Would this issue to be something like this?

 # Faker::Lovecraft.word generates random word from wordlist

 def test_word
   deterministically_verify -> { @tester.word }, depth: 5 do |word|
     assert_includes @wordlist, word
   end
 end
# test/test_faker.rb:16

  def test_numerify
    deterministically_verify -> { Faker::Base.numerify('###') }, depth: 5 do |result|
      assert_match(/[1-9]\d{2}/, result)
    end
  end

If so, I think I can take this one.

In the case we have 1000.times loop, like Lovecraft.word generator, should we use depth: 40 or any other number near this?

from faker.

fernandomenolli avatar fernandomenolli commented on June 9, 2024 1

Thanks @stefannibrasil, gonna work on it.

from faker.

ak2-lucky avatar ak2-lucky commented on June 9, 2024 1

Oh, Sorry @fernandomenolli and @stefannibrasil
I've already fixed it, but I'll leave it to @fernandomenolli

@stefannibrasil
Are there any other tasks I can do?

from faker.

ak2-lucky avatar ak2-lucky commented on June 9, 2024

I want to do this myself!

from faker.

ak2-lucky avatar ak2-lucky commented on June 9, 2024

@stefannibrasil
I modified it and created a PR.
Please check it out!

#2815

from faker.

stefannibrasil avatar stefannibrasil commented on June 9, 2024

Hi @fernandomenolli yes, you can follow the existing tests implementation for the new ones.

About the depth, I don't think we need a high number. 4 or 5 looks good. Thank you!

from faker.

stefannibrasil avatar stefannibrasil commented on June 9, 2024

no worries, @ak2-lucky thanks for understanding.

I don't have details yet as this current issue but one thing we always need help with is checking the locales files, and seeing if they are working as expected. I guess trying some generators with a specific locale (portuguese, italian, etc.) and seeing if they break with the locales, would be helpful.

from faker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.