Skip to content

Commit

Permalink
Merge pull request #1391 from badoken/main
Browse files Browse the repository at this point in the history
  • Loading branch information
kingthorin authored Oct 17, 2024
2 parents f432f33 + ab2c11a commit 4a347d1
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/net/datafaker/providers/base/Emoji.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ public String cat() {
return resolve("emoji.cats");
}

public String vehicle() {
return resolve("emoji.vehicles");
}

}
44 changes: 44 additions & 0 deletions src/main/resources/en/emoji.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,47 @@ en:
- "😾"
- "😿"
- "🙀"
vehicles:
- "🚀"
- "🚁"
- "🚂"
- "🚃"
- "🚄"
- "🚅"
- "🚆"
- "🚇"
- "🚈"
- "🚉"
- "🚊"
- "🚋"
- "🚌"
- "🚍"
- "🚎"
- "🚏"
- "🚐"
- "🚑"
- "🚒"
- "🚓"
- "🚔"
- "🚕"
- "🚖"
- "🚗"
- "🚘"
- "🚙"
- "🚚"
- "🚛"
- "🚜"
- "🚝"
- "🚞"
- "🚟"
- "🚠"
- "🚡"
- "🚢"
- "🚣"
- "🚤"
- "🚲"
- "🛰️"
- "🏎️"
- "🛴"
- "🛥"
- "🛩"
3 changes: 2 additions & 1 deletion src/test/java/net/datafaker/providers/base/EmojiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ protected Collection<TestSpec> providerListTest() {
Emoji emoji = faker.emoji();

return List.of(TestSpec.of(emoji::smiley, "emoji.smileys"),
TestSpec.of(emoji::cat, "emoji.cats"));
TestSpec.of(emoji::cat, "emoji.cats"),
TestSpec.of(emoji::vehicle, "emoji.vehicles"));
}
}

0 comments on commit 4a347d1

Please sign in to comment.