Skip to content

Commit

Permalink
Add clojure as a language option to Faker::Source generator (fake…
Browse files Browse the repository at this point in the history
…r-ruby#2582)

* I added clojure to the source

* Update lib/locales/en/source.yml
  • Loading branch information
professorjrod authored and sudeeptarlekar committed Oct 7, 2022
1 parent 4c98973 commit 35ccda7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/locales/en/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ en:
python: "print('Hello World!')"
java: "System.out.println('Hello World!');"
elixir: "IO.puts 'Hello World!'"
clojure: "(print 'Hello World!')"
print:
ruby: "puts 'faker_string_to_print'"
javascript: "console.log('faker_string_to_print');"
Expand All @@ -17,6 +18,7 @@ en:
python: "print('faker_string_to_print')"
java: "System.out.println('faker_string_to_print');"
elixir: "IO.puts 'faker_string_to_print'"
clojure: "(print 'faker_string_to_print')"
print_1_to_10:
ruby: "
(1..10).each { |i| puts i }"
Expand Down Expand Up @@ -44,3 +46,6 @@ en:
Enum.each(1..10, fn(x) ->
IO.puts x
end)"
clojure: "
(for [i (range 1 11)]
(println i))"

0 comments on commit 35ccda7

Please sign in to comment.